From 5d1a429016a22c18d9e999a0bb482fa316dbff85 Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Fri, 22 Apr 2016 07:11:06 -0400 Subject: [PATCH] Run swagger codegen for latest Kubernetes API Update to Kubernetes 1.2.2 version Fixes to v1.json: * Change 'any' types to 'object' Fixes to rest.py: * Fix __init__ to accept ca_certs Change-Id: I190f26fac76480bc59ea5ceab7f1c94f16059086 --- README.rst | 3 + k8sclient/client/__init__.py | 220 +- k8sclient/client/api_client.py | 91 +- k8sclient/client/apis/apiv_api.py | 8928 +++++++++++++--- k8sclient/client/configuration.py | 2 +- k8sclient/client/models/__init__.py | 220 +- .../models/{api_patch.py => integer.py} | 2 +- ..._list_meta.py => unversioned_list_meta.py} | 26 +- k8sclient/client/models/unversioned_patch.py | 76 + k8sclient/client/models/unversioned_status.py | 274 + ...s_cause.py => unversioned_status_cause.py} | 38 +- ...tails.py => unversioned_status_details.py} | 81 +- ...1_aws_elastic_block_store_volume_source.py | 16 +- .../models/v1_azure_file_volume_source.py | 149 + k8sclient/client/models/v1_binding.py | 16 +- k8sclient/client/models/v1_capabilities.py | 8 +- .../client/models/v1_ceph_fs_volume_source.py | 224 + .../client/models/v1_cinder_volume_source.py | 149 + .../client/models/v1_component_condition.py | 16 +- .../client/models/v1_component_status.py | 16 +- .../client/models/v1_component_status_list.py | 22 +- k8sclient/client/models/v1_config_map.py | 174 + .../models/v1_config_map_key_selector.py | 124 + k8sclient/client/models/v1_config_map_list.py | 174 + .../models/v1_config_map_volume_source.py | 124 + k8sclient/client/models/v1_container.py | 139 +- k8sclient/client/models/v1_container_image.py | 124 + k8sclient/client/models/v1_container_port.py | 20 +- k8sclient/client/models/v1_container_state.py | 12 +- .../models/v1_container_state_running.py | 4 +- .../models/v1_container_state_terminated.py | 24 +- .../models/v1_container_state_waiting.py | 33 +- .../client/models/v1_container_status.py | 32 +- k8sclient/client/models/v1_daemon_endpoint.py | 99 + k8sclient/client/models/v1_delete_options.py | 12 +- .../models/v1_downward_api_volume_file.py | 124 + .../models/v1_downward_api_volume_source.py | 99 + .../models/v1_empty_dir_volume_source.py | 4 +- .../client/models/v1_endpoint_address.py | 8 +- k8sclient/client/models/v1_endpoint_port.py | 12 +- k8sclient/client/models/v1_endpoint_subset.py | 33 +- k8sclient/client/models/v1_endpoints.py | 16 +- k8sclient/client/models/v1_endpoints_list.py | 22 +- k8sclient/client/models/v1_env_var.py | 12 +- k8sclient/client/models/v1_env_var_source.py | 58 +- k8sclient/client/models/v1_event.py | 69 +- k8sclient/client/models/v1_event_list.py | 22 +- k8sclient/client/models/v1_event_source.py | 8 +- k8sclient/client/models/v1_exec_action.py | 4 +- .../client/models/v1_fc_volume_source.py | 174 + .../client/models/v1_flex_volume_source.py | 199 + .../client/models/v1_flocker_volume_source.py | 99 + .../v1_gce_persistent_disk_volume_source.py | 16 +- .../models/v1_git_repo_volume_source.py | 37 +- .../models/v1_glusterfs_volume_source.py | 12 +- k8sclient/client/models/v1_handler.py | 12 +- .../models/v1_host_path_volume_source.py | 4 +- k8sclient/client/models/v1_http_get_action.py | 45 +- k8sclient/client/models/v1_http_header.py | 124 + .../client/models/v1_iscsi_volume_source.py | 45 +- k8sclient/client/models/v1_key_to_path.py | 124 + k8sclient/client/models/v1_lifecycle.py | 8 +- k8sclient/client/models/v1_limit_range.py | 16 +- .../client/models/v1_limit_range_item.py | 86 +- .../client/models/v1_limit_range_list.py | 22 +- .../client/models/v1_limit_range_spec.py | 4 +- .../client/models/v1_load_balancer_ingress.py | 8 +- .../client/models/v1_load_balancer_status.py | 4 +- .../models/v1_local_object_reference.py | 4 +- k8sclient/client/models/v1_namespace.py | 20 +- k8sclient/client/models/v1_namespace_list.py | 22 +- k8sclient/client/models/v1_namespace_spec.py | 4 +- .../client/models/v1_namespace_status.py | 4 +- .../client/models/v1_nfs_volume_source.py | 12 +- k8sclient/client/models/v1_node.py | 20 +- k8sclient/client/models/v1_node_address.py | 8 +- k8sclient/client/models/v1_node_condition.py | 24 +- .../client/models/v1_node_daemon_endpoints.py | 99 + k8sclient/client/models/v1_node_list.py | 22 +- k8sclient/client/models/v1_node_spec.py | 12 +- k8sclient/client/models/v1_node_status.py | 105 +- .../client/models/v1_node_system_info.py | 32 +- .../client/models/v1_object_field_selector.py | 8 +- k8sclient/client/models/v1_object_meta.py | 81 +- .../client/models/v1_object_reference.py | 28 +- .../client/models/v1_persistent_volume.py | 20 +- .../models/v1_persistent_volume_claim.py | 20 +- .../models/v1_persistent_volume_claim_list.py | 22 +- .../models/v1_persistent_volume_claim_spec.py | 12 +- .../v1_persistent_volume_claim_status.py | 18 +- ...1_persistent_volume_claim_volume_source.py | 8 +- .../models/v1_persistent_volume_list.py | 22 +- .../models/v1_persistent_volume_spec.py | 200 +- .../models/v1_persistent_volume_status.py | 12 +- k8sclient/client/models/v1_pod.py | 20 +- k8sclient/client/models/v1_pod_condition.py | 112 +- k8sclient/client/models/v1_pod_list.py | 22 +- .../client/models/v1_pod_security_context.py | 199 + k8sclient/client/models/v1_pod_spec.py | 129 +- k8sclient/client/models/v1_pod_status.py | 32 +- k8sclient/client/models/v1_pod_template.py | 16 +- .../client/models/v1_pod_template_list.py | 22 +- .../client/models/v1_pod_template_spec.py | 8 +- k8sclient/client/models/v1_probe.py | 99 +- .../client/models/v1_rbd_volume_source.py | 32 +- .../models/v1_replication_controller.py | 20 +- .../models/v1_replication_controller_list.py | 22 +- .../models/v1_replication_controller_spec.py | 18 +- .../v1_replication_controller_status.py | 33 +- k8sclient/client/models/v1_resource_quota.py | 20 +- .../client/models/v1_resource_quota_list.py | 22 +- .../client/models/v1_resource_quota_scope.py | 76 + .../client/models/v1_resource_quota_spec.py | 37 +- .../client/models/v1_resource_quota_status.py | 20 +- .../client/models/v1_resource_requirements.py | 20 +- k8sclient/client/models/v1_scale.py | 199 + k8sclient/client/models/v1_scale_spec.py | 99 + k8sclient/client/models/v1_scale_status.py | 124 + .../client/models/v1_se_linux_options.py | 16 +- k8sclient/client/models/v1_secret.py | 26 +- .../client/models/v1_secret_key_selector.py | 124 + k8sclient/client/models/v1_secret_list.py | 22 +- .../client/models/v1_secret_volume_source.py | 4 +- .../client/models/v1_security_context.py | 70 +- k8sclient/client/models/v1_service.py | 20 +- k8sclient/client/models/v1_service_account.py | 20 +- .../client/models/v1_service_account_list.py | 22 +- k8sclient/client/models/v1_service_list.py | 22 +- k8sclient/client/models/v1_service_port.py | 20 +- k8sclient/client/models/v1_service_spec.py | 84 +- k8sclient/client/models/v1_service_status.py | 4 +- k8sclient/client/models/v1_status.py | 274 - .../client/models/v1_tcp_socket_action.py | 4 +- k8sclient/client/models/v1_volume.py | 252 +- k8sclient/client/models/v1_volume_mount.py | 12 +- k8sclient/client/rest.py | 46 +- k8sclient/templates/v1.json | 9098 +++++++++++++---- requirements.txt | 2 +- 138 files changed, 20653 insertions(+), 4931 deletions(-) rename k8sclient/client/models/{api_patch.py => integer.py} (98%) rename k8sclient/client/models/{v1_list_meta.py => unversioned_list_meta.py} (65%) create mode 100644 k8sclient/client/models/unversioned_patch.py create mode 100644 k8sclient/client/models/unversioned_status.py rename k8sclient/client/models/{v1_status_cause.py => unversioned_status_cause.py} (58%) rename k8sclient/client/models/{v1_status_details.py => unversioned_status_details.py} (54%) create mode 100644 k8sclient/client/models/v1_azure_file_volume_source.py create mode 100644 k8sclient/client/models/v1_ceph_fs_volume_source.py create mode 100644 k8sclient/client/models/v1_cinder_volume_source.py create mode 100644 k8sclient/client/models/v1_config_map.py create mode 100644 k8sclient/client/models/v1_config_map_key_selector.py create mode 100644 k8sclient/client/models/v1_config_map_list.py create mode 100644 k8sclient/client/models/v1_config_map_volume_source.py create mode 100644 k8sclient/client/models/v1_container_image.py create mode 100644 k8sclient/client/models/v1_daemon_endpoint.py create mode 100644 k8sclient/client/models/v1_downward_api_volume_file.py create mode 100644 k8sclient/client/models/v1_downward_api_volume_source.py create mode 100644 k8sclient/client/models/v1_fc_volume_source.py create mode 100644 k8sclient/client/models/v1_flex_volume_source.py create mode 100644 k8sclient/client/models/v1_flocker_volume_source.py create mode 100644 k8sclient/client/models/v1_http_header.py create mode 100644 k8sclient/client/models/v1_key_to_path.py create mode 100644 k8sclient/client/models/v1_node_daemon_endpoints.py create mode 100644 k8sclient/client/models/v1_pod_security_context.py create mode 100644 k8sclient/client/models/v1_resource_quota_scope.py create mode 100644 k8sclient/client/models/v1_scale.py create mode 100644 k8sclient/client/models/v1_scale_spec.py create mode 100644 k8sclient/client/models/v1_scale_status.py create mode 100644 k8sclient/client/models/v1_secret_key_selector.py delete mode 100644 k8sclient/client/models/v1_status.py diff --git a/README.rst b/README.rst index c5c3713..a2015af 100644 --- a/README.rst +++ b/README.rst @@ -46,6 +46,9 @@ Steps to generate Kubernetes client code for v1: mvn package +* Update the v1.json from latest Kubernetes release:: + curl -o ./k8sclient/templates/v1.json https://raw.githubusercontent.com/kubernetes/kubernetes/v1.2.2/api/swagger-spec/v1.json + * Run below command to generate the API client code for Kubernetes:: cd .. diff --git a/k8sclient/client/__init__.py b/k8sclient/client/__init__.py index aa48158..a615d02 100644 --- a/k8sclient/client/__init__.py +++ b/k8sclient/client/__init__.py @@ -13,114 +13,138 @@ from __future__ import absolute_import # import models into sdk package -from .models.v1_node import V1Node -from .models.v1_persistent_volume_claim_list import V1PersistentVolumeClaimList -from .models.v1_object_field_selector import V1ObjectFieldSelector -from .models.v1_se_linux_options import V1SELinuxOptions -from .models.v1_container_state_running import V1ContainerStateRunning -from .models.v1_volume_mount import V1VolumeMount -from .models.v1_persistent_volume_claim_spec import V1PersistentVolumeClaimSpec -from .models.v1_gce_persistent_disk_volume_source import V1GCEPersistentDiskVolumeSource -from .models.v1_namespace_status import V1NamespaceStatus -from .models.v1_resource_quota_spec import V1ResourceQuotaSpec -from .models.v1_namespace_spec import V1NamespaceSpec from .models.v1_persistent_volume import V1PersistentVolume -from .models.v1_persistent_volume_status import V1PersistentVolumeStatus -from .models.v1_endpoints_list import V1EndpointsList -from .models.v1_git_repo_volume_source import V1GitRepoVolumeSource -from .models.v1_capabilities import V1Capabilities -from .models.v1_node_condition import V1NodeCondition -from .models.v1_pod_template_list import V1PodTemplateList -from .models.v1_local_object_reference import V1LocalObjectReference -from .models.v1_resource_quota_status import V1ResourceQuotaStatus -from .models.v1_exec_action import V1ExecAction -from .models.v1_object_meta import V1ObjectMeta -from .models.api_patch import ApiPatch -from .models.v1_limit_range_spec import V1LimitRangeSpec -from .models.v1_iscsi_volume_source import V1ISCSIVolumeSource -from .models.v1_empty_dir_volume_source import V1EmptyDirVolumeSource -from .models.v1_node_list import V1NodeList -from .models.v1_persistent_volume_claim import V1PersistentVolumeClaim -from .models.v1_namespace_list import V1NamespaceList -from .models.v1_service_account import V1ServiceAccount -from .models.v1_node_address import V1NodeAddress -from .models.v1_namespace import V1Namespace -from .models.v1_list_meta import V1ListMeta -from .models.v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource -from .models.v1_persistent_volume_claim_status import V1PersistentVolumeClaimStatus -from .models.v1_resource_quota_list import V1ResourceQuotaList -from .models.v1_endpoint_subset import V1EndpointSubset -from .models.v1_secret_volume_source import V1SecretVolumeSource -from .models.v1_env_var_source import V1EnvVarSource -from .models.v1_load_balancer_ingress import V1LoadBalancerIngress -from .models.v1_service import V1Service -from .models.v1_service_account_list import V1ServiceAccountList -from .models.v1_limit_range_list import V1LimitRangeList -from .models.v1_endpoints import V1Endpoints -from .models.v1_delete_options import V1DeleteOptions -from .models.v1_volume import V1Volume -from .models.v1_probe import V1Probe -from .models.v1_capability import V1Capability -from .models.v1_replication_controller import V1ReplicationController -from .models.v1_limit_range import V1LimitRange -from .models.v1_pod_status import V1PodStatus -from .models.v1_pod_spec import V1PodSpec -from .models.v1_container_port import V1ContainerPort -from .models.v1_event_list import V1EventList -from .models.v1_resource_quota import V1ResourceQuota -from .models.v1_lifecycle import V1Lifecycle -from .models.v1_node_status import V1NodeStatus -from .models.v1_glusterfs_volume_source import V1GlusterfsVolumeSource -from .models.v1_handler import V1Handler -from .models.v1_replication_controller_spec import V1ReplicationControllerSpec -from .models.v1_event_source import V1EventSource -from .models.v1_status_cause import V1StatusCause -from .models.v1_pod_condition import V1PodCondition -from .models.v1_rbd_volume_source import V1RBDVolumeSource -from .models.v1_status import V1Status -from .models.v1_pod_template import V1PodTemplate -from .models.v1_service_status import V1ServiceStatus -from .models.v1_nfs_volume_source import V1NFSVolumeSource -from .models.v1_endpoint_port import V1EndpointPort from .models.v1_tcp_socket_action import V1TCPSocketAction -from .models.v1_http_get_action import V1HTTPGetAction -from .models.v1_status_details import V1StatusDetails -from .models.v1_load_balancer_status import V1LoadBalancerStatus -from .models.v1_secret_list import V1SecretList -from .models.v1_container import V1Container -from .models.v1_persistent_volume_spec import V1PersistentVolumeSpec -from .models.v1_replication_controller_status import V1ReplicationControllerStatus -from .models.v1_finalizer_name import V1FinalizerName -from .models.v1_service_port import V1ServicePort -from .models.v1_component_condition import V1ComponentCondition -from .models.v1_component_status_list import V1ComponentStatusList -from .models.v1_host_path_volume_source import V1HostPathVolumeSource -from .models.json_watch_event import JsonWatchEvent -from .models.v1_binding import V1Binding +from .models.v1_resource_quota_status import V1ResourceQuotaStatus from .models.v1_container_state_terminated import V1ContainerStateTerminated -from .models.v1_security_context import V1SecurityContext -from .models.v1_container_state import V1ContainerState -from .models.v1_aws_elastic_block_store_volume_source import V1AWSElasticBlockStoreVolumeSource -from .models.v1_container_status import V1ContainerStatus +from .models.v1_scale_spec import V1ScaleSpec from .models.v1_replication_controller_list import V1ReplicationControllerList -from .models.v1_secret import V1Secret +from .models.v1_capability import V1Capability +from .models.v1_pod import V1Pod from .models.v1_event import V1Event -from .models.v1_env_var import V1EnvVar -from .models.v1_resource_requirements import V1ResourceRequirements -from .models.v1_persistent_volume_access_mode import V1PersistentVolumeAccessMode -from .models.v1_component_status import V1ComponentStatus -from .models.v1_limit_range_item import V1LimitRangeItem +from .models.v1_node_daemon_endpoints import V1NodeDaemonEndpoints +from .models.v1_host_path_volume_source import V1HostPathVolumeSource +from .models.v1_config_map_key_selector import V1ConfigMapKeySelector +from .models.v1_volume import V1Volume +from .models.v1_container_state_running import V1ContainerStateRunning +from .models.v1_config_map_volume_source import V1ConfigMapVolumeSource +from .models.v1_delete_options import V1DeleteOptions from .models.v1_pod_template_spec import V1PodTemplateSpec -from .models.v1_pod_list import V1PodList +from .models.v1_secret_list import V1SecretList +from .models.v1_nfs_volume_source import V1NFSVolumeSource +from .models.v1_ceph_fs_volume_source import V1CephFSVolumeSource +from .models.v1_capabilities import V1Capabilities +from .models.v1_component_condition import V1ComponentCondition +from .models.unversioned_status import UnversionedStatus +from .models.v1_service_status import V1ServiceStatus +from .models.unversioned_status_details import UnversionedStatusDetails +from .models.v1_secret_volume_source import V1SecretVolumeSource +from .models.v1_resource_requirements import V1ResourceRequirements +from .models.v1_persistent_volume_claim import V1PersistentVolumeClaim +from .models.unversioned_patch import UnversionedPatch +from .models.v1_namespace_status import V1NamespaceStatus +from .models.v1_resource_quota_scope import V1ResourceQuotaScope +from .models.v1_azure_file_volume_source import V1AzureFileVolumeSource +from .models.v1_persistent_volume_access_mode import V1PersistentVolumeAccessMode +from .models.v1_resource_quota_spec import V1ResourceQuotaSpec +from .models.v1_persistent_volume_spec import V1PersistentVolumeSpec +from .models.v1_exec_action import V1ExecAction +from .models.v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource +from .models.v1_service_spec import V1ServiceSpec from .models.v1_service_list import V1ServiceList from .models.v1_persistent_volume_list import V1PersistentVolumeList -from .models.v1_object_reference import V1ObjectReference -from .models.v1_container_state_waiting import V1ContainerStateWaiting -from .models.v1_node_system_info import V1NodeSystemInfo -from .models.v1_service_spec import V1ServiceSpec -from .models.v1_pod import V1Pod +from .models.v1_container_status import V1ContainerStatus +from .models.v1_handler import V1Handler +from .models.v1_node_address import V1NodeAddress +from .models.v1_fc_volume_source import V1FCVolumeSource +from .models.v1_endpoint_port import V1EndpointPort +from .models.v1_downward_api_volume_file import V1DownwardAPIVolumeFile +from .models.v1_endpoint_subset import V1EndpointSubset +from .models.v1_limit_range_list import V1LimitRangeList +from .models.v1_container import V1Container +from .models.v1_pod_spec import V1PodSpec +from .models.v1_flocker_volume_source import V1FlockerVolumeSource +from .models.v1_persistent_volume_status import V1PersistentVolumeStatus +from .models.v1_rbd_volume_source import V1RBDVolumeSource +from .models.v1_load_balancer_ingress import V1LoadBalancerIngress +from .models.v1_security_context import V1SecurityContext +from .models.v1_service_port import V1ServicePort +from .models.v1_scale_status import V1ScaleStatus +from .models.v1_namespace import V1Namespace +from .models.v1_gce_persistent_disk_volume_source import V1GCEPersistentDiskVolumeSource +from .models.v1_endpoints_list import V1EndpointsList +from .models.v1_node_list import V1NodeList +from .models.v1_event_source import V1EventSource +from .models.v1_http_header import V1HTTPHeader +from .models.v1_key_to_path import V1KeyToPath +from .models.v1_env_var_source import V1EnvVarSource +from .models.unversioned_list_meta import UnversionedListMeta +from .models.v1_limit_range_spec import V1LimitRangeSpec +from .models.v1_persistent_volume_claim_spec import V1PersistentVolumeClaimSpec +from .models.v1_replication_controller import V1ReplicationController +from .models.v1_namespace_list import V1NamespaceList +from .models.v1_config_map_list import V1ConfigMapList +from .models.integer import Integer +from .models.v1_volume_mount import V1VolumeMount +from .models.v1_node_status import V1NodeStatus +from .models.v1_replication_controller_status import V1ReplicationControllerStatus +from .models.v1_pod_condition import V1PodCondition +from .models.v1_node_condition import V1NodeCondition +from .models.v1_pod_security_context import V1PodSecurityContext +from .models.v1_service_account import V1ServiceAccount +from .models.v1_pod_template import V1PodTemplate +from .models.v1_pod_list import V1PodList +from .models.v1_empty_dir_volume_source import V1EmptyDirVolumeSource from .models.v1_node_spec import V1NodeSpec +from .models.v1_http_get_action import V1HTTPGetAction +from .models.v1_resource_quota_list import V1ResourceQuotaList +from .models.v1_daemon_endpoint import V1DaemonEndpoint +from .models.v1_service_account_list import V1ServiceAccountList +from .models.v1_probe import V1Probe +from .models.v1_namespace_spec import V1NamespaceSpec +from .models.v1_iscsi_volume_source import V1ISCSIVolumeSource +from .models.v1_event_list import V1EventList +from .models.v1_load_balancer_status import V1LoadBalancerStatus +from .models.v1_persistent_volume_claim_list import V1PersistentVolumeClaimList +from .models.v1_component_status import V1ComponentStatus +from .models.v1_git_repo_volume_source import V1GitRepoVolumeSource +from .models.v1_object_meta import V1ObjectMeta +from .models.v1_secret_key_selector import V1SecretKeySelector +from .models.v1_local_object_reference import V1LocalObjectReference +from .models.v1_config_map import V1ConfigMap +from .models.v1_flex_volume_source import V1FlexVolumeSource +from .models.v1_container_port import V1ContainerPort +from .models.v1_secret import V1Secret +from .models.v1_downward_api_volume_source import V1DownwardAPIVolumeSource +from .models.v1_container_state import V1ContainerState +from .models.v1_endpoints import V1Endpoints +from .models.v1_cinder_volume_source import V1CinderVolumeSource +from .models.v1_pod_status import V1PodStatus +from .models.v1_se_linux_options import V1SELinuxOptions +from .models.v1_service import V1Service +from .models.v1_object_reference import V1ObjectReference +from .models.v1_object_field_selector import V1ObjectFieldSelector +from .models.v1_component_status_list import V1ComponentStatusList +from .models.v1_lifecycle import V1Lifecycle +from .models.v1_node_system_info import V1NodeSystemInfo +from .models.json_watch_event import JsonWatchEvent from .models.v1_endpoint_address import V1EndpointAddress +from .models.v1_aws_elastic_block_store_volume_source import V1AWSElasticBlockStoreVolumeSource +from .models.v1_binding import V1Binding +from .models.v1_node import V1Node +from .models.v1_resource_quota import V1ResourceQuota +from .models.v1_env_var import V1EnvVar +from .models.v1_scale import V1Scale +from .models.unversioned_status_cause import UnversionedStatusCause +from .models.v1_replication_controller_spec import V1ReplicationControllerSpec +from .models.v1_container_state_waiting import V1ContainerStateWaiting +from .models.v1_pod_template_list import V1PodTemplateList +from .models.v1_limit_range_item import V1LimitRangeItem +from .models.v1_finalizer_name import V1FinalizerName +from .models.v1_limit_range import V1LimitRange +from .models.v1_glusterfs_volume_source import V1GlusterfsVolumeSource +from .models.v1_container_image import V1ContainerImage +from .models.v1_persistent_volume_claim_status import V1PersistentVolumeClaimStatus # import apis into sdk package from .apis.apiv_api import ApivApi diff --git a/k8sclient/client/api_client.py b/k8sclient/client/api_client.py index 9c6a14a..02099f0 100644 --- a/k8sclient/client/api_client.py +++ b/k8sclient/client/api_client.py @@ -23,6 +23,7 @@ from .rest import ApiException import os import re +import urllib import json import mimetypes import random @@ -33,19 +34,17 @@ from datetime import datetime from datetime import date # python 2 and python 3 compatibility library -import six from six import iteritems -import six.moves.builtins as __builtin__ -from six.moves.urllib import parse as urlparse + +try: + # for python3 + from urllib.parse import quote +except ImportError: + # for python2 + from urllib import quote from .configuration import Configuration -if six.PY3: - import io - file_type = io.IOBase -else: - file_type = file # noqa - class ApiClient(object): """ @@ -65,8 +64,7 @@ class ApiClient(object): :param header_value: a header value to pass when making calls to the API. """ def __init__(self, host=Configuration().host, - header_name=None, header_value=None, cookie=None, - key_file=None, cert_file=None, ca_certs=None): + header_name=None, header_value=None, cookie=None): """ Constructor of the class. @@ -78,9 +76,6 @@ class ApiClient(object): self.cookie = cookie # Set default User-Agent. self.user_agent = 'Python-Swagger' - self.RESTClient = RESTClient(key_file=key_file, - cert_file=cert_file, - ca_certs=ca_certs) @property def user_agent(self): @@ -116,7 +111,7 @@ class ApiClient(object): if path_params: path_params = self.sanitize_for_serialization(path_params) for k, v in iteritems(path_params): - replacement = urlparse.quote(str(self.to_path_value(v))) + replacement = quote(str(self.to_path_value(v))) resource_path = resource_path.\ replace('{' + k + '}', replacement) @@ -191,8 +186,7 @@ class ApiClient(object): """ if isinstance(obj, type(None)): return None - elif isinstance(obj, (six.text_type, str, int, float, - bool, tuple, file_type)): + elif isinstance(obj, (str, int, float, bool, tuple)): return obj elif isinstance(obj, list): return [self.sanitize_for_serialization(sub_obj) @@ -263,15 +257,12 @@ class ApiClient(object): # convert str to class # for native types - if klass in ['int', 'float', 'str', 'bool', 'object']: - klass = getattr(__builtin__, klass) - elif klass == 'date': - klass = date - elif klass == 'datetime': - klass = datetime + if klass in ['int', 'float', 'str', 'bool', + "date", 'datetime', "object"]: + klass = eval(klass) # for model types else: - klass = getattr(models, klass) + klass = eval('models.' + klass) if klass in [int, float, str, bool]: return self.__deserialize_primitive(data, klass) @@ -333,38 +324,38 @@ class ApiClient(object): def request(self, method, url, query_params=None, headers=None, post_params=None, body=None): """ - Makes the HTTP request using instance of rest client. + Makes the HTTP request using RESTClient. """ if method == "GET": - return self.RESTClient.GET(url, - query_params=query_params, - headers=headers) + return RESTClient.GET(url, + query_params=query_params, + headers=headers) elif method == "HEAD": - return self.RESTClient.HEAD(url, - query_params=query_params, - headers=headers) + return RESTClient.HEAD(url, + query_params=query_params, + headers=headers) elif method == "POST": - return self.RESTClient.POST(url, - query_params=query_params, - headers=headers, - post_params=post_params, - body=body) + return RESTClient.POST(url, + query_params=query_params, + headers=headers, + post_params=post_params, + body=body) elif method == "PUT": - return self.RESTClient.PUT(url, - query_params=query_params, - headers=headers, - post_params=post_params, - body=body) + return RESTClient.PUT(url, + query_params=query_params, + headers=headers, + post_params=post_params, + body=body) elif method == "PATCH": - return self.RESTClient.PATCH(url, - query_params=query_params, - headers=headers, - post_params=post_params, - body=body) + return RESTClient.PATCH(url, + query_params=query_params, + headers=headers, + post_params=post_params, + body=body) elif method == "DELETE": - return self.RESTClient.DELETE(url, - query_params=query_params, - headers=headers) + return RESTClient.DELETE(url, + query_params=query_params, + headers=headers) else: raise ValueError( "http method must be `GET`, `HEAD`," @@ -496,7 +487,7 @@ class ApiClient(object): try: value = klass(data) except UnicodeEncodeError: - value = six.text_type(data) + value = unicode(data) except TypeError: value = data return value diff --git a/k8sclient/client/apis/apiv_api.py b/k8sclient/client/apis/apiv_api.py index 2b85313..6e6b101 100644 --- a/k8sclient/client/apis/apiv_api.py +++ b/k8sclient/client/apis/apiv_api.py @@ -41,12 +41,12 @@ class ApivApi(object): self.api_client = api_client else: if not config.api_client: - config.api_client = ApiClient('https://127.0.0.1:6443/') + config.api_client = ApiClient('https://10.10.10.10:443/') self.api_client = config.api_client - def create_binding(self, body, **kwargs): + def get_api_resources(self, **kwargs): """ - create a Binding + get available resources This method makes a synchronous HTTP request by default.To make an @@ -55,21 +55,16 @@ class ApivApi(object): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_binding(body, callback=callback_function) + >>> thread = api.get_api_resources(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1Binding body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1Binding + :return: None If the method is called asynchronously, returns the request thread. """ - # verify the required parameter 'body' is set - if body is None: - raise ValueError("Missing the required parameter `body` when calling `create_binding`") - all_params = ['body', 'pretty'] + all_params = [] all_params.append('callback') params = locals() @@ -77,19 +72,17 @@ class ApivApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_binding" % key + " to method get_api_resources" % key ) params[key] = val del params['kwargs'] - resource_path = '/api/v1/bindings'.replace('{format}', 'json') - method = 'POST' + resource_path = '/api/v1'.replace('{format}', 'json') + method = 'GET' path_params = {} query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] header_params = {} @@ -97,18 +90,16 @@ class ApivApi(object): files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['application/json', 'application/yaml']) # Authentication setting auth_settings = [] @@ -120,12 +111,12 @@ class ApivApi(object): body=body_params, post_params=form_params, files=files, - response_type='V1Binding', + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def list_component_status(self, **kwargs): + def list_namespaced_component_status(self, **kwargs): """ list objects of kind ComponentStatus @@ -136,21 +127,22 @@ class ApivApi(object): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_component_status(callback=callback_function) + >>> thread = api.list_namespaced_component_status(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: V1ComponentStatusList If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -158,7 +150,7 @@ class ApivApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_component_status" % key + " to method list_namespaced_component_status" % key ) params[key] = val del params['kwargs'] @@ -179,6 +171,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -189,13 +183,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -212,6 +206,177 @@ class ApivApi(object): callback=params.get('callback')) return response + def read_namespaced_component_status(self, name, **kwargs): + """ + read the specified ComponentStatus + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_component_status(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ComponentStatus (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ComponentStatus + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_component_status`") + + all_params = ['name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_component_status" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/componentstatuses/{name}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1ComponentStatus', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_config_map(self, **kwargs): + """ + list or watch objects of kind ConfigMap + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_config_map(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :return: V1ConfigMapList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_config_map" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/configmaps'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1ConfigMapList', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + def list_endpoints(self, **kwargs): """ list or watch objects of kind Endpoints @@ -228,16 +393,17 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: V1EndpointsList If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -266,6 +432,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -276,13 +444,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -299,87 +467,6 @@ class ApivApi(object): callback=params.get('callback')) return response - def create_endpoints(self, body, **kwargs): - """ - create a Endpoints - - - This method makes a synchronous HTTP request by default.To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_endpoints(body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param V1Endpoints body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1Endpoints - If the method is called asynchronously, - returns the request thread. - """ - # verify the required parameter 'body' is set - if body is None: - raise ValueError("Missing the required parameter `body` when calling `create_endpoints`") - - all_params = ['body', 'pretty'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_endpoints" % key - ) - params[key] = val - del params['kwargs'] - - resource_path = '/api/v1/endpoints'.replace('{format}', 'json') - method = 'POST' - - path_params = {} - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = [] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='V1Endpoints', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - def list_event(self, **kwargs): """ list or watch objects of kind Event @@ -396,16 +483,17 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: V1EventList If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -434,6 +522,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -444,13 +534,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -467,87 +557,6 @@ class ApivApi(object): callback=params.get('callback')) return response - def create_event(self, body, **kwargs): - """ - create a Event - - - This method makes a synchronous HTTP request by default.To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_event(body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param V1Event body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1Event - If the method is called asynchronously, - returns the request thread. - """ - # verify the required parameter 'body' is set - if body is None: - raise ValueError("Missing the required parameter `body` when calling `create_event`") - - all_params = ['body', 'pretty'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_event" % key - ) - params[key] = val - del params['kwargs'] - - resource_path = '/api/v1/events'.replace('{format}', 'json') - method = 'POST' - - path_params = {} - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = [] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='V1Event', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - def list_limit_range(self, **kwargs): """ list or watch objects of kind LimitRange @@ -564,16 +573,17 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: V1LimitRangeList If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -602,6 +612,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -612,13 +624,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -635,87 +647,6 @@ class ApivApi(object): callback=params.get('callback')) return response - def create_limit_range(self, body, **kwargs): - """ - create a LimitRange - - - This method makes a synchronous HTTP request by default.To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_limit_range(body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param V1LimitRange body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1LimitRange - If the method is called asynchronously, - returns the request thread. - """ - # verify the required parameter 'body' is set - if body is None: - raise ValueError("Missing the required parameter `body` when calling `create_limit_range`") - - all_params = ['body', 'pretty'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_limit_range" % key - ) - params[key] = val - del params['kwargs'] - - resource_path = '/api/v1/limitranges'.replace('{format}', 'json') - method = 'POST' - - path_params = {} - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = [] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='V1LimitRange', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - def list_namespaced_namespace(self, **kwargs): """ list or watch objects of kind Namespace @@ -732,16 +663,17 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: V1NamespaceList If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -770,6 +702,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -780,13 +714,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -861,13 +795,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -884,6 +818,96 @@ class ApivApi(object): callback=params.get('callback')) return response + def deletecollection_namespaced_namespace(self, **kwargs): + """ + delete collection of Namespace + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.deletecollection_namespaced_namespace(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method deletecollection_namespaced_namespace" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + def create_namespaced_binding(self, body, namespace, **kwargs): """ create a Binding @@ -948,13 +972,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -971,9 +995,9 @@ class ApivApi(object): callback=params.get('callback')) return response - def list_namespaced_component_status(self, namespace, **kwargs): + def list_namespaced_config_map(self, namespace, **kwargs): """ - list objects of kind ComponentStatus + list or watch objects of kind ConfigMap This method makes a synchronous HTTP request by default.To make an @@ -982,25 +1006,26 @@ class ApivApi(object): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_component_status(namespace, callback=callback_function) + >>> thread = api.list_namespaced_config_map(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history - :return: V1ComponentStatusList + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :return: V1ConfigMapList If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_component_status`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_config_map`") - all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -1008,12 +1033,12 @@ class ApivApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_component_status" % key + " to method list_namespaced_config_map" % key ) params[key] = val del params['kwargs'] - resource_path = '/api/v1/namespaces/{namespace}/componentstatuses'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/configmaps'.replace('{format}', 'json') method = 'GET' path_params = {} @@ -1031,6 +1056,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -1041,13 +1068,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -1059,14 +1086,14 @@ class ApivApi(object): body=body_params, post_params=form_params, files=files, - response_type='V1ComponentStatusList', + response_type='V1ConfigMapList', auth_settings=auth_settings, callback=params.get('callback')) return response - def read_namespaced_component_status(self, namespace, name, **kwargs): + def create_namespaced_config_map(self, body, namespace, **kwargs): """ - read the specified ComponentStatus + create a ConfigMap This method makes a synchronous HTTP request by default.To make an @@ -1075,25 +1102,25 @@ class ApivApi(object): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_component_status(namespace, name, callback=callback_function) + >>> thread = api.create_namespaced_config_map(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param V1ConfigMap body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str name: name of the ComponentStatus (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1ComponentStatus + :return: V1ConfigMap If the method is called asynchronously, returns the request thread. """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_config_map`") # verify the required parameter 'namespace' is set if namespace is None: - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_component_status`") - # verify the required parameter 'name' is set - if name is None: - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_component_status`") + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_config_map`") - all_params = ['namespace', 'name', 'pretty'] + all_params = ['body', 'namespace', 'pretty'] all_params.append('callback') params = locals() @@ -1101,14 +1128,294 @@ class ApivApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_component_status" % key + " to method create_namespaced_config_map" % key ) params[key] = val del params['kwargs'] - resource_path = '/api/v1/namespaces/{namespace}/componentstatuses/{name}'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/configmaps'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1ConfigMap', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def deletecollection_namespaced_config_map(self, namespace, **kwargs): + """ + delete collection of ConfigMap + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.deletecollection_namespaced_config_map(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `deletecollection_namespaced_config_map`") + + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method deletecollection_namespaced_config_map" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/configmaps'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def read_namespaced_config_map(self, namespace, name, **kwargs): + """ + read the specified ConfigMap + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_config_map(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the ConfigMap (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :return: V1ConfigMap + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_config_map`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_config_map`") + + all_params = ['namespace', 'name', 'pretty', 'export', 'exact'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_config_map" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/configmaps/{name}'.replace('{format}', 'json') method = 'GET' + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'export' in params: + query_params['export'] = params['export'] + if 'exact' in params: + query_params['exact'] = params['exact'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1ConfigMap', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def replace_namespaced_config_map(self, body, namespace, name, **kwargs): + """ + replace the specified ConfigMap + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_config_map(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ConfigMap body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the ConfigMap (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ConfigMap + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_config_map`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_config_map`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_config_map`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_config_map" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/configmaps/{name}'.replace('{format}', 'json') + method = 'PUT' + path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] @@ -1125,16 +1432,18 @@ class ApivApi(object): files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -1146,7 +1455,193 @@ class ApivApi(object): body=body_params, post_params=form_params, files=files, - response_type='V1ComponentStatus', + response_type='V1ConfigMap', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def delete_namespaced_config_map(self, body, namespace, name, **kwargs): + """ + delete a ConfigMap + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_config_map(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1DeleteOptions body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the ConfigMap (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_config_map`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_config_map`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_config_map`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_config_map" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/configmaps/{name}'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def patch_namespaced_config_map(self, body, namespace, name, **kwargs): + """ + partially update the specified ConfigMap + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_config_map(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param UnversionedPatch body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the ConfigMap (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ConfigMap + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_config_map`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_config_map`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_config_map`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_config_map" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/configmaps/{name}'.replace('{format}', 'json') + method = 'PATCH' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1ConfigMap', auth_settings=auth_settings, callback=params.get('callback')) return response @@ -1168,10 +1663,11 @@ class ApivApi(object): for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: V1EndpointsList If the method is called asynchronously, returns the request thread. @@ -1180,7 +1676,7 @@ class ApivApi(object): if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_endpoints`") - all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -1211,6 +1707,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -1221,13 +1719,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -1308,13 +1806,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -1331,6 +1829,102 @@ class ApivApi(object): callback=params.get('callback')) return response + def deletecollection_namespaced_endpoints(self, namespace, **kwargs): + """ + delete collection of Endpoints + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.deletecollection_namespaced_endpoints(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `deletecollection_namespaced_endpoints`") + + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method deletecollection_namespaced_endpoints" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/endpoints'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + def read_namespaced_endpoints(self, namespace, name, **kwargs): """ read the specified Endpoints @@ -1349,6 +1943,8 @@ class ApivApi(object): :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Endpoints (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :return: V1Endpoints If the method is called asynchronously, returns the request thread. @@ -1360,7 +1956,7 @@ class ApivApi(object): if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_endpoints`") - all_params = ['namespace', 'name', 'pretty'] + all_params = ['namespace', 'name', 'pretty', 'export', 'exact'] all_params.append('callback') params = locals() @@ -1385,6 +1981,10 @@ class ApivApi(object): query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] + if 'export' in params: + query_params['export'] = params['export'] + if 'exact' in params: + query_params['exact'] = params['exact'] header_params = {} @@ -1395,13 +1995,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -1488,13 +2088,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -1530,7 +2130,7 @@ class ApivApi(object): :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Endpoints (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Status + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ @@ -1581,13 +2181,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -1599,7 +2199,7 @@ class ApivApi(object): body=body_params, post_params=form_params, files=files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response @@ -1619,7 +2219,7 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) - :param ApiPatch body: (required) + :param UnversionedPatch body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Endpoints (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1674,7 +2274,7 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] @@ -1714,10 +2314,11 @@ class ApivApi(object): for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: V1EventList If the method is called asynchronously, returns the request thread. @@ -1726,7 +2327,7 @@ class ApivApi(object): if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_event`") - all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -1757,6 +2358,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -1767,13 +2370,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -1854,13 +2457,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -1877,6 +2480,102 @@ class ApivApi(object): callback=params.get('callback')) return response + def deletecollection_namespaced_event(self, namespace, **kwargs): + """ + delete collection of Event + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.deletecollection_namespaced_event(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `deletecollection_namespaced_event`") + + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method deletecollection_namespaced_event" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/events'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + def read_namespaced_event(self, namespace, name, **kwargs): """ read the specified Event @@ -1895,6 +2594,8 @@ class ApivApi(object): :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Event (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :return: V1Event If the method is called asynchronously, returns the request thread. @@ -1906,7 +2607,7 @@ class ApivApi(object): if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_event`") - all_params = ['namespace', 'name', 'pretty'] + all_params = ['namespace', 'name', 'pretty', 'export', 'exact'] all_params.append('callback') params = locals() @@ -1931,6 +2632,10 @@ class ApivApi(object): query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] + if 'export' in params: + query_params['export'] = params['export'] + if 'exact' in params: + query_params['exact'] = params['exact'] header_params = {} @@ -1941,13 +2646,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -2034,13 +2739,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -2057,7 +2762,7 @@ class ApivApi(object): callback=params.get('callback')) return response - def delete_namespaced_event(self, namespace, name, **kwargs): + def delete_namespaced_event(self, body, namespace, name, **kwargs): """ delete a Event @@ -2068,17 +2773,21 @@ class ApivApi(object): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_event(namespace, name, callback=callback_function) + >>> thread = api.delete_namespaced_event(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param V1DeleteOptions body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Event (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Status + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_event`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_event`") @@ -2086,7 +2795,7 @@ class ApivApi(object): if name is None: raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_event`") - all_params = ['namespace', 'name', 'pretty'] + all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = locals() @@ -2118,16 +2827,18 @@ class ApivApi(object): files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -2139,7 +2850,7 @@ class ApivApi(object): body=body_params, post_params=form_params, files=files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response @@ -2159,7 +2870,7 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) - :param ApiPatch body: (required) + :param UnversionedPatch body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Event (required) :param str pretty: If 'true', then the output is pretty printed. @@ -2214,7 +2925,7 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] @@ -2254,10 +2965,11 @@ class ApivApi(object): for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: V1LimitRangeList If the method is called asynchronously, returns the request thread. @@ -2266,7 +2978,7 @@ class ApivApi(object): if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_limit_range`") - all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -2297,6 +3009,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -2307,13 +3021,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -2394,13 +3108,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -2417,6 +3131,102 @@ class ApivApi(object): callback=params.get('callback')) return response + def deletecollection_namespaced_limit_range(self, namespace, **kwargs): + """ + delete collection of LimitRange + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.deletecollection_namespaced_limit_range(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `deletecollection_namespaced_limit_range`") + + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method deletecollection_namespaced_limit_range" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/limitranges'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + def read_namespaced_limit_range(self, namespace, name, **kwargs): """ read the specified LimitRange @@ -2435,6 +3245,8 @@ class ApivApi(object): :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the LimitRange (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :return: V1LimitRange If the method is called asynchronously, returns the request thread. @@ -2446,7 +3258,7 @@ class ApivApi(object): if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_limit_range`") - all_params = ['namespace', 'name', 'pretty'] + all_params = ['namespace', 'name', 'pretty', 'export', 'exact'] all_params.append('callback') params = locals() @@ -2471,6 +3283,10 @@ class ApivApi(object): query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] + if 'export' in params: + query_params['export'] = params['export'] + if 'exact' in params: + query_params['exact'] = params['exact'] header_params = {} @@ -2481,13 +3297,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -2574,13 +3390,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -2597,7 +3413,7 @@ class ApivApi(object): callback=params.get('callback')) return response - def delete_namespaced_limit_range(self, namespace, name, **kwargs): + def delete_namespaced_limit_range(self, body, namespace, name, **kwargs): """ delete a LimitRange @@ -2608,17 +3424,21 @@ class ApivApi(object): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_limit_range(namespace, name, callback=callback_function) + >>> thread = api.delete_namespaced_limit_range(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param V1DeleteOptions body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the LimitRange (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Status + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_limit_range`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_limit_range`") @@ -2626,7 +3446,7 @@ class ApivApi(object): if name is None: raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_limit_range`") - all_params = ['namespace', 'name', 'pretty'] + all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = locals() @@ -2658,16 +3478,18 @@ class ApivApi(object): files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -2679,7 +3501,7 @@ class ApivApi(object): body=body_params, post_params=form_params, files=files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response @@ -2699,7 +3521,7 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) - :param ApiPatch body: (required) + :param UnversionedPatch body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the LimitRange (required) :param str pretty: If 'true', then the output is pretty printed. @@ -2754,7 +3576,7 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] @@ -2794,10 +3616,11 @@ class ApivApi(object): for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: V1PersistentVolumeClaimList If the method is called asynchronously, returns the request thread. @@ -2806,7 +3629,7 @@ class ApivApi(object): if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_persistent_volume_claim`") - all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -2837,6 +3660,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -2847,13 +3672,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -2934,13 +3759,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -2957,6 +3782,102 @@ class ApivApi(object): callback=params.get('callback')) return response + def deletecollection_namespaced_persistent_volume_claim(self, namespace, **kwargs): + """ + delete collection of PersistentVolumeClaim + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.deletecollection_namespaced_persistent_volume_claim(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `deletecollection_namespaced_persistent_volume_claim`") + + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method deletecollection_namespaced_persistent_volume_claim" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + def read_namespaced_persistent_volume_claim(self, namespace, name, **kwargs): """ read the specified PersistentVolumeClaim @@ -2975,6 +3896,8 @@ class ApivApi(object): :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the PersistentVolumeClaim (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :return: V1PersistentVolumeClaim If the method is called asynchronously, returns the request thread. @@ -2986,7 +3909,7 @@ class ApivApi(object): if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_persistent_volume_claim`") - all_params = ['namespace', 'name', 'pretty'] + all_params = ['namespace', 'name', 'pretty', 'export', 'exact'] all_params.append('callback') params = locals() @@ -3011,6 +3934,10 @@ class ApivApi(object): query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] + if 'export' in params: + query_params['export'] = params['export'] + if 'exact' in params: + query_params['exact'] = params['exact'] header_params = {} @@ -3021,13 +3948,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -3114,13 +4041,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -3156,7 +4083,7 @@ class ApivApi(object): :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the PersistentVolumeClaim (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Status + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ @@ -3207,13 +4134,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -3225,7 +4152,7 @@ class ApivApi(object): body=body_params, post_params=form_params, files=files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response @@ -3245,7 +4172,7 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) - :param ApiPatch body: (required) + :param UnversionedPatch body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the PersistentVolumeClaim (required) :param str pretty: If 'true', then the output is pretty printed. @@ -3300,7 +4227,7 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] @@ -3393,13 +4320,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -3433,10 +4360,11 @@ class ApivApi(object): for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: V1PodList If the method is called asynchronously, returns the request thread. @@ -3445,7 +4373,7 @@ class ApivApi(object): if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_pod`") - all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -3476,6 +4404,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -3486,13 +4416,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -3573,13 +4503,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -3596,6 +4526,102 @@ class ApivApi(object): callback=params.get('callback')) return response + def deletecollection_namespaced_pod(self, namespace, **kwargs): + """ + delete collection of Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.deletecollection_namespaced_pod(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `deletecollection_namespaced_pod`") + + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method deletecollection_namespaced_pod" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/pods'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + def read_namespaced_pod(self, namespace, name, **kwargs): """ read the specified Pod @@ -3614,6 +4640,8 @@ class ApivApi(object): :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Pod (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :return: V1Pod If the method is called asynchronously, returns the request thread. @@ -3625,7 +4653,7 @@ class ApivApi(object): if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_pod`") - all_params = ['namespace', 'name', 'pretty'] + all_params = ['namespace', 'name', 'pretty', 'export', 'exact'] all_params.append('callback') params = locals() @@ -3650,6 +4678,10 @@ class ApivApi(object): query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] + if 'export' in params: + query_params['export'] = params['export'] + if 'exact' in params: + query_params['exact'] = params['exact'] header_params = {} @@ -3660,13 +4692,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -3753,13 +4785,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -3795,7 +4827,7 @@ class ApivApi(object): :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Pod (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Status + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ @@ -3846,13 +4878,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -3864,7 +4896,7 @@ class ApivApi(object): body=body_params, post_params=form_params, files=files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response @@ -3884,7 +4916,7 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) - :param ApiPatch body: (required) + :param UnversionedPatch body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Pod (required) :param str pretty: If 'true', then the output is pretty printed. @@ -3939,7 +4971,7 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] @@ -3962,6 +4994,204 @@ class ApivApi(object): callback=params.get('callback')) return response + def connect_get_namespaced_pod_attach(self, namespace, name, **kwargs): + """ + connect GET requests to attach of Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_get_namespaced_pod_attach(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Pod (required) + :param bool stdin: Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. + :param bool stdout: Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. + :param bool stderr: Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. + :param bool tty: TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. + :param str container: The container in which to execute the command. Defaults to only container if there is only one container in the pod. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_pod_attach`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_pod_attach`") + + all_params = ['namespace', 'name', 'stdin', 'stdout', 'stderr', 'tty', 'container'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_get_namespaced_pod_attach" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/attach'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'stdin' in params: + query_params['stdin'] = params['stdin'] + if 'stdout' in params: + query_params['stdout'] = params['stdout'] + if 'stderr' in params: + query_params['stderr'] = params['stderr'] + if 'tty' in params: + query_params['tty'] = params['tty'] + if 'container' in params: + query_params['container'] = params['container'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def connect_post_namespaced_pod_attach(self, namespace, name, **kwargs): + """ + connect POST requests to attach of Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_post_namespaced_pod_attach(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Pod (required) + :param bool stdin: Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. + :param bool stdout: Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. + :param bool stderr: Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. + :param bool tty: TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. + :param str container: The container in which to execute the command. Defaults to only container if there is only one container in the pod. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_pod_attach`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_pod_attach`") + + all_params = ['namespace', 'name', 'stdin', 'stdout', 'stderr', 'tty', 'container'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_post_namespaced_pod_attach" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/attach'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'stdin' in params: + query_params['stdin'] = params['stdin'] + if 'stdout' in params: + query_params['stdout'] = params['stdout'] + if 'stderr' in params: + query_params['stderr'] = params['stderr'] + if 'tty' in params: + query_params['tty'] = params['tty'] + if 'container' in params: + query_params['container'] = params['container'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + def create_namespaced_binding_binding(self, body, namespace, name, **kwargs): """ create binding of a Binding @@ -4032,13 +5262,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -4072,6 +5302,12 @@ class ApivApi(object): for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Pod (required) + :param bool stdin: Redirect the standard input stream of the pod for this call. Defaults to false. + :param bool stdout: Redirect the standard output stream of the pod for this call. Defaults to true. + :param bool stderr: Redirect the standard error stream of the pod for this call. Defaults to true. + :param bool tty: TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. + :param str container: Container in which to execute the command. Defaults to only container if there is only one container in the pod. + :param str command: Command is the remote command to execute. argv array. Not executed within a shell. :return: str If the method is called asynchronously, returns the request thread. @@ -4083,7 +5319,7 @@ class ApivApi(object): if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_pod_exec`") - all_params = ['namespace', 'name'] + all_params = ['namespace', 'name', 'stdin', 'stdout', 'stderr', 'tty', 'container', 'command'] all_params.append('callback') params = locals() @@ -4106,6 +5342,18 @@ class ApivApi(object): path_params['name'] = params['name'] query_params = {} + if 'stdin' in params: + query_params['stdin'] = params['stdin'] + if 'stdout' in params: + query_params['stdout'] = params['stdout'] + if 'stderr' in params: + query_params['stderr'] = params['stderr'] + if 'tty' in params: + query_params['tty'] = params['tty'] + if 'container' in params: + query_params['container'] = params['container'] + if 'command' in params: + query_params['command'] = params['command'] header_params = {} @@ -4116,13 +5364,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -4156,6 +5404,12 @@ class ApivApi(object): for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Pod (required) + :param bool stdin: Redirect the standard input stream of the pod for this call. Defaults to false. + :param bool stdout: Redirect the standard output stream of the pod for this call. Defaults to true. + :param bool stderr: Redirect the standard error stream of the pod for this call. Defaults to true. + :param bool tty: TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. + :param str container: Container in which to execute the command. Defaults to only container if there is only one container in the pod. + :param str command: Command is the remote command to execute. argv array. Not executed within a shell. :return: str If the method is called asynchronously, returns the request thread. @@ -4167,7 +5421,7 @@ class ApivApi(object): if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_pod_exec`") - all_params = ['namespace', 'name'] + all_params = ['namespace', 'name', 'stdin', 'stdout', 'stderr', 'tty', 'container', 'command'] all_params.append('callback') params = locals() @@ -4190,6 +5444,18 @@ class ApivApi(object): path_params['name'] = params['name'] query_params = {} + if 'stdin' in params: + query_params['stdin'] = params['stdin'] + if 'stdout' in params: + query_params['stdout'] = params['stdout'] + if 'stderr' in params: + query_params['stderr'] = params['stderr'] + if 'tty' in params: + query_params['tty'] = params['tty'] + if 'container' in params: + query_params['container'] = params['container'] + if 'command' in params: + query_params['command'] = params['command'] header_params = {} @@ -4200,13 +5466,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -4241,6 +5507,14 @@ class ApivApi(object): :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Pod (required) :param str pretty: If 'true', then the output is pretty printed. + :param str container: The container for which to stream logs. Defaults to only container if there is one container in the pod. + :param bool follow: Follow the log stream of the pod. Defaults to false. + :param bool previous: Return previous terminated container logs. Defaults to false. + :param int since_seconds: A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. + :param str since_time: An RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. + :param bool timestamps: If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. + :param int tail_lines: If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime + :param int limit_bytes: If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. :return: V1Pod If the method is called asynchronously, returns the request thread. @@ -4252,7 +5526,7 @@ class ApivApi(object): if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_pod_log`") - all_params = ['namespace', 'name', 'pretty'] + all_params = ['namespace', 'name', 'pretty', 'container', 'follow', 'previous', 'since_seconds', 'since_time', 'timestamps', 'tail_lines', 'limit_bytes'] all_params.append('callback') params = locals() @@ -4277,6 +5551,22 @@ class ApivApi(object): query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] + if 'container' in params: + query_params['container'] = params['container'] + if 'follow' in params: + query_params['follow'] = params['follow'] + if 'previous' in params: + query_params['previous'] = params['previous'] + if 'since_seconds' in params: + query_params['sinceSeconds'] = params['since_seconds'] + if 'since_time' in params: + query_params['sinceTime'] = params['since_time'] + if 'timestamps' in params: + query_params['timestamps'] = params['timestamps'] + if 'tail_lines' in params: + query_params['tailLines'] = params['tail_lines'] + if 'limit_bytes' in params: + query_params['limitBytes'] = params['limit_bytes'] header_params = {} @@ -4287,13 +5577,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -4371,13 +5661,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -4455,13 +5745,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -4495,6 +5785,7 @@ class ApivApi(object): for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Pod (required) + :param str path: Path is the URL path to use for the current proxy request to pod. :return: str If the method is called asynchronously, returns the request thread. @@ -4506,7 +5797,7 @@ class ApivApi(object): if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_pod_proxy`") - all_params = ['namespace', 'name'] + all_params = ['namespace', 'name', 'path'] all_params.append('callback') params = locals() @@ -4529,6 +5820,8 @@ class ApivApi(object): path_params['name'] = params['name'] query_params = {} + if 'path' in params: + query_params['path'] = params['path'] header_params = {} @@ -4539,13 +5832,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -4579,6 +5872,7 @@ class ApivApi(object): for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Pod (required) + :param str path: Path is the URL path to use for the current proxy request to pod. :return: str If the method is called asynchronously, returns the request thread. @@ -4590,7 +5884,7 @@ class ApivApi(object): if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_put_namespaced_pod_proxy`") - all_params = ['namespace', 'name'] + all_params = ['namespace', 'name', 'path'] all_params.append('callback') params = locals() @@ -4613,6 +5907,8 @@ class ApivApi(object): path_params['name'] = params['name'] query_params = {} + if 'path' in params: + query_params['path'] = params['path'] header_params = {} @@ -4623,13 +5919,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -4663,6 +5959,7 @@ class ApivApi(object): for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Pod (required) + :param str path: Path is the URL path to use for the current proxy request to pod. :return: str If the method is called asynchronously, returns the request thread. @@ -4674,7 +5971,7 @@ class ApivApi(object): if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_pod_proxy`") - all_params = ['namespace', 'name'] + all_params = ['namespace', 'name', 'path'] all_params.append('callback') params = locals() @@ -4697,6 +5994,8 @@ class ApivApi(object): path_params['name'] = params['name'] query_params = {} + if 'path' in params: + query_params['path'] = params['path'] header_params = {} @@ -4707,13 +6006,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -4747,6 +6046,7 @@ class ApivApi(object): for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Pod (required) + :param str path: Path is the URL path to use for the current proxy request to pod. :return: str If the method is called asynchronously, returns the request thread. @@ -4758,7 +6058,7 @@ class ApivApi(object): if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_delete_namespaced_pod_proxy`") - all_params = ['namespace', 'name'] + all_params = ['namespace', 'name', 'path'] all_params.append('callback') params = locals() @@ -4781,6 +6081,8 @@ class ApivApi(object): path_params['name'] = params['name'] query_params = {} + if 'path' in params: + query_params['path'] = params['path'] header_params = {} @@ -4791,13 +6093,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -4831,6 +6133,7 @@ class ApivApi(object): for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Pod (required) + :param str path: Path is the URL path to use for the current proxy request to pod. :return: str If the method is called asynchronously, returns the request thread. @@ -4842,7 +6145,7 @@ class ApivApi(object): if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_options_namespaced_pod_proxy`") - all_params = ['namespace', 'name'] + all_params = ['namespace', 'name', 'path'] all_params.append('callback') params = locals() @@ -4865,6 +6168,8 @@ class ApivApi(object): path_params['name'] = params['name'] query_params = {} + if 'path' in params: + query_params['path'] = params['path'] header_params = {} @@ -4875,13 +6180,478 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def connect_get_namespaced_pod_proxy_1(self, namespace, name, path, **kwargs): + """ + connect GET requests to proxy of Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_get_namespaced_pod_proxy_1(namespace, name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Pod (required) + :param str path: path to the resource (required) + :param str path: Path is the URL path to use for the current proxy request to pod. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_pod_proxy_1`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_pod_proxy_1`") + # verify the required parameter 'path' is set + if path is None: + raise ValueError("Missing the required parameter `path` when calling `connect_get_namespaced_pod_proxy_1`") + + all_params = ['namespace', 'name', 'path', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_get_namespaced_pod_proxy_1" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def connect_put_namespaced_pod_proxy_2(self, namespace, name, path, **kwargs): + """ + connect PUT requests to proxy of Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_put_namespaced_pod_proxy_2(namespace, name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Pod (required) + :param str path: path to the resource (required) + :param str path: Path is the URL path to use for the current proxy request to pod. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `connect_put_namespaced_pod_proxy_2`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `connect_put_namespaced_pod_proxy_2`") + # verify the required parameter 'path' is set + if path is None: + raise ValueError("Missing the required parameter `path` when calling `connect_put_namespaced_pod_proxy_2`") + + all_params = ['namespace', 'name', 'path', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_put_namespaced_pod_proxy_2" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}'.replace('{format}', 'json') + method = 'PUT' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def connect_post_namespaced_pod_proxy_3(self, namespace, name, path, **kwargs): + """ + connect POST requests to proxy of Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_post_namespaced_pod_proxy_3(namespace, name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Pod (required) + :param str path: path to the resource (required) + :param str path: Path is the URL path to use for the current proxy request to pod. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_pod_proxy_3`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_pod_proxy_3`") + # verify the required parameter 'path' is set + if path is None: + raise ValueError("Missing the required parameter `path` when calling `connect_post_namespaced_pod_proxy_3`") + + all_params = ['namespace', 'name', 'path', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_post_namespaced_pod_proxy_3" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def connect_delete_namespaced_pod_proxy_4(self, namespace, name, path, **kwargs): + """ + connect DELETE requests to proxy of Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_delete_namespaced_pod_proxy_4(namespace, name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Pod (required) + :param str path: path to the resource (required) + :param str path: Path is the URL path to use for the current proxy request to pod. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `connect_delete_namespaced_pod_proxy_4`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `connect_delete_namespaced_pod_proxy_4`") + # verify the required parameter 'path' is set + if path is None: + raise ValueError("Missing the required parameter `path` when calling `connect_delete_namespaced_pod_proxy_4`") + + all_params = ['namespace', 'name', 'path', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_delete_namespaced_pod_proxy_4" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def connect_options_namespaced_pod_proxy_5(self, namespace, name, path, **kwargs): + """ + connect OPTIONS requests to proxy of Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_options_namespaced_pod_proxy_5(namespace, name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Pod (required) + :param str path: path to the resource (required) + :param str path: Path is the URL path to use for the current proxy request to pod. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `connect_options_namespaced_pod_proxy_5`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `connect_options_namespaced_pod_proxy_5`") + # verify the required parameter 'path' is set + if path is None: + raise ValueError("Missing the required parameter `path` when calling `connect_options_namespaced_pod_proxy_5`") + + all_params = ['namespace', 'name', 'path', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_options_namespaced_pod_proxy_5" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}'.replace('{format}', 'json') + method = 'OPTIONS' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -4968,13 +6738,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -5008,10 +6778,11 @@ class ApivApi(object): for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: V1PodTemplateList If the method is called asynchronously, returns the request thread. @@ -5020,7 +6791,7 @@ class ApivApi(object): if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_pod_template`") - all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -5051,6 +6822,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -5061,13 +6834,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -5148,13 +6921,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -5171,6 +6944,102 @@ class ApivApi(object): callback=params.get('callback')) return response + def deletecollection_namespaced_pod_template(self, namespace, **kwargs): + """ + delete collection of PodTemplate + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.deletecollection_namespaced_pod_template(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `deletecollection_namespaced_pod_template`") + + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method deletecollection_namespaced_pod_template" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/podtemplates'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + def read_namespaced_pod_template(self, namespace, name, **kwargs): """ read the specified PodTemplate @@ -5189,6 +7058,8 @@ class ApivApi(object): :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the PodTemplate (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :return: V1PodTemplate If the method is called asynchronously, returns the request thread. @@ -5200,7 +7071,7 @@ class ApivApi(object): if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_pod_template`") - all_params = ['namespace', 'name', 'pretty'] + all_params = ['namespace', 'name', 'pretty', 'export', 'exact'] all_params.append('callback') params = locals() @@ -5225,6 +7096,10 @@ class ApivApi(object): query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] + if 'export' in params: + query_params['export'] = params['export'] + if 'exact' in params: + query_params['exact'] = params['exact'] header_params = {} @@ -5235,13 +7110,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -5328,13 +7203,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -5370,7 +7245,7 @@ class ApivApi(object): :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the PodTemplate (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Status + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ @@ -5421,13 +7296,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -5439,7 +7314,7 @@ class ApivApi(object): body=body_params, post_params=form_params, files=files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response @@ -5459,7 +7334,7 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) - :param ApiPatch body: (required) + :param UnversionedPatch body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the PodTemplate (required) :param str pretty: If 'true', then the output is pretty printed. @@ -5514,7 +7389,7 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] @@ -5554,10 +7429,11 @@ class ApivApi(object): for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: V1ReplicationControllerList If the method is called asynchronously, returns the request thread. @@ -5566,7 +7442,7 @@ class ApivApi(object): if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_replication_controller`") - all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -5597,6 +7473,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -5607,13 +7485,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -5694,13 +7572,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -5717,6 +7595,102 @@ class ApivApi(object): callback=params.get('callback')) return response + def deletecollection_namespaced_replication_controller(self, namespace, **kwargs): + """ + delete collection of ReplicationController + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.deletecollection_namespaced_replication_controller(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `deletecollection_namespaced_replication_controller`") + + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method deletecollection_namespaced_replication_controller" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + def read_namespaced_replication_controller(self, namespace, name, **kwargs): """ read the specified ReplicationController @@ -5735,6 +7709,8 @@ class ApivApi(object): :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the ReplicationController (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :return: V1ReplicationController If the method is called asynchronously, returns the request thread. @@ -5746,7 +7722,7 @@ class ApivApi(object): if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replication_controller`") - all_params = ['namespace', 'name', 'pretty'] + all_params = ['namespace', 'name', 'pretty', 'export', 'exact'] all_params.append('callback') params = locals() @@ -5771,6 +7747,10 @@ class ApivApi(object): query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] + if 'export' in params: + query_params['export'] = params['export'] + if 'exact' in params: + query_params['exact'] = params['exact'] header_params = {} @@ -5781,13 +7761,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -5874,13 +7854,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -5916,7 +7896,7 @@ class ApivApi(object): :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the ReplicationController (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Status + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ @@ -5967,13 +7947,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -5985,7 +7965,7 @@ class ApivApi(object): body=body_params, post_params=form_params, files=files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response @@ -6005,7 +7985,7 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) - :param ApiPatch body: (required) + :param UnversionedPatch body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the ReplicationController (required) :param str pretty: If 'true', then the output is pretty printed. @@ -6060,7 +8040,7 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] @@ -6083,6 +8063,372 @@ class ApivApi(object): callback=params.get('callback')) return response + def read_namespaced_scale_scale(self, namespace, name, **kwargs): + """ + read scale of the specified Scale + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_scale_scale(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Scale (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Scale + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_scale_scale`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_scale_scale`") + + all_params = ['namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_scale_scale" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Scale', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def replace_namespaced_scale_scale(self, body, namespace, name, **kwargs): + """ + replace scale of the specified Scale + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_scale_scale(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Scale body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Scale (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Scale + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_scale_scale`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_scale_scale`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_scale_scale`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_scale_scale" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale'.replace('{format}', 'json') + method = 'PUT' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Scale', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def patch_namespaced_scale_scale(self, body, namespace, name, **kwargs): + """ + partially update scale of the specified Scale + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_scale_scale(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param UnversionedPatch body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Scale (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Scale + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_scale_scale`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_scale_scale`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_scale_scale`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_scale_scale" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale'.replace('{format}', 'json') + method = 'PATCH' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Scale', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def replace_namespaced_replication_controller_status(self, body, namespace, name, **kwargs): + """ + replace status of the specified ReplicationController + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_replication_controller_status(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ReplicationController body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the ReplicationController (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ReplicationController + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replication_controller_status`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replication_controller_status`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replication_controller_status`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_replication_controller_status" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status'.replace('{format}', 'json') + method = 'PUT' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1ReplicationController', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + def list_namespaced_resource_quota(self, namespace, **kwargs): """ list or watch objects of kind ResourceQuota @@ -6100,10 +8446,11 @@ class ApivApi(object): for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: V1ResourceQuotaList If the method is called asynchronously, returns the request thread. @@ -6112,7 +8459,7 @@ class ApivApi(object): if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_resource_quota`") - all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -6143,6 +8490,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -6153,13 +8502,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -6240,13 +8589,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -6263,6 +8612,102 @@ class ApivApi(object): callback=params.get('callback')) return response + def deletecollection_namespaced_resource_quota(self, namespace, **kwargs): + """ + delete collection of ResourceQuota + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.deletecollection_namespaced_resource_quota(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `deletecollection_namespaced_resource_quota`") + + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method deletecollection_namespaced_resource_quota" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/resourcequotas'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + def read_namespaced_resource_quota(self, namespace, name, **kwargs): """ read the specified ResourceQuota @@ -6281,6 +8726,8 @@ class ApivApi(object): :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the ResourceQuota (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :return: V1ResourceQuota If the method is called asynchronously, returns the request thread. @@ -6292,7 +8739,7 @@ class ApivApi(object): if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_resource_quota`") - all_params = ['namespace', 'name', 'pretty'] + all_params = ['namespace', 'name', 'pretty', 'export', 'exact'] all_params.append('callback') params = locals() @@ -6317,6 +8764,10 @@ class ApivApi(object): query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] + if 'export' in params: + query_params['export'] = params['export'] + if 'exact' in params: + query_params['exact'] = params['exact'] header_params = {} @@ -6327,13 +8778,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -6420,13 +8871,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -6462,7 +8913,7 @@ class ApivApi(object): :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the ResourceQuota (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Status + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ @@ -6513,13 +8964,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -6531,7 +8982,7 @@ class ApivApi(object): body=body_params, post_params=form_params, files=files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response @@ -6551,7 +9002,7 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) - :param ApiPatch body: (required) + :param UnversionedPatch body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the ResourceQuota (required) :param str pretty: If 'true', then the output is pretty printed. @@ -6606,7 +9057,7 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] @@ -6699,13 +9150,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -6739,10 +9190,11 @@ class ApivApi(object): for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: V1SecretList If the method is called asynchronously, returns the request thread. @@ -6751,7 +9203,7 @@ class ApivApi(object): if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_secret`") - all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -6782,6 +9234,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -6792,13 +9246,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -6879,13 +9333,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -6902,6 +9356,102 @@ class ApivApi(object): callback=params.get('callback')) return response + def deletecollection_namespaced_secret(self, namespace, **kwargs): + """ + delete collection of Secret + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.deletecollection_namespaced_secret(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `deletecollection_namespaced_secret`") + + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method deletecollection_namespaced_secret" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/secrets'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + def read_namespaced_secret(self, namespace, name, **kwargs): """ read the specified Secret @@ -6920,6 +9470,8 @@ class ApivApi(object): :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Secret (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :return: V1Secret If the method is called asynchronously, returns the request thread. @@ -6931,7 +9483,7 @@ class ApivApi(object): if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_secret`") - all_params = ['namespace', 'name', 'pretty'] + all_params = ['namespace', 'name', 'pretty', 'export', 'exact'] all_params.append('callback') params = locals() @@ -6956,6 +9508,10 @@ class ApivApi(object): query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] + if 'export' in params: + query_params['export'] = params['export'] + if 'exact' in params: + query_params['exact'] = params['exact'] header_params = {} @@ -6966,13 +9522,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -7059,13 +9615,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -7101,7 +9657,7 @@ class ApivApi(object): :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Secret (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Status + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ @@ -7152,13 +9708,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -7170,7 +9726,7 @@ class ApivApi(object): body=body_params, post_params=form_params, files=files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response @@ -7190,7 +9746,7 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) - :param ApiPatch body: (required) + :param UnversionedPatch body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Secret (required) :param str pretty: If 'true', then the output is pretty printed. @@ -7245,7 +9801,7 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] @@ -7285,10 +9841,11 @@ class ApivApi(object): for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: V1ServiceAccountList If the method is called asynchronously, returns the request thread. @@ -7297,7 +9854,7 @@ class ApivApi(object): if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_service_account`") - all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -7328,6 +9885,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -7338,13 +9897,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -7425,13 +9984,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -7448,6 +10007,102 @@ class ApivApi(object): callback=params.get('callback')) return response + def deletecollection_namespaced_service_account(self, namespace, **kwargs): + """ + delete collection of ServiceAccount + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.deletecollection_namespaced_service_account(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `deletecollection_namespaced_service_account`") + + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method deletecollection_namespaced_service_account" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/serviceaccounts'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + def read_namespaced_service_account(self, namespace, name, **kwargs): """ read the specified ServiceAccount @@ -7466,6 +10121,8 @@ class ApivApi(object): :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the ServiceAccount (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :return: V1ServiceAccount If the method is called asynchronously, returns the request thread. @@ -7477,7 +10134,7 @@ class ApivApi(object): if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_service_account`") - all_params = ['namespace', 'name', 'pretty'] + all_params = ['namespace', 'name', 'pretty', 'export', 'exact'] all_params.append('callback') params = locals() @@ -7502,6 +10159,10 @@ class ApivApi(object): query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] + if 'export' in params: + query_params['export'] = params['export'] + if 'exact' in params: + query_params['exact'] = params['exact'] header_params = {} @@ -7512,13 +10173,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -7605,13 +10266,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -7647,7 +10308,7 @@ class ApivApi(object): :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the ServiceAccount (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Status + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ @@ -7698,13 +10359,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -7716,7 +10377,7 @@ class ApivApi(object): body=body_params, post_params=form_params, files=files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response @@ -7736,7 +10397,7 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) - :param ApiPatch body: (required) + :param UnversionedPatch body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the ServiceAccount (required) :param str pretty: If 'true', then the output is pretty printed. @@ -7791,7 +10452,7 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] @@ -7831,10 +10492,11 @@ class ApivApi(object): for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: V1ServiceList If the method is called asynchronously, returns the request thread. @@ -7843,7 +10505,7 @@ class ApivApi(object): if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_service`") - all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -7874,6 +10536,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -7884,13 +10548,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -7971,13 +10635,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -8012,6 +10676,8 @@ class ApivApi(object): :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Service (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :return: V1Service If the method is called asynchronously, returns the request thread. @@ -8023,7 +10689,7 @@ class ApivApi(object): if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_service`") - all_params = ['namespace', 'name', 'pretty'] + all_params = ['namespace', 'name', 'pretty', 'export', 'exact'] all_params.append('callback') params = locals() @@ -8048,6 +10714,10 @@ class ApivApi(object): query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] + if 'export' in params: + query_params['export'] = params['export'] + if 'exact' in params: + query_params['exact'] = params['exact'] header_params = {} @@ -8058,13 +10728,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -8151,13 +10821,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -8192,7 +10862,7 @@ class ApivApi(object): :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Service (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Status + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ @@ -8238,13 +10908,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -8256,7 +10926,7 @@ class ApivApi(object): body=body_params, post_params=form_params, files=files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response @@ -8276,7 +10946,7 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) - :param ApiPatch body: (required) + :param UnversionedPatch body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Service (required) :param str pretty: If 'true', then the output is pretty printed. @@ -8331,7 +11001,7 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] @@ -8354,6 +11024,999 @@ class ApivApi(object): callback=params.get('callback')) return response + def connect_get_namespaced_service_proxy(self, namespace, name, **kwargs): + """ + connect GET requests to proxy of Service + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_get_namespaced_service_proxy(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Service (required) + :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_service_proxy`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_service_proxy`") + + all_params = ['namespace', 'name', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_get_namespaced_service_proxy" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def connect_put_namespaced_service_proxy(self, namespace, name, **kwargs): + """ + connect PUT requests to proxy of Service + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_put_namespaced_service_proxy(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Service (required) + :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `connect_put_namespaced_service_proxy`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `connect_put_namespaced_service_proxy`") + + all_params = ['namespace', 'name', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_put_namespaced_service_proxy" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy'.replace('{format}', 'json') + method = 'PUT' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def connect_post_namespaced_service_proxy(self, namespace, name, **kwargs): + """ + connect POST requests to proxy of Service + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_post_namespaced_service_proxy(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Service (required) + :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_service_proxy`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_service_proxy`") + + all_params = ['namespace', 'name', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_post_namespaced_service_proxy" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def connect_delete_namespaced_service_proxy(self, namespace, name, **kwargs): + """ + connect DELETE requests to proxy of Service + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_delete_namespaced_service_proxy(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Service (required) + :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `connect_delete_namespaced_service_proxy`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `connect_delete_namespaced_service_proxy`") + + all_params = ['namespace', 'name', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_delete_namespaced_service_proxy" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def connect_options_namespaced_service_proxy(self, namespace, name, **kwargs): + """ + connect OPTIONS requests to proxy of Service + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_options_namespaced_service_proxy(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Service (required) + :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `connect_options_namespaced_service_proxy`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `connect_options_namespaced_service_proxy`") + + all_params = ['namespace', 'name', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_options_namespaced_service_proxy" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy'.replace('{format}', 'json') + method = 'OPTIONS' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def connect_get_namespaced_service_proxy_6(self, namespace, name, path, **kwargs): + """ + connect GET requests to proxy of Service + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_get_namespaced_service_proxy_6(namespace, name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Service (required) + :param str path: path to the resource (required) + :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_service_proxy_6`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_service_proxy_6`") + # verify the required parameter 'path' is set + if path is None: + raise ValueError("Missing the required parameter `path` when calling `connect_get_namespaced_service_proxy_6`") + + all_params = ['namespace', 'name', 'path', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_get_namespaced_service_proxy_6" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def connect_put_namespaced_service_proxy_7(self, namespace, name, path, **kwargs): + """ + connect PUT requests to proxy of Service + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_put_namespaced_service_proxy_7(namespace, name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Service (required) + :param str path: path to the resource (required) + :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `connect_put_namespaced_service_proxy_7`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `connect_put_namespaced_service_proxy_7`") + # verify the required parameter 'path' is set + if path is None: + raise ValueError("Missing the required parameter `path` when calling `connect_put_namespaced_service_proxy_7`") + + all_params = ['namespace', 'name', 'path', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_put_namespaced_service_proxy_7" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}'.replace('{format}', 'json') + method = 'PUT' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def connect_post_namespaced_service_proxy_8(self, namespace, name, path, **kwargs): + """ + connect POST requests to proxy of Service + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_post_namespaced_service_proxy_8(namespace, name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Service (required) + :param str path: path to the resource (required) + :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_service_proxy_8`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_service_proxy_8`") + # verify the required parameter 'path' is set + if path is None: + raise ValueError("Missing the required parameter `path` when calling `connect_post_namespaced_service_proxy_8`") + + all_params = ['namespace', 'name', 'path', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_post_namespaced_service_proxy_8" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def connect_delete_namespaced_service_proxy_9(self, namespace, name, path, **kwargs): + """ + connect DELETE requests to proxy of Service + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_delete_namespaced_service_proxy_9(namespace, name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Service (required) + :param str path: path to the resource (required) + :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `connect_delete_namespaced_service_proxy_9`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `connect_delete_namespaced_service_proxy_9`") + # verify the required parameter 'path' is set + if path is None: + raise ValueError("Missing the required parameter `path` when calling `connect_delete_namespaced_service_proxy_9`") + + all_params = ['namespace', 'name', 'path', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_delete_namespaced_service_proxy_9" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def connect_options_namespaced_service_proxy_10(self, namespace, name, path, **kwargs): + """ + connect OPTIONS requests to proxy of Service + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_options_namespaced_service_proxy_10(namespace, name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Service (required) + :param str path: path to the resource (required) + :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `connect_options_namespaced_service_proxy_10`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `connect_options_namespaced_service_proxy_10`") + # verify the required parameter 'path' is set + if path is None: + raise ValueError("Missing the required parameter `path` when calling `connect_options_namespaced_service_proxy_10`") + + all_params = ['namespace', 'name', 'path', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_options_namespaced_service_proxy_10" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}'.replace('{format}', 'json') + method = 'OPTIONS' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def replace_namespaced_service_status(self, body, namespace, name, **kwargs): + """ + replace status of the specified Service + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_service_status(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Service body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Service (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Service + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_service_status`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_service_status`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_service_status`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_service_status" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/services/{name}/status'.replace('{format}', 'json') + method = 'PUT' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Service', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + def read_namespaced_namespace(self, name, **kwargs): """ read the specified Namespace @@ -8371,6 +12034,8 @@ class ApivApi(object): for asynchronous request. (optional) :param str name: name of the Namespace (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :return: V1Namespace If the method is called asynchronously, returns the request thread. @@ -8379,7 +12044,7 @@ class ApivApi(object): if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_namespace`") - all_params = ['name', 'pretty'] + all_params = ['name', 'pretty', 'export', 'exact'] all_params.append('callback') params = locals() @@ -8402,6 +12067,10 @@ class ApivApi(object): query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] + if 'export' in params: + query_params['export'] = params['export'] + if 'exact' in params: + query_params['exact'] = params['exact'] header_params = {} @@ -8412,13 +12081,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -8499,13 +12168,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -8540,7 +12209,7 @@ class ApivApi(object): :param V1DeleteOptions body: (required) :param str name: name of the Namespace (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Status + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ @@ -8586,13 +12255,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -8604,7 +12273,7 @@ class ApivApi(object): body=body_params, post_params=form_params, files=files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response @@ -8624,7 +12293,7 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) - :param ApiPatch body: (required) + :param UnversionedPatch body: (required) :param str name: name of the Namespace (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Namespace @@ -8673,7 +12342,7 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] @@ -8760,13 +12429,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -8847,13 +12516,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -8886,16 +12555,17 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: V1NodeList If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -8924,6 +12594,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -8934,13 +12606,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -9015,13 +12687,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -9038,6 +12710,96 @@ class ApivApi(object): callback=params.get('callback')) return response + def deletecollection_namespaced_node(self, **kwargs): + """ + delete collection of Node + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.deletecollection_namespaced_node(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method deletecollection_namespaced_node" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/nodes'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + def read_namespaced_node(self, name, **kwargs): """ read the specified Node @@ -9055,6 +12817,8 @@ class ApivApi(object): for asynchronous request. (optional) :param str name: name of the Node (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :return: V1Node If the method is called asynchronously, returns the request thread. @@ -9063,7 +12827,7 @@ class ApivApi(object): if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_node`") - all_params = ['name', 'pretty'] + all_params = ['name', 'pretty', 'export', 'exact'] all_params.append('callback') params = locals() @@ -9086,6 +12850,10 @@ class ApivApi(object): query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] + if 'export' in params: + query_params['export'] = params['export'] + if 'exact' in params: + query_params['exact'] = params['exact'] header_params = {} @@ -9096,13 +12864,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -9183,13 +12951,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -9224,7 +12992,7 @@ class ApivApi(object): :param V1DeleteOptions body: (required) :param str name: name of the Node (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Status + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ @@ -9270,13 +13038,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -9288,7 +13056,7 @@ class ApivApi(object): body=body_params, post_params=form_params, files=files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response @@ -9308,7 +13076,7 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) - :param ApiPatch body: (required) + :param UnversionedPatch body: (required) :param str name: name of the Node (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Node @@ -9357,7 +13125,7 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] @@ -9380,6 +13148,846 @@ class ApivApi(object): callback=params.get('callback')) return response + def connect_get_namespaced_node_proxy(self, name, **kwargs): + """ + connect GET requests to proxy of Node + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_get_namespaced_node_proxy(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: Path is the URL path to use for the current proxy request to node. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_node_proxy`") + + all_params = ['name', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_get_namespaced_node_proxy" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/nodes/{name}/proxy'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def connect_put_namespaced_node_proxy(self, name, **kwargs): + """ + connect PUT requests to proxy of Node + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_put_namespaced_node_proxy(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: Path is the URL path to use for the current proxy request to node. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `connect_put_namespaced_node_proxy`") + + all_params = ['name', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_put_namespaced_node_proxy" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/nodes/{name}/proxy'.replace('{format}', 'json') + method = 'PUT' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def connect_post_namespaced_node_proxy(self, name, **kwargs): + """ + connect POST requests to proxy of Node + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_post_namespaced_node_proxy(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: Path is the URL path to use for the current proxy request to node. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_node_proxy`") + + all_params = ['name', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_post_namespaced_node_proxy" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/nodes/{name}/proxy'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def connect_delete_namespaced_node_proxy(self, name, **kwargs): + """ + connect DELETE requests to proxy of Node + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_delete_namespaced_node_proxy(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: Path is the URL path to use for the current proxy request to node. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `connect_delete_namespaced_node_proxy`") + + all_params = ['name', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_delete_namespaced_node_proxy" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/nodes/{name}/proxy'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def connect_options_namespaced_node_proxy(self, name, **kwargs): + """ + connect OPTIONS requests to proxy of Node + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_options_namespaced_node_proxy(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: Path is the URL path to use for the current proxy request to node. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `connect_options_namespaced_node_proxy`") + + all_params = ['name', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_options_namespaced_node_proxy" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/nodes/{name}/proxy'.replace('{format}', 'json') + method = 'OPTIONS' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def connect_get_namespaced_node_proxy_11(self, name, path, **kwargs): + """ + connect GET requests to proxy of Node + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_get_namespaced_node_proxy_11(name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: path to the resource (required) + :param str path: Path is the URL path to use for the current proxy request to node. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_node_proxy_11`") + # verify the required parameter 'path' is set + if path is None: + raise ValueError("Missing the required parameter `path` when calling `connect_get_namespaced_node_proxy_11`") + + all_params = ['name', 'path', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_get_namespaced_node_proxy_11" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/nodes/{name}/proxy/{path}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def connect_put_namespaced_node_proxy_12(self, name, path, **kwargs): + """ + connect PUT requests to proxy of Node + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_put_namespaced_node_proxy_12(name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: path to the resource (required) + :param str path: Path is the URL path to use for the current proxy request to node. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `connect_put_namespaced_node_proxy_12`") + # verify the required parameter 'path' is set + if path is None: + raise ValueError("Missing the required parameter `path` when calling `connect_put_namespaced_node_proxy_12`") + + all_params = ['name', 'path', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_put_namespaced_node_proxy_12" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/nodes/{name}/proxy/{path}'.replace('{format}', 'json') + method = 'PUT' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def connect_post_namespaced_node_proxy_13(self, name, path, **kwargs): + """ + connect POST requests to proxy of Node + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_post_namespaced_node_proxy_13(name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: path to the resource (required) + :param str path: Path is the URL path to use for the current proxy request to node. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_node_proxy_13`") + # verify the required parameter 'path' is set + if path is None: + raise ValueError("Missing the required parameter `path` when calling `connect_post_namespaced_node_proxy_13`") + + all_params = ['name', 'path', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_post_namespaced_node_proxy_13" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/nodes/{name}/proxy/{path}'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def connect_delete_namespaced_node_proxy_14(self, name, path, **kwargs): + """ + connect DELETE requests to proxy of Node + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_delete_namespaced_node_proxy_14(name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: path to the resource (required) + :param str path: Path is the URL path to use for the current proxy request to node. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `connect_delete_namespaced_node_proxy_14`") + # verify the required parameter 'path' is set + if path is None: + raise ValueError("Missing the required parameter `path` when calling `connect_delete_namespaced_node_proxy_14`") + + all_params = ['name', 'path', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_delete_namespaced_node_proxy_14" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/nodes/{name}/proxy/{path}'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def connect_options_namespaced_node_proxy_15(self, name, path, **kwargs): + """ + connect OPTIONS requests to proxy of Node + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_options_namespaced_node_proxy_15(name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: path to the resource (required) + :param str path: Path is the URL path to use for the current proxy request to node. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `connect_options_namespaced_node_proxy_15`") + # verify the required parameter 'path' is set + if path is None: + raise ValueError("Missing the required parameter `path` when calling `connect_options_namespaced_node_proxy_15`") + + all_params = ['name', 'path', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_options_namespaced_node_proxy_15" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/nodes/{name}/proxy/{path}'.replace('{format}', 'json') + method = 'OPTIONS' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + def replace_namespaced_node_status(self, body, name, **kwargs): """ replace status of the specified Node @@ -9444,13 +14052,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -9483,16 +14091,17 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: V1PersistentVolumeClaimList If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -9521,6 +14130,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -9531,13 +14142,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -9554,87 +14165,6 @@ class ApivApi(object): callback=params.get('callback')) return response - def create_persistent_volume_claim(self, body, **kwargs): - """ - create a PersistentVolumeClaim - - - This method makes a synchronous HTTP request by default.To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_persistent_volume_claim(body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param V1PersistentVolumeClaim body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1PersistentVolumeClaim - If the method is called asynchronously, - returns the request thread. - """ - # verify the required parameter 'body' is set - if body is None: - raise ValueError("Missing the required parameter `body` when calling `create_persistent_volume_claim`") - - all_params = ['body', 'pretty'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_persistent_volume_claim" % key - ) - params[key] = val - del params['kwargs'] - - resource_path = '/api/v1/persistentvolumeclaims'.replace('{format}', 'json') - method = 'POST' - - path_params = {} - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = [] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='V1PersistentVolumeClaim', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - def list_namespaced_persistent_volume(self, **kwargs): """ list or watch objects of kind PersistentVolume @@ -9651,16 +14181,17 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: V1PersistentVolumeList If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -9689,6 +14220,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -9699,13 +14232,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -9780,13 +14313,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -9803,6 +14336,96 @@ class ApivApi(object): callback=params.get('callback')) return response + def deletecollection_namespaced_persistent_volume(self, **kwargs): + """ + delete collection of PersistentVolume + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.deletecollection_namespaced_persistent_volume(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method deletecollection_namespaced_persistent_volume" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/persistentvolumes'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + def read_namespaced_persistent_volume(self, name, **kwargs): """ read the specified PersistentVolume @@ -9820,6 +14443,8 @@ class ApivApi(object): for asynchronous request. (optional) :param str name: name of the PersistentVolume (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :return: V1PersistentVolume If the method is called asynchronously, returns the request thread. @@ -9828,7 +14453,7 @@ class ApivApi(object): if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_persistent_volume`") - all_params = ['name', 'pretty'] + all_params = ['name', 'pretty', 'export', 'exact'] all_params.append('callback') params = locals() @@ -9851,6 +14476,10 @@ class ApivApi(object): query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] + if 'export' in params: + query_params['export'] = params['export'] + if 'exact' in params: + query_params['exact'] = params['exact'] header_params = {} @@ -9861,13 +14490,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -9948,13 +14577,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -9989,7 +14618,7 @@ class ApivApi(object): :param V1DeleteOptions body: (required) :param str name: name of the PersistentVolume (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Status + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ @@ -10035,13 +14664,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -10053,7 +14682,7 @@ class ApivApi(object): body=body_params, post_params=form_params, files=files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response @@ -10073,7 +14702,7 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) - :param ApiPatch body: (required) + :param UnversionedPatch body: (required) :param str name: name of the PersistentVolume (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1PersistentVolume @@ -10122,7 +14751,7 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] @@ -10209,13 +14838,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -10248,16 +14877,17 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: V1PodList If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -10286,6 +14916,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -10296,13 +14928,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -10319,87 +14951,6 @@ class ApivApi(object): callback=params.get('callback')) return response - def create_pod(self, body, **kwargs): - """ - create a Pod - - - This method makes a synchronous HTTP request by default.To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_pod(body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param V1Pod body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1Pod - If the method is called asynchronously, - returns the request thread. - """ - # verify the required parameter 'body' is set - if body is None: - raise ValueError("Missing the required parameter `body` when calling `create_pod`") - - all_params = ['body', 'pretty'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_pod" % key - ) - params[key] = val - del params['kwargs'] - - resource_path = '/api/v1/pods'.replace('{format}', 'json') - method = 'POST' - - path_params = {} - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = [] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='V1Pod', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - def list_pod_template(self, **kwargs): """ list or watch objects of kind PodTemplate @@ -10416,16 +14967,17 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: V1PodTemplateList If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -10454,6 +15006,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -10464,13 +15018,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -10487,87 +15041,6 @@ class ApivApi(object): callback=params.get('callback')) return response - def create_pod_template(self, body, **kwargs): - """ - create a PodTemplate - - - This method makes a synchronous HTTP request by default.To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_pod_template(body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param V1PodTemplate body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1PodTemplate - If the method is called asynchronously, - returns the request thread. - """ - # verify the required parameter 'body' is set - if body is None: - raise ValueError("Missing the required parameter `body` when calling `create_pod_template`") - - all_params = ['body', 'pretty'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_pod_template" % key - ) - params[key] = val - del params['kwargs'] - - resource_path = '/api/v1/podtemplates'.replace('{format}', 'json') - method = 'POST' - - path_params = {} - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = [] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='V1PodTemplate', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - def proxy_get_namespaced_pod(self, namespace, name, **kwargs): """ proxy GET requests to Pod @@ -10629,13 +15102,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -10713,13 +15186,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -10797,13 +15270,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -10881,13 +15354,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -10965,13 +15438,463 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def proxy_get_namespaced_pod_16(self, namespace, name, path, **kwargs): + """ + proxy GET requests to Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_get_namespaced_pod_16(namespace, name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Pod (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `proxy_get_namespaced_pod_16`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `proxy_get_namespaced_pod_16`") + # verify the required parameter 'path' is set + if path is None: + raise ValueError("Missing the required parameter `path` when calling `proxy_get_namespaced_pod_16`") + + all_params = ['namespace', 'name', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_get_namespaced_pod_16" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def proxy_put_namespaced_pod_17(self, namespace, name, path, **kwargs): + """ + proxy PUT requests to Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_put_namespaced_pod_17(namespace, name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Pod (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `proxy_put_namespaced_pod_17`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `proxy_put_namespaced_pod_17`") + # verify the required parameter 'path' is set + if path is None: + raise ValueError("Missing the required parameter `path` when calling `proxy_put_namespaced_pod_17`") + + all_params = ['namespace', 'name', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_put_namespaced_pod_17" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}'.replace('{format}', 'json') + method = 'PUT' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def proxy_post_namespaced_pod_18(self, namespace, name, path, **kwargs): + """ + proxy POST requests to Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_post_namespaced_pod_18(namespace, name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Pod (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `proxy_post_namespaced_pod_18`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `proxy_post_namespaced_pod_18`") + # verify the required parameter 'path' is set + if path is None: + raise ValueError("Missing the required parameter `path` when calling `proxy_post_namespaced_pod_18`") + + all_params = ['namespace', 'name', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_post_namespaced_pod_18" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def proxy_delete_namespaced_pod_19(self, namespace, name, path, **kwargs): + """ + proxy DELETE requests to Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_delete_namespaced_pod_19(namespace, name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Pod (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `proxy_delete_namespaced_pod_19`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `proxy_delete_namespaced_pod_19`") + # verify the required parameter 'path' is set + if path is None: + raise ValueError("Missing the required parameter `path` when calling `proxy_delete_namespaced_pod_19`") + + all_params = ['namespace', 'name', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_delete_namespaced_pod_19" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def proxy_options_namespaced_pod_20(self, namespace, name, path, **kwargs): + """ + proxy OPTIONS requests to Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_options_namespaced_pod_20(namespace, name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Pod (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `proxy_options_namespaced_pod_20`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `proxy_options_namespaced_pod_20`") + # verify the required parameter 'path' is set + if path is None: + raise ValueError("Missing the required parameter `path` when calling `proxy_options_namespaced_pod_20`") + + all_params = ['namespace', 'name', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_options_namespaced_pod_20" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}'.replace('{format}', 'json') + method = 'OPTIONS' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -11049,13 +15972,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -11133,13 +16056,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -11217,13 +16140,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -11301,13 +16224,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -11385,13 +16308,463 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def proxy_get_namespaced_service_21(self, namespace, name, path, **kwargs): + """ + proxy GET requests to Service + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_get_namespaced_service_21(namespace, name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Service (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `proxy_get_namespaced_service_21`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `proxy_get_namespaced_service_21`") + # verify the required parameter 'path' is set + if path is None: + raise ValueError("Missing the required parameter `path` when calling `proxy_get_namespaced_service_21`") + + all_params = ['namespace', 'name', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_get_namespaced_service_21" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/proxy/namespaces/{namespace}/services/{name}/{path}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def proxy_put_namespaced_service_22(self, namespace, name, path, **kwargs): + """ + proxy PUT requests to Service + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_put_namespaced_service_22(namespace, name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Service (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `proxy_put_namespaced_service_22`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `proxy_put_namespaced_service_22`") + # verify the required parameter 'path' is set + if path is None: + raise ValueError("Missing the required parameter `path` when calling `proxy_put_namespaced_service_22`") + + all_params = ['namespace', 'name', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_put_namespaced_service_22" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/proxy/namespaces/{namespace}/services/{name}/{path}'.replace('{format}', 'json') + method = 'PUT' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def proxy_post_namespaced_service_23(self, namespace, name, path, **kwargs): + """ + proxy POST requests to Service + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_post_namespaced_service_23(namespace, name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Service (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `proxy_post_namespaced_service_23`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `proxy_post_namespaced_service_23`") + # verify the required parameter 'path' is set + if path is None: + raise ValueError("Missing the required parameter `path` when calling `proxy_post_namespaced_service_23`") + + all_params = ['namespace', 'name', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_post_namespaced_service_23" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/proxy/namespaces/{namespace}/services/{name}/{path}'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def proxy_delete_namespaced_service_24(self, namespace, name, path, **kwargs): + """ + proxy DELETE requests to Service + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_delete_namespaced_service_24(namespace, name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Service (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `proxy_delete_namespaced_service_24`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `proxy_delete_namespaced_service_24`") + # verify the required parameter 'path' is set + if path is None: + raise ValueError("Missing the required parameter `path` when calling `proxy_delete_namespaced_service_24`") + + all_params = ['namespace', 'name', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_delete_namespaced_service_24" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/proxy/namespaces/{namespace}/services/{name}/{path}'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def proxy_options_namespaced_service_25(self, namespace, name, path, **kwargs): + """ + proxy OPTIONS requests to Service + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_options_namespaced_service_25(namespace, name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Service (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `proxy_options_namespaced_service_25`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `proxy_options_namespaced_service_25`") + # verify the required parameter 'path' is set + if path is None: + raise ValueError("Missing the required parameter `path` when calling `proxy_options_namespaced_service_25`") + + all_params = ['namespace', 'name', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_options_namespaced_service_25" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/proxy/namespaces/{namespace}/services/{name}/{path}'.replace('{format}', 'json') + method = 'OPTIONS' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -11463,13 +16836,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -11541,13 +16914,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -11619,13 +16992,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -11697,13 +17070,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -11775,13 +17148,433 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def proxy_get_namespaced_node_26(self, name, path, **kwargs): + """ + proxy GET requests to Node + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_get_namespaced_node_26(name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `proxy_get_namespaced_node_26`") + # verify the required parameter 'path' is set + if path is None: + raise ValueError("Missing the required parameter `path` when calling `proxy_get_namespaced_node_26`") + + all_params = ['name', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_get_namespaced_node_26" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/proxy/nodes/{name}/{path}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def proxy_put_namespaced_node_27(self, name, path, **kwargs): + """ + proxy PUT requests to Node + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_put_namespaced_node_27(name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `proxy_put_namespaced_node_27`") + # verify the required parameter 'path' is set + if path is None: + raise ValueError("Missing the required parameter `path` when calling `proxy_put_namespaced_node_27`") + + all_params = ['name', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_put_namespaced_node_27" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/proxy/nodes/{name}/{path}'.replace('{format}', 'json') + method = 'PUT' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def proxy_post_namespaced_node_28(self, name, path, **kwargs): + """ + proxy POST requests to Node + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_post_namespaced_node_28(name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `proxy_post_namespaced_node_28`") + # verify the required parameter 'path' is set + if path is None: + raise ValueError("Missing the required parameter `path` when calling `proxy_post_namespaced_node_28`") + + all_params = ['name', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_post_namespaced_node_28" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/proxy/nodes/{name}/{path}'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def proxy_delete_namespaced_node_29(self, name, path, **kwargs): + """ + proxy DELETE requests to Node + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_delete_namespaced_node_29(name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `proxy_delete_namespaced_node_29`") + # verify the required parameter 'path' is set + if path is None: + raise ValueError("Missing the required parameter `path` when calling `proxy_delete_namespaced_node_29`") + + all_params = ['name', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_delete_namespaced_node_29" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/proxy/nodes/{name}/{path}'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def proxy_options_namespaced_node_30(self, name, path, **kwargs): + """ + proxy OPTIONS requests to Node + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_options_namespaced_node_30(name, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str path: path to the resource (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `proxy_options_namespaced_node_30`") + # verify the required parameter 'path' is set + if path is None: + raise ValueError("Missing the required parameter `path` when calling `proxy_options_namespaced_node_30`") + + all_params = ['name', 'path'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_options_namespaced_node_30" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/proxy/nodes/{name}/{path}'.replace('{format}', 'json') + method = 'OPTIONS' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -11814,16 +17607,17 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: V1ReplicationControllerList If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -11852,6 +17646,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -11862,13 +17658,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -11885,87 +17681,6 @@ class ApivApi(object): callback=params.get('callback')) return response - def create_replication_controller(self, body, **kwargs): - """ - create a ReplicationController - - - This method makes a synchronous HTTP request by default.To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_replication_controller(body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param V1ReplicationController body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1ReplicationController - If the method is called asynchronously, - returns the request thread. - """ - # verify the required parameter 'body' is set - if body is None: - raise ValueError("Missing the required parameter `body` when calling `create_replication_controller`") - - all_params = ['body', 'pretty'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_replication_controller" % key - ) - params[key] = val - del params['kwargs'] - - resource_path = '/api/v1/replicationcontrollers'.replace('{format}', 'json') - method = 'POST' - - path_params = {} - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = [] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='V1ReplicationController', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - def list_resource_quota(self, **kwargs): """ list or watch objects of kind ResourceQuota @@ -11982,16 +17697,17 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: V1ResourceQuotaList If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -12020,6 +17736,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -12030,13 +17748,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -12053,87 +17771,6 @@ class ApivApi(object): callback=params.get('callback')) return response - def create_resource_quota(self, body, **kwargs): - """ - create a ResourceQuota - - - This method makes a synchronous HTTP request by default.To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_resource_quota(body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param V1ResourceQuota body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1ResourceQuota - If the method is called asynchronously, - returns the request thread. - """ - # verify the required parameter 'body' is set - if body is None: - raise ValueError("Missing the required parameter `body` when calling `create_resource_quota`") - - all_params = ['body', 'pretty'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_resource_quota" % key - ) - params[key] = val - del params['kwargs'] - - resource_path = '/api/v1/resourcequotas'.replace('{format}', 'json') - method = 'POST' - - path_params = {} - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = [] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='V1ResourceQuota', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - def list_secret(self, **kwargs): """ list or watch objects of kind Secret @@ -12150,16 +17787,17 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: V1SecretList If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -12188,6 +17826,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -12198,13 +17838,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -12221,87 +17861,6 @@ class ApivApi(object): callback=params.get('callback')) return response - def create_secret(self, body, **kwargs): - """ - create a Secret - - - This method makes a synchronous HTTP request by default.To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_secret(body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param V1Secret body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1Secret - If the method is called asynchronously, - returns the request thread. - """ - # verify the required parameter 'body' is set - if body is None: - raise ValueError("Missing the required parameter `body` when calling `create_secret`") - - all_params = ['body', 'pretty'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_secret" % key - ) - params[key] = val - del params['kwargs'] - - resource_path = '/api/v1/secrets'.replace('{format}', 'json') - method = 'POST' - - path_params = {} - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = [] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='V1Secret', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - def list_service_account(self, **kwargs): """ list or watch objects of kind ServiceAccount @@ -12318,16 +17877,17 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: V1ServiceAccountList If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -12356,6 +17916,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -12366,13 +17928,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -12389,87 +17951,6 @@ class ApivApi(object): callback=params.get('callback')) return response - def create_service_account(self, body, **kwargs): - """ - create a ServiceAccount - - - This method makes a synchronous HTTP request by default.To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_service_account(body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param V1ServiceAccount body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1ServiceAccount - If the method is called asynchronously, - returns the request thread. - """ - # verify the required parameter 'body' is set - if body is None: - raise ValueError("Missing the required parameter `body` when calling `create_service_account`") - - all_params = ['body', 'pretty'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_service_account" % key - ) - params[key] = val - del params['kwargs'] - - resource_path = '/api/v1/serviceaccounts'.replace('{format}', 'json') - method = 'POST' - - path_params = {} - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = [] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='V1ServiceAccount', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - def list_service(self, **kwargs): """ list or watch objects of kind Service @@ -12486,16 +17967,17 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: V1ServiceList If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -12524,6 +18006,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -12534,13 +18018,13 @@ class ApivApi(object): # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -12557,9 +18041,9 @@ class ApivApi(object): callback=params.get('callback')) return response - def create_service(self, body, **kwargs): + def watch_config_map_list(self, **kwargs): """ - create a Service + watch individual changes to a list of ConfigMap This method makes a synchronous HTTP request by default.To make an @@ -12568,21 +18052,22 @@ class ApivApi(object): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_service(body, callback=callback_function) + >>> thread = api.watch_config_map_list(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1Service body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Service + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ - # verify the required parameter 'body' is set - if body is None: - raise ValueError("Missing the required parameter `body` when calling `create_service`") - all_params = ['body', 'pretty'] + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -12590,19 +18075,29 @@ class ApivApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_service" % key + " to method watch_config_map_list" % key ) params[key] = val del params['kwargs'] - resource_path = '/api/v1/services'.replace('{format}', 'json') - method = 'POST' + resource_path = '/api/v1/watch/configmaps'.replace('{format}', 'json') + method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -12610,8 +18105,6 @@ class ApivApi(object): files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -12621,7 +18114,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -12633,7 +18126,7 @@ class ApivApi(object): body=body_params, post_params=form_params, files=files, - response_type='V1Service', + response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response @@ -12654,16 +18147,17 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -12692,6 +18186,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -12708,7 +18204,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -12741,16 +18237,17 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -12779,6 +18276,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -12795,7 +18294,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -12828,16 +18327,17 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -12866,6 +18366,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -12882,7 +18384,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -12915,16 +18417,17 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -12953,6 +18456,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -12969,7 +18474,205 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_namespaced_config_map_list(self, namespace, **kwargs): + """ + watch individual changes to a list of ConfigMap + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_config_map_list(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_config_map_list`") + + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_config_map_list" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/namespaces/{namespace}/configmaps'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_namespaced_config_map(self, namespace, name, **kwargs): + """ + watch changes to an object of kind ConfigMap + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_config_map(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the ConfigMap (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_config_map`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_config_map`") + + all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_config_map" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/namespaces/{namespace}/configmaps/{name}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -13003,10 +18706,11 @@ class ApivApi(object): for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. @@ -13015,7 +18719,7 @@ class ApivApi(object): if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_endpoints_list`") - all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -13046,6 +18750,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -13062,7 +18768,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -13097,10 +18803,11 @@ class ApivApi(object): :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Endpoints (required) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. @@ -13112,7 +18819,7 @@ class ApivApi(object): if name is None: raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_endpoints`") - all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -13145,6 +18852,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -13161,7 +18870,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -13195,10 +18904,11 @@ class ApivApi(object): for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. @@ -13207,7 +18917,7 @@ class ApivApi(object): if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_event_list`") - all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -13238,6 +18948,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -13254,7 +18966,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -13289,10 +19001,11 @@ class ApivApi(object): :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Event (required) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. @@ -13304,7 +19017,7 @@ class ApivApi(object): if name is None: raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_event`") - all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -13337,6 +19050,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -13353,7 +19068,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -13387,10 +19102,11 @@ class ApivApi(object): for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. @@ -13399,7 +19115,7 @@ class ApivApi(object): if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_limit_range_list`") - all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -13430,6 +19146,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -13446,7 +19164,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -13481,10 +19199,11 @@ class ApivApi(object): :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the LimitRange (required) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. @@ -13496,7 +19215,7 @@ class ApivApi(object): if name is None: raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_limit_range`") - all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -13529,6 +19248,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -13545,7 +19266,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -13579,10 +19300,11 @@ class ApivApi(object): for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. @@ -13591,7 +19313,7 @@ class ApivApi(object): if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_persistent_volume_claim_list`") - all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -13622,6 +19344,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -13638,7 +19362,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -13673,10 +19397,11 @@ class ApivApi(object): :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the PersistentVolumeClaim (required) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. @@ -13688,7 +19413,7 @@ class ApivApi(object): if name is None: raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_persistent_volume_claim`") - all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -13721,6 +19446,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -13737,7 +19464,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -13771,10 +19498,11 @@ class ApivApi(object): for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. @@ -13783,7 +19511,7 @@ class ApivApi(object): if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_pod_list`") - all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -13814,6 +19542,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -13830,7 +19560,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -13865,10 +19595,11 @@ class ApivApi(object): :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Pod (required) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. @@ -13880,7 +19611,7 @@ class ApivApi(object): if name is None: raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_pod`") - all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -13913,6 +19644,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -13929,7 +19662,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -13963,10 +19696,11 @@ class ApivApi(object): for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. @@ -13975,7 +19709,7 @@ class ApivApi(object): if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_pod_template_list`") - all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -14006,6 +19740,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -14022,7 +19758,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -14057,10 +19793,11 @@ class ApivApi(object): :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the PodTemplate (required) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. @@ -14072,7 +19809,7 @@ class ApivApi(object): if name is None: raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_pod_template`") - all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -14105,6 +19842,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -14121,7 +19860,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -14155,10 +19894,11 @@ class ApivApi(object): for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. @@ -14167,7 +19907,7 @@ class ApivApi(object): if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_replication_controller_list`") - all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -14198,6 +19938,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -14214,7 +19956,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -14249,10 +19991,11 @@ class ApivApi(object): :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the ReplicationController (required) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. @@ -14264,7 +20007,7 @@ class ApivApi(object): if name is None: raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_replication_controller`") - all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -14297,6 +20040,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -14313,7 +20058,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -14347,10 +20092,11 @@ class ApivApi(object): for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. @@ -14359,7 +20105,7 @@ class ApivApi(object): if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_resource_quota_list`") - all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -14390,6 +20136,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -14406,7 +20154,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -14441,10 +20189,11 @@ class ApivApi(object): :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the ResourceQuota (required) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. @@ -14456,7 +20205,7 @@ class ApivApi(object): if name is None: raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_resource_quota`") - all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -14489,6 +20238,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -14505,7 +20256,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -14539,10 +20290,11 @@ class ApivApi(object): for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. @@ -14551,7 +20303,7 @@ class ApivApi(object): if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_secret_list`") - all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -14582,6 +20334,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -14598,7 +20352,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -14633,10 +20387,11 @@ class ApivApi(object): :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Secret (required) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. @@ -14648,7 +20403,7 @@ class ApivApi(object): if name is None: raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_secret`") - all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -14681,6 +20436,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -14697,7 +20454,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -14731,10 +20488,11 @@ class ApivApi(object): for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. @@ -14743,7 +20501,7 @@ class ApivApi(object): if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_service_account_list`") - all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -14774,6 +20532,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -14790,7 +20550,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -14825,10 +20585,11 @@ class ApivApi(object): :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the ServiceAccount (required) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. @@ -14840,7 +20601,7 @@ class ApivApi(object): if name is None: raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_service_account`") - all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -14873,6 +20634,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -14889,7 +20652,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -14923,10 +20686,11 @@ class ApivApi(object): for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. @@ -14935,7 +20699,7 @@ class ApivApi(object): if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_service_list`") - all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -14966,6 +20730,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -14982,7 +20748,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -15017,10 +20783,11 @@ class ApivApi(object): :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Service (required) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. @@ -15032,7 +20799,7 @@ class ApivApi(object): if name is None: raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_service`") - all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -15065,6 +20832,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -15081,7 +20850,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -15115,10 +20884,11 @@ class ApivApi(object): for asynchronous request. (optional) :param str name: name of the Namespace (required) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. @@ -15127,7 +20897,7 @@ class ApivApi(object): if name is None: raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_namespace`") - all_params = ['name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -15158,6 +20928,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -15174,7 +20946,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -15207,16 +20979,17 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -15245,6 +21018,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -15261,7 +21036,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -15295,10 +21070,11 @@ class ApivApi(object): for asynchronous request. (optional) :param str name: name of the Node (required) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. @@ -15307,7 +21083,7 @@ class ApivApi(object): if name is None: raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_node`") - all_params = ['name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -15338,6 +21114,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -15354,7 +21132,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -15387,16 +21165,17 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -15425,6 +21204,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -15441,7 +21222,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -15474,16 +21255,17 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -15512,6 +21294,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -15528,7 +21312,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -15562,10 +21346,11 @@ class ApivApi(object): for asynchronous request. (optional) :param str name: name of the PersistentVolume (required) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. @@ -15574,7 +21359,7 @@ class ApivApi(object): if name is None: raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_persistent_volume`") - all_params = ['name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -15605,6 +21390,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -15621,7 +21408,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -15654,16 +21441,17 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -15692,6 +21480,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -15708,7 +21498,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -15741,16 +21531,17 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -15779,6 +21570,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -15795,7 +21588,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -15828,16 +21621,17 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -15866,6 +21660,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -15882,7 +21678,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -15915,16 +21711,17 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -15953,6 +21750,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -15969,7 +21768,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -16002,16 +21801,17 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -16040,6 +21840,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -16056,7 +21858,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -16089,16 +21891,17 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -16127,6 +21930,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -16143,7 +21948,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] @@ -16176,16 +21981,17 @@ class ApivApi(object): :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. - :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything - :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything - :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion - :param str resource_version: when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() @@ -16214,6 +22020,8 @@ class ApivApi(object): query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} @@ -16230,7 +22038,7 @@ class ApivApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] diff --git a/k8sclient/client/configuration.py b/k8sclient/client/configuration.py index 54a47fb..5f10436 100644 --- a/k8sclient/client/configuration.py +++ b/k8sclient/client/configuration.py @@ -53,7 +53,7 @@ class Configuration(object): Constructor """ # Default Base url - self.host = "https://127.0.0.1:6443/" + self.host = "https://10.10.10.10:443/" # Default api client self.api_client = None # Temp file folder for download diff --git a/k8sclient/client/models/__init__.py b/k8sclient/client/models/__init__.py index c5bac0b..91eefba 100644 --- a/k8sclient/client/models/__init__.py +++ b/k8sclient/client/models/__init__.py @@ -13,111 +13,135 @@ from __future__ import absolute_import # import models into model package -from .v1_node import V1Node -from .v1_persistent_volume_claim_list import V1PersistentVolumeClaimList -from .v1_object_field_selector import V1ObjectFieldSelector -from .v1_se_linux_options import V1SELinuxOptions -from .v1_container_state_running import V1ContainerStateRunning -from .v1_volume_mount import V1VolumeMount -from .v1_persistent_volume_claim_spec import V1PersistentVolumeClaimSpec -from .v1_gce_persistent_disk_volume_source import V1GCEPersistentDiskVolumeSource -from .v1_namespace_status import V1NamespaceStatus -from .v1_resource_quota_spec import V1ResourceQuotaSpec -from .v1_namespace_spec import V1NamespaceSpec from .v1_persistent_volume import V1PersistentVolume -from .v1_persistent_volume_status import V1PersistentVolumeStatus -from .v1_endpoints_list import V1EndpointsList -from .v1_git_repo_volume_source import V1GitRepoVolumeSource -from .v1_capabilities import V1Capabilities -from .v1_node_condition import V1NodeCondition -from .v1_pod_template_list import V1PodTemplateList -from .v1_local_object_reference import V1LocalObjectReference -from .v1_resource_quota_status import V1ResourceQuotaStatus -from .v1_exec_action import V1ExecAction -from .v1_object_meta import V1ObjectMeta -from .api_patch import ApiPatch -from .v1_limit_range_spec import V1LimitRangeSpec -from .v1_iscsi_volume_source import V1ISCSIVolumeSource -from .v1_empty_dir_volume_source import V1EmptyDirVolumeSource -from .v1_node_list import V1NodeList -from .v1_persistent_volume_claim import V1PersistentVolumeClaim -from .v1_namespace_list import V1NamespaceList -from .v1_service_account import V1ServiceAccount -from .v1_node_address import V1NodeAddress -from .v1_namespace import V1Namespace -from .v1_list_meta import V1ListMeta -from .v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource -from .v1_persistent_volume_claim_status import V1PersistentVolumeClaimStatus -from .v1_resource_quota_list import V1ResourceQuotaList -from .v1_endpoint_subset import V1EndpointSubset -from .v1_secret_volume_source import V1SecretVolumeSource -from .v1_env_var_source import V1EnvVarSource -from .v1_load_balancer_ingress import V1LoadBalancerIngress -from .v1_service import V1Service -from .v1_service_account_list import V1ServiceAccountList -from .v1_limit_range_list import V1LimitRangeList -from .v1_endpoints import V1Endpoints -from .v1_delete_options import V1DeleteOptions -from .v1_volume import V1Volume -from .v1_probe import V1Probe -from .v1_capability import V1Capability -from .v1_replication_controller import V1ReplicationController -from .v1_limit_range import V1LimitRange -from .v1_pod_status import V1PodStatus -from .v1_pod_spec import V1PodSpec -from .v1_container_port import V1ContainerPort -from .v1_event_list import V1EventList -from .v1_resource_quota import V1ResourceQuota -from .v1_lifecycle import V1Lifecycle -from .v1_node_status import V1NodeStatus -from .v1_glusterfs_volume_source import V1GlusterfsVolumeSource -from .v1_handler import V1Handler -from .v1_replication_controller_spec import V1ReplicationControllerSpec -from .v1_event_source import V1EventSource -from .v1_status_cause import V1StatusCause -from .v1_pod_condition import V1PodCondition -from .v1_rbd_volume_source import V1RBDVolumeSource -from .v1_status import V1Status -from .v1_pod_template import V1PodTemplate -from .v1_service_status import V1ServiceStatus -from .v1_nfs_volume_source import V1NFSVolumeSource -from .v1_endpoint_port import V1EndpointPort from .v1_tcp_socket_action import V1TCPSocketAction -from .v1_http_get_action import V1HTTPGetAction -from .v1_status_details import V1StatusDetails -from .v1_load_balancer_status import V1LoadBalancerStatus -from .v1_secret_list import V1SecretList -from .v1_container import V1Container -from .v1_persistent_volume_spec import V1PersistentVolumeSpec -from .v1_replication_controller_status import V1ReplicationControllerStatus -from .v1_finalizer_name import V1FinalizerName -from .v1_service_port import V1ServicePort -from .v1_component_condition import V1ComponentCondition -from .v1_component_status_list import V1ComponentStatusList -from .v1_host_path_volume_source import V1HostPathVolumeSource -from .json_watch_event import JsonWatchEvent -from .v1_binding import V1Binding +from .v1_resource_quota_status import V1ResourceQuotaStatus from .v1_container_state_terminated import V1ContainerStateTerminated -from .v1_security_context import V1SecurityContext -from .v1_container_state import V1ContainerState -from .v1_aws_elastic_block_store_volume_source import V1AWSElasticBlockStoreVolumeSource -from .v1_container_status import V1ContainerStatus +from .v1_scale_spec import V1ScaleSpec from .v1_replication_controller_list import V1ReplicationControllerList -from .v1_secret import V1Secret +from .v1_capability import V1Capability +from .v1_pod import V1Pod from .v1_event import V1Event -from .v1_env_var import V1EnvVar -from .v1_resource_requirements import V1ResourceRequirements -from .v1_persistent_volume_access_mode import V1PersistentVolumeAccessMode -from .v1_component_status import V1ComponentStatus -from .v1_limit_range_item import V1LimitRangeItem +from .v1_node_daemon_endpoints import V1NodeDaemonEndpoints +from .v1_host_path_volume_source import V1HostPathVolumeSource +from .v1_config_map_key_selector import V1ConfigMapKeySelector +from .v1_volume import V1Volume +from .v1_container_state_running import V1ContainerStateRunning +from .v1_config_map_volume_source import V1ConfigMapVolumeSource +from .v1_delete_options import V1DeleteOptions from .v1_pod_template_spec import V1PodTemplateSpec -from .v1_pod_list import V1PodList +from .v1_secret_list import V1SecretList +from .v1_nfs_volume_source import V1NFSVolumeSource +from .v1_ceph_fs_volume_source import V1CephFSVolumeSource +from .v1_capabilities import V1Capabilities +from .v1_component_condition import V1ComponentCondition +from .unversioned_status import UnversionedStatus +from .v1_service_status import V1ServiceStatus +from .unversioned_status_details import UnversionedStatusDetails +from .v1_secret_volume_source import V1SecretVolumeSource +from .v1_resource_requirements import V1ResourceRequirements +from .v1_persistent_volume_claim import V1PersistentVolumeClaim +from .unversioned_patch import UnversionedPatch +from .v1_namespace_status import V1NamespaceStatus +from .v1_resource_quota_scope import V1ResourceQuotaScope +from .v1_azure_file_volume_source import V1AzureFileVolumeSource +from .v1_persistent_volume_access_mode import V1PersistentVolumeAccessMode +from .v1_resource_quota_spec import V1ResourceQuotaSpec +from .v1_persistent_volume_spec import V1PersistentVolumeSpec +from .v1_exec_action import V1ExecAction +from .v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource +from .v1_service_spec import V1ServiceSpec from .v1_service_list import V1ServiceList from .v1_persistent_volume_list import V1PersistentVolumeList -from .v1_object_reference import V1ObjectReference -from .v1_container_state_waiting import V1ContainerStateWaiting -from .v1_node_system_info import V1NodeSystemInfo -from .v1_service_spec import V1ServiceSpec -from .v1_pod import V1Pod +from .v1_container_status import V1ContainerStatus +from .v1_handler import V1Handler +from .v1_node_address import V1NodeAddress +from .v1_fc_volume_source import V1FCVolumeSource +from .v1_endpoint_port import V1EndpointPort +from .v1_downward_api_volume_file import V1DownwardAPIVolumeFile +from .v1_endpoint_subset import V1EndpointSubset +from .v1_limit_range_list import V1LimitRangeList +from .v1_container import V1Container +from .v1_pod_spec import V1PodSpec +from .v1_flocker_volume_source import V1FlockerVolumeSource +from .v1_persistent_volume_status import V1PersistentVolumeStatus +from .v1_rbd_volume_source import V1RBDVolumeSource +from .v1_load_balancer_ingress import V1LoadBalancerIngress +from .v1_security_context import V1SecurityContext +from .v1_service_port import V1ServicePort +from .v1_scale_status import V1ScaleStatus +from .v1_namespace import V1Namespace +from .v1_gce_persistent_disk_volume_source import V1GCEPersistentDiskVolumeSource +from .v1_endpoints_list import V1EndpointsList +from .v1_node_list import V1NodeList +from .v1_event_source import V1EventSource +from .v1_http_header import V1HTTPHeader +from .v1_key_to_path import V1KeyToPath +from .v1_env_var_source import V1EnvVarSource +from .unversioned_list_meta import UnversionedListMeta +from .v1_limit_range_spec import V1LimitRangeSpec +from .v1_persistent_volume_claim_spec import V1PersistentVolumeClaimSpec +from .v1_replication_controller import V1ReplicationController +from .v1_namespace_list import V1NamespaceList +from .v1_config_map_list import V1ConfigMapList +from .integer import Integer +from .v1_volume_mount import V1VolumeMount +from .v1_node_status import V1NodeStatus +from .v1_replication_controller_status import V1ReplicationControllerStatus +from .v1_pod_condition import V1PodCondition +from .v1_node_condition import V1NodeCondition +from .v1_pod_security_context import V1PodSecurityContext +from .v1_service_account import V1ServiceAccount +from .v1_pod_template import V1PodTemplate +from .v1_pod_list import V1PodList +from .v1_empty_dir_volume_source import V1EmptyDirVolumeSource from .v1_node_spec import V1NodeSpec +from .v1_http_get_action import V1HTTPGetAction +from .v1_resource_quota_list import V1ResourceQuotaList +from .v1_daemon_endpoint import V1DaemonEndpoint +from .v1_service_account_list import V1ServiceAccountList +from .v1_probe import V1Probe +from .v1_namespace_spec import V1NamespaceSpec +from .v1_iscsi_volume_source import V1ISCSIVolumeSource +from .v1_event_list import V1EventList +from .v1_load_balancer_status import V1LoadBalancerStatus +from .v1_persistent_volume_claim_list import V1PersistentVolumeClaimList +from .v1_component_status import V1ComponentStatus +from .v1_git_repo_volume_source import V1GitRepoVolumeSource +from .v1_object_meta import V1ObjectMeta +from .v1_secret_key_selector import V1SecretKeySelector +from .v1_local_object_reference import V1LocalObjectReference +from .v1_config_map import V1ConfigMap +from .v1_flex_volume_source import V1FlexVolumeSource +from .v1_container_port import V1ContainerPort +from .v1_secret import V1Secret +from .v1_downward_api_volume_source import V1DownwardAPIVolumeSource +from .v1_container_state import V1ContainerState +from .v1_endpoints import V1Endpoints +from .v1_cinder_volume_source import V1CinderVolumeSource +from .v1_pod_status import V1PodStatus +from .v1_se_linux_options import V1SELinuxOptions +from .v1_service import V1Service +from .v1_object_reference import V1ObjectReference +from .v1_object_field_selector import V1ObjectFieldSelector +from .v1_component_status_list import V1ComponentStatusList +from .v1_lifecycle import V1Lifecycle +from .v1_node_system_info import V1NodeSystemInfo +from .json_watch_event import JsonWatchEvent from .v1_endpoint_address import V1EndpointAddress +from .v1_aws_elastic_block_store_volume_source import V1AWSElasticBlockStoreVolumeSource +from .v1_binding import V1Binding +from .v1_node import V1Node +from .v1_resource_quota import V1ResourceQuota +from .v1_env_var import V1EnvVar +from .v1_scale import V1Scale +from .unversioned_status_cause import UnversionedStatusCause +from .v1_replication_controller_spec import V1ReplicationControllerSpec +from .v1_container_state_waiting import V1ContainerStateWaiting +from .v1_pod_template_list import V1PodTemplateList +from .v1_limit_range_item import V1LimitRangeItem +from .v1_finalizer_name import V1FinalizerName +from .v1_limit_range import V1LimitRange +from .v1_glusterfs_volume_source import V1GlusterfsVolumeSource +from .v1_container_image import V1ContainerImage +from .v1_persistent_volume_claim_status import V1PersistentVolumeClaimStatus diff --git a/k8sclient/client/models/api_patch.py b/k8sclient/client/models/integer.py similarity index 98% rename from k8sclient/client/models/api_patch.py rename to k8sclient/client/models/integer.py index 9e9ff28..d238f44 100644 --- a/k8sclient/client/models/api_patch.py +++ b/k8sclient/client/models/integer.py @@ -20,7 +20,7 @@ from pprint import pformat from six import iteritems -class ApiPatch(object): +class Integer(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/k8sclient/client/models/v1_list_meta.py b/k8sclient/client/models/unversioned_list_meta.py similarity index 65% rename from k8sclient/client/models/v1_list_meta.py rename to k8sclient/client/models/unversioned_list_meta.py index 673fc38..c660d9e 100644 --- a/k8sclient/client/models/v1_list_meta.py +++ b/k8sclient/client/models/unversioned_list_meta.py @@ -20,7 +20,7 @@ from pprint import pformat from six import iteritems -class V1ListMeta(object): +class UnversionedListMeta(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -50,10 +50,10 @@ class V1ListMeta(object): @property def self_link(self): """ - Gets the self_link of this V1ListMeta. - URL for the object; populated by the system, read-only + Gets the self_link of this UnversionedListMeta. + SelfLink is a URL representing this object. Populated by the system. Read-only. - :return: The self_link of this V1ListMeta. + :return: The self_link of this UnversionedListMeta. :rtype: str """ return self._self_link @@ -61,10 +61,10 @@ class V1ListMeta(object): @self_link.setter def self_link(self, self_link): """ - Sets the self_link of this V1ListMeta. - URL for the object; populated by the system, read-only + Sets the self_link of this UnversionedListMeta. + SelfLink is a URL representing this object. Populated by the system. Read-only. - :param self_link: The self_link of this V1ListMeta. + :param self_link: The self_link of this UnversionedListMeta. :type: str """ self._self_link = self_link @@ -72,10 +72,10 @@ class V1ListMeta(object): @property def resource_version(self): """ - Gets the resource_version of this V1ListMeta. - string that identifies the internal version of this object that can be used by clients to determine when objects have changed; populated by the system, read-only; value must be treated as opaque by clients and passed unmodified back to the server: http://releases.k8s.io/v1.0.4/docs/api-conventions.md#concurrency-control-and-consistency + Gets the resource_version of this UnversionedListMeta. + 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: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#concurrency-control-and-consistency - :return: The resource_version of this V1ListMeta. + :return: The resource_version of this UnversionedListMeta. :rtype: str """ return self._resource_version @@ -83,10 +83,10 @@ class V1ListMeta(object): @resource_version.setter def resource_version(self, resource_version): """ - Sets the resource_version of this V1ListMeta. - string that identifies the internal version of this object that can be used by clients to determine when objects have changed; populated by the system, read-only; value must be treated as opaque by clients and passed unmodified back to the server: http://releases.k8s.io/v1.0.4/docs/api-conventions.md#concurrency-control-and-consistency + Sets the resource_version of this UnversionedListMeta. + 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: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#concurrency-control-and-consistency - :param resource_version: The resource_version of this V1ListMeta. + :param resource_version: The resource_version of this UnversionedListMeta. :type: str """ self._resource_version = resource_version diff --git a/k8sclient/client/models/unversioned_patch.py b/k8sclient/client/models/unversioned_patch.py new file mode 100644 index 0000000..daa1c08 --- /dev/null +++ b/k8sclient/client/models/unversioned_patch.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class UnversionedPatch(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + + } + + self.attribute_map = { + + } + + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/k8sclient/client/models/unversioned_status.py b/k8sclient/client/models/unversioned_status.py new file mode 100644 index 0000000..16be03f --- /dev/null +++ b/k8sclient/client/models/unversioned_status.py @@ -0,0 +1,274 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class UnversionedStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'api_version': 'str', + 'metadata': 'UnversionedListMeta', + 'status': 'str', + 'message': 'str', + 'reason': 'str', + 'details': 'UnversionedStatusDetails', + 'code': 'int' + } + + self.attribute_map = { + 'kind': 'kind', + 'api_version': 'apiVersion', + 'metadata': 'metadata', + 'status': 'status', + 'message': 'message', + 'reason': 'reason', + 'details': 'details', + 'code': 'code' + } + + self._kind = None + self._api_version = None + self._metadata = None + self._status = None + self._message = None + self._reason = None + self._details = None + self._code = None + + @property + def kind(self): + """ + Gets the kind of this UnversionedStatus. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this UnversionedStatus. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this UnversionedStatus. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this UnversionedStatus. + :type: str + """ + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this UnversionedStatus. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources + + :return: The api_version of this UnversionedStatus. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this UnversionedStatus. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this UnversionedStatus. + :type: str + """ + self._api_version = api_version + + @property + def metadata(self): + """ + Gets the metadata of this UnversionedStatus. + Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds + + :return: The metadata of this UnversionedStatus. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this UnversionedStatus. + Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds + + :param metadata: The metadata of this UnversionedStatus. + :type: UnversionedListMeta + """ + self._metadata = metadata + + @property + def status(self): + """ + Gets the status of this UnversionedStatus. + Status of the operation. One of: \"Success\" or \"Failure\". More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status + + :return: The status of this UnversionedStatus. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this UnversionedStatus. + Status of the operation. One of: \"Success\" or \"Failure\". More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status + + :param status: The status of this UnversionedStatus. + :type: str + """ + self._status = status + + @property + def message(self): + """ + Gets the message of this UnversionedStatus. + A human-readable description of the status of this operation. + + :return: The message of this UnversionedStatus. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this UnversionedStatus. + A human-readable description of the status of this operation. + + :param message: The message of this UnversionedStatus. + :type: str + """ + self._message = message + + @property + def reason(self): + """ + Gets the reason of this UnversionedStatus. + A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. + + :return: The reason of this UnversionedStatus. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this UnversionedStatus. + A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. + + :param reason: The reason of this UnversionedStatus. + :type: str + """ + self._reason = reason + + @property + def details(self): + """ + Gets the details of this UnversionedStatus. + Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. + + :return: The details of this UnversionedStatus. + :rtype: UnversionedStatusDetails + """ + return self._details + + @details.setter + def details(self, details): + """ + Sets the details of this UnversionedStatus. + Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. + + :param details: The details of this UnversionedStatus. + :type: UnversionedStatusDetails + """ + self._details = details + + @property + def code(self): + """ + Gets the code of this UnversionedStatus. + Suggested HTTP return code for this status, 0 if not set. + + :return: The code of this UnversionedStatus. + :rtype: int + """ + return self._code + + @code.setter + def code(self, code): + """ + Sets the code of this UnversionedStatus. + Suggested HTTP return code for this status, 0 if not set. + + :param code: The code of this UnversionedStatus. + :type: int + """ + self._code = code + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/k8sclient/client/models/v1_status_cause.py b/k8sclient/client/models/unversioned_status_cause.py similarity index 58% rename from k8sclient/client/models/v1_status_cause.py rename to k8sclient/client/models/unversioned_status_cause.py index 34c917e..88a74bf 100644 --- a/k8sclient/client/models/v1_status_cause.py +++ b/k8sclient/client/models/unversioned_status_cause.py @@ -20,7 +20,7 @@ from pprint import pformat from six import iteritems -class V1StatusCause(object): +class UnversionedStatusCause(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -53,10 +53,10 @@ class V1StatusCause(object): @property def reason(self): """ - Gets the reason of this V1StatusCause. - machine-readable description of the cause of the error; if this value is empty there is no information available + Gets the reason of this UnversionedStatusCause. + A machine-readable description of the cause of the error. If this value is empty there is no information available. - :return: The reason of this V1StatusCause. + :return: The reason of this UnversionedStatusCause. :rtype: str """ return self._reason @@ -64,10 +64,10 @@ class V1StatusCause(object): @reason.setter def reason(self, reason): """ - Sets the reason of this V1StatusCause. - machine-readable description of the cause of the error; if this value is empty there is no information available + Sets the reason of this UnversionedStatusCause. + A machine-readable description of the cause of the error. If this value is empty there is no information available. - :param reason: The reason of this V1StatusCause. + :param reason: The reason of this UnversionedStatusCause. :type: str """ self._reason = reason @@ -75,10 +75,10 @@ class V1StatusCause(object): @property def message(self): """ - Gets the message of this V1StatusCause. - human-readable description of the cause of the error; this field may be presented as-is to a reader + Gets the message of this UnversionedStatusCause. + A human-readable description of the cause of the error. This field may be presented as-is to a reader. - :return: The message of this V1StatusCause. + :return: The message of this UnversionedStatusCause. :rtype: str """ return self._message @@ -86,10 +86,10 @@ class V1StatusCause(object): @message.setter def message(self, message): """ - Sets the message of this V1StatusCause. - human-readable description of the cause of the error; this field may be presented as-is to a reader + Sets the message of this UnversionedStatusCause. + A human-readable description of the cause of the error. This field may be presented as-is to a reader. - :param message: The message of this V1StatusCause. + :param message: The message of this UnversionedStatusCause. :type: str """ self._message = message @@ -97,10 +97,10 @@ class V1StatusCause(object): @property def field(self): """ - Gets the field of this V1StatusCause. - field of the resource that has caused this error, as named by its JSON serialization; may include dot and postfix notation for nested attributes; arrays are zero-indexed; fields may appear more than once in an array of causes due to fields having multiple errors + Gets the field of this UnversionedStatusCause. + The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.\n\nExamples:\n \"name\" - the field \"name\" on the current resource\n \"items[0].name\" - the field \"name\" on the first array entry in \"items\" - :return: The field of this V1StatusCause. + :return: The field of this UnversionedStatusCause. :rtype: str """ return self._field @@ -108,10 +108,10 @@ class V1StatusCause(object): @field.setter def field(self, field): """ - Sets the field of this V1StatusCause. - field of the resource that has caused this error, as named by its JSON serialization; may include dot and postfix notation for nested attributes; arrays are zero-indexed; fields may appear more than once in an array of causes due to fields having multiple errors + Sets the field of this UnversionedStatusCause. + The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.\n\nExamples:\n \"name\" - the field \"name\" on the current resource\n \"items[0].name\" - the field \"name\" on the first array entry in \"items\" - :param field: The field of this V1StatusCause. + :param field: The field of this UnversionedStatusCause. :type: str """ self._field = field diff --git a/k8sclient/client/models/v1_status_details.py b/k8sclient/client/models/unversioned_status_details.py similarity index 54% rename from k8sclient/client/models/v1_status_details.py rename to k8sclient/client/models/unversioned_status_details.py index 83f7d84..a68cb2b 100644 --- a/k8sclient/client/models/v1_status_details.py +++ b/k8sclient/client/models/unversioned_status_details.py @@ -20,7 +20,7 @@ from pprint import pformat from six import iteritems -class V1StatusDetails(object): +class UnversionedStatusDetails(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +36,22 @@ class V1StatusDetails(object): """ self.swagger_types = { 'name': 'str', + 'group': 'str', 'kind': 'str', - 'causes': 'list[V1StatusCause]', + 'causes': 'list[UnversionedStatusCause]', 'retry_after_seconds': 'int' } self.attribute_map = { 'name': 'name', + 'group': 'group', 'kind': 'kind', 'causes': 'causes', 'retry_after_seconds': 'retryAfterSeconds' } self._name = None + self._group = None self._kind = None self._causes = None self._retry_after_seconds = None @@ -56,10 +59,10 @@ class V1StatusDetails(object): @property def name(self): """ - Gets the name of this V1StatusDetails. - the name attribute of the resource associated with the status StatusReason (when there is a single name which can be described) + Gets the name of this UnversionedStatusDetails. + The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). - :return: The name of this V1StatusDetails. + :return: The name of this UnversionedStatusDetails. :rtype: str """ return self._name @@ -67,21 +70,43 @@ class V1StatusDetails(object): @name.setter def name(self, name): """ - Sets the name of this V1StatusDetails. - the name attribute of the resource associated with the status StatusReason (when there is a single name which can be described) + Sets the name of this UnversionedStatusDetails. + The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). - :param name: The name of this V1StatusDetails. + :param name: The name of this UnversionedStatusDetails. :type: str """ self._name = name + @property + def group(self): + """ + Gets the group of this UnversionedStatusDetails. + The group attribute of the resource associated with the status StatusReason. + + :return: The group of this UnversionedStatusDetails. + :rtype: str + """ + return self._group + + @group.setter + def group(self, group): + """ + Sets the group of this UnversionedStatusDetails. + The group attribute of the resource associated with the status StatusReason. + + :param group: The group of this UnversionedStatusDetails. + :type: str + """ + self._group = group + @property def kind(self): """ - Gets the kind of this V1StatusDetails. - the kind attribute of the resource associated with the status StatusReason; on some operations may differ from the requested resource Kind; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Gets the kind of this UnversionedStatusDetails. + The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds - :return: The kind of this V1StatusDetails. + :return: The kind of this UnversionedStatusDetails. :rtype: str """ return self._kind @@ -89,10 +114,10 @@ class V1StatusDetails(object): @kind.setter def kind(self, kind): """ - Sets the kind of this V1StatusDetails. - the kind attribute of the resource associated with the status StatusReason; on some operations may differ from the requested resource Kind; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Sets the kind of this UnversionedStatusDetails. + The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds - :param kind: The kind of this V1StatusDetails. + :param kind: The kind of this UnversionedStatusDetails. :type: str """ self._kind = kind @@ -100,32 +125,32 @@ class V1StatusDetails(object): @property def causes(self): """ - Gets the causes of this V1StatusDetails. - the Causes array includes more details associated with the StatusReason failure; not all StatusReasons may provide detailed causes + Gets the causes of this UnversionedStatusDetails. + The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. - :return: The causes of this V1StatusDetails. - :rtype: list[V1StatusCause] + :return: The causes of this UnversionedStatusDetails. + :rtype: list[UnversionedStatusCause] """ return self._causes @causes.setter def causes(self, causes): """ - Sets the causes of this V1StatusDetails. - the Causes array includes more details associated with the StatusReason failure; not all StatusReasons may provide detailed causes + Sets the causes of this UnversionedStatusDetails. + The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. - :param causes: The causes of this V1StatusDetails. - :type: list[V1StatusCause] + :param causes: The causes of this UnversionedStatusDetails. + :type: list[UnversionedStatusCause] """ self._causes = causes @property def retry_after_seconds(self): """ - Gets the retry_after_seconds of this V1StatusDetails. - the number of seconds before the client should attempt to retry this operation + Gets the retry_after_seconds of this UnversionedStatusDetails. + If specified, the time in seconds before the operation should be retried. - :return: The retry_after_seconds of this V1StatusDetails. + :return: The retry_after_seconds of this UnversionedStatusDetails. :rtype: int """ return self._retry_after_seconds @@ -133,10 +158,10 @@ class V1StatusDetails(object): @retry_after_seconds.setter def retry_after_seconds(self, retry_after_seconds): """ - Sets the retry_after_seconds of this V1StatusDetails. - the number of seconds before the client should attempt to retry this operation + Sets the retry_after_seconds of this UnversionedStatusDetails. + If specified, the time in seconds before the operation should be retried. - :param retry_after_seconds: The retry_after_seconds of this V1StatusDetails. + :param retry_after_seconds: The retry_after_seconds of this UnversionedStatusDetails. :type: int """ self._retry_after_seconds = retry_after_seconds diff --git a/k8sclient/client/models/v1_aws_elastic_block_store_volume_source.py b/k8sclient/client/models/v1_aws_elastic_block_store_volume_source.py index 8e2a2eb..beb585f 100644 --- a/k8sclient/client/models/v1_aws_elastic_block_store_volume_source.py +++ b/k8sclient/client/models/v1_aws_elastic_block_store_volume_source.py @@ -57,7 +57,7 @@ class V1AWSElasticBlockStoreVolumeSource(object): def volume_id(self): """ Gets the volume_id of this V1AWSElasticBlockStoreVolumeSource. - unique id of the PD resource in AWS; see http://releases.k8s.io/v1.0.4/docs/volumes.md#awselasticblockstore + Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore :return: The volume_id of this V1AWSElasticBlockStoreVolumeSource. :rtype: str @@ -68,7 +68,7 @@ class V1AWSElasticBlockStoreVolumeSource(object): def volume_id(self, volume_id): """ Sets the volume_id of this V1AWSElasticBlockStoreVolumeSource. - unique id of the PD resource in AWS; see http://releases.k8s.io/v1.0.4/docs/volumes.md#awselasticblockstore + Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore :param volume_id: The volume_id of this V1AWSElasticBlockStoreVolumeSource. :type: str @@ -79,7 +79,7 @@ class V1AWSElasticBlockStoreVolumeSource(object): def fs_type(self): """ Gets the fs_type of this V1AWSElasticBlockStoreVolumeSource. - file system type to mount, such as ext4, xfs, ntfs; see http://releases.k8s.io/v1.0.4/docs/volumes.md#awselasticblockstore + 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: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore :return: The fs_type of this V1AWSElasticBlockStoreVolumeSource. :rtype: str @@ -90,7 +90,7 @@ class V1AWSElasticBlockStoreVolumeSource(object): def fs_type(self, fs_type): """ Sets the fs_type of this V1AWSElasticBlockStoreVolumeSource. - file system type to mount, such as ext4, xfs, ntfs; see http://releases.k8s.io/v1.0.4/docs/volumes.md#awselasticblockstore + 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: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore :param fs_type: The fs_type of this V1AWSElasticBlockStoreVolumeSource. :type: str @@ -101,7 +101,7 @@ class V1AWSElasticBlockStoreVolumeSource(object): def partition(self): """ Gets the partition of this V1AWSElasticBlockStoreVolumeSource. - partition on the disk to mount (e.g., '1' for /dev/sda1); if omitted the plain device name (e.g., /dev/sda) will be mounted; see http://releases.k8s.io/v1.0.4/docs/volumes.md#awselasticblockstore + 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). :return: The partition of this V1AWSElasticBlockStoreVolumeSource. :rtype: int @@ -112,7 +112,7 @@ class V1AWSElasticBlockStoreVolumeSource(object): def partition(self, partition): """ Sets the partition of this V1AWSElasticBlockStoreVolumeSource. - partition on the disk to mount (e.g., '1' for /dev/sda1); if omitted the plain device name (e.g., /dev/sda) will be mounted; see http://releases.k8s.io/v1.0.4/docs/volumes.md#awselasticblockstore + 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). :param partition: The partition of this V1AWSElasticBlockStoreVolumeSource. :type: int @@ -123,7 +123,7 @@ class V1AWSElasticBlockStoreVolumeSource(object): def read_only(self): """ Gets the read_only of this V1AWSElasticBlockStoreVolumeSource. - read-only if true, read-write otherwise (false or unspecified); see http://releases.k8s.io/v1.0.4/docs/volumes.md#awselasticblockstore + Specify \"true\" to force and set the ReadOnly property in VolumeMounts to \"true\". If omitted, the default is \"false\". More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore :return: The read_only of this V1AWSElasticBlockStoreVolumeSource. :rtype: bool @@ -134,7 +134,7 @@ class V1AWSElasticBlockStoreVolumeSource(object): def read_only(self, read_only): """ Sets the read_only of this V1AWSElasticBlockStoreVolumeSource. - read-only if true, read-write otherwise (false or unspecified); see http://releases.k8s.io/v1.0.4/docs/volumes.md#awselasticblockstore + Specify \"true\" to force and set the ReadOnly property in VolumeMounts to \"true\". If omitted, the default is \"false\". More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore :param read_only: The read_only of this V1AWSElasticBlockStoreVolumeSource. :type: bool diff --git a/k8sclient/client/models/v1_azure_file_volume_source.py b/k8sclient/client/models/v1_azure_file_volume_source.py new file mode 100644 index 0000000..0cadc7f --- /dev/null +++ b/k8sclient/client/models/v1_azure_file_volume_source.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1AzureFileVolumeSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'secret_name': 'str', + 'share_name': 'str', + 'read_only': 'bool' + } + + self.attribute_map = { + 'secret_name': 'secretName', + 'share_name': 'shareName', + 'read_only': 'readOnly' + } + + self._secret_name = None + self._share_name = None + self._read_only = None + + @property + def secret_name(self): + """ + Gets the secret_name of this V1AzureFileVolumeSource. + the name of secret that contains Azure Storage Account Name and Key + + :return: The secret_name of this V1AzureFileVolumeSource. + :rtype: str + """ + return self._secret_name + + @secret_name.setter + def secret_name(self, secret_name): + """ + Sets the secret_name of this V1AzureFileVolumeSource. + the name of secret that contains Azure Storage Account Name and Key + + :param secret_name: The secret_name of this V1AzureFileVolumeSource. + :type: str + """ + self._secret_name = secret_name + + @property + def share_name(self): + """ + Gets the share_name of this V1AzureFileVolumeSource. + Share Name + + :return: The share_name of this V1AzureFileVolumeSource. + :rtype: str + """ + return self._share_name + + @share_name.setter + def share_name(self, share_name): + """ + Sets the share_name of this V1AzureFileVolumeSource. + Share Name + + :param share_name: The share_name of this V1AzureFileVolumeSource. + :type: str + """ + self._share_name = share_name + + @property + def read_only(self): + """ + Gets the read_only of this V1AzureFileVolumeSource. + Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + :return: The read_only of this V1AzureFileVolumeSource. + :rtype: bool + """ + return self._read_only + + @read_only.setter + def read_only(self, read_only): + """ + Sets the read_only of this V1AzureFileVolumeSource. + Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + :param read_only: The read_only of this V1AzureFileVolumeSource. + :type: bool + """ + self._read_only = read_only + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/k8sclient/client/models/v1_binding.py b/k8sclient/client/models/v1_binding.py index 94768b1..43e89c1 100644 --- a/k8sclient/client/models/v1_binding.py +++ b/k8sclient/client/models/v1_binding.py @@ -57,7 +57,7 @@ class V1Binding(object): def kind(self): """ Gets the kind of this V1Binding. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1Binding. :rtype: str @@ -68,7 +68,7 @@ class V1Binding(object): def kind(self, kind): """ Sets the kind of this V1Binding. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1Binding. :type: str @@ -79,7 +79,7 @@ class V1Binding(object): def api_version(self): """ Gets the api_version of this V1Binding. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1Binding. :rtype: str @@ -90,7 +90,7 @@ class V1Binding(object): def api_version(self, api_version): """ Sets the api_version of this V1Binding. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1Binding. :type: str @@ -101,7 +101,7 @@ class V1Binding(object): def metadata(self): """ Gets the metadata of this V1Binding. - standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1Binding. :rtype: V1ObjectMeta @@ -112,7 +112,7 @@ class V1Binding(object): def metadata(self, metadata): """ Sets the metadata of this V1Binding. - standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1Binding. :type: V1ObjectMeta @@ -123,7 +123,7 @@ class V1Binding(object): def target(self): """ Gets the target of this V1Binding. - an object to bind to + The target object that you want to bind to the standard object. :return: The target of this V1Binding. :rtype: V1ObjectReference @@ -134,7 +134,7 @@ class V1Binding(object): def target(self, target): """ Sets the target of this V1Binding. - an object to bind to + The target object that you want to bind to the standard object. :param target: The target of this V1Binding. :type: V1ObjectReference diff --git a/k8sclient/client/models/v1_capabilities.py b/k8sclient/client/models/v1_capabilities.py index af97b2b..d765f72 100644 --- a/k8sclient/client/models/v1_capabilities.py +++ b/k8sclient/client/models/v1_capabilities.py @@ -51,7 +51,7 @@ class V1Capabilities(object): def add(self): """ Gets the add of this V1Capabilities. - added capabilities + Added capabilities :return: The add of this V1Capabilities. :rtype: list[V1Capability] @@ -62,7 +62,7 @@ class V1Capabilities(object): def add(self, add): """ Sets the add of this V1Capabilities. - added capabilities + Added capabilities :param add: The add of this V1Capabilities. :type: list[V1Capability] @@ -73,7 +73,7 @@ class V1Capabilities(object): def drop(self): """ Gets the drop of this V1Capabilities. - droped capabilities + Removed capabilities :return: The drop of this V1Capabilities. :rtype: list[V1Capability] @@ -84,7 +84,7 @@ class V1Capabilities(object): def drop(self, drop): """ Sets the drop of this V1Capabilities. - droped capabilities + Removed capabilities :param drop: The drop of this V1Capabilities. :type: list[V1Capability] diff --git a/k8sclient/client/models/v1_ceph_fs_volume_source.py b/k8sclient/client/models/v1_ceph_fs_volume_source.py new file mode 100644 index 0000000..f061c90 --- /dev/null +++ b/k8sclient/client/models/v1_ceph_fs_volume_source.py @@ -0,0 +1,224 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1CephFSVolumeSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'monitors': 'list[str]', + 'path': 'str', + 'user': 'str', + 'secret_file': 'str', + 'secret_ref': 'V1LocalObjectReference', + 'read_only': 'bool' + } + + self.attribute_map = { + 'monitors': 'monitors', + 'path': 'path', + 'user': 'user', + 'secret_file': 'secretFile', + 'secret_ref': 'secretRef', + 'read_only': 'readOnly' + } + + self._monitors = None + self._path = None + self._user = None + self._secret_file = None + self._secret_ref = None + self._read_only = None + + @property + def monitors(self): + """ + Gets the monitors of this V1CephFSVolumeSource. + Required: Monitors is a collection of Ceph monitors More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it + + :return: The monitors of this V1CephFSVolumeSource. + :rtype: list[str] + """ + return self._monitors + + @monitors.setter + def monitors(self, monitors): + """ + Sets the monitors of this V1CephFSVolumeSource. + Required: Monitors is a collection of Ceph monitors More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it + + :param monitors: The monitors of this V1CephFSVolumeSource. + :type: list[str] + """ + self._monitors = monitors + + @property + def path(self): + """ + Gets the path of this V1CephFSVolumeSource. + Optional: Used as the mounted root, rather than the full Ceph tree, default is / + + :return: The path of this V1CephFSVolumeSource. + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """ + Sets the path of this V1CephFSVolumeSource. + Optional: Used as the mounted root, rather than the full Ceph tree, default is / + + :param path: The path of this V1CephFSVolumeSource. + :type: str + """ + self._path = path + + @property + def user(self): + """ + Gets the user of this V1CephFSVolumeSource. + Optional: User is the rados user name, default is admin More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it + + :return: The user of this V1CephFSVolumeSource. + :rtype: str + """ + return self._user + + @user.setter + def user(self, user): + """ + Sets the user of this V1CephFSVolumeSource. + Optional: User is the rados user name, default is admin More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it + + :param user: The user of this V1CephFSVolumeSource. + :type: str + """ + self._user = user + + @property + def secret_file(self): + """ + Gets the secret_file of this V1CephFSVolumeSource. + Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it + + :return: The secret_file of this V1CephFSVolumeSource. + :rtype: str + """ + return self._secret_file + + @secret_file.setter + def secret_file(self, secret_file): + """ + Sets the secret_file of this V1CephFSVolumeSource. + Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it + + :param secret_file: The secret_file of this V1CephFSVolumeSource. + :type: str + """ + self._secret_file = secret_file + + @property + def secret_ref(self): + """ + Gets the secret_ref of this V1CephFSVolumeSource. + Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it + + :return: The secret_ref of this V1CephFSVolumeSource. + :rtype: V1LocalObjectReference + """ + return self._secret_ref + + @secret_ref.setter + def secret_ref(self, secret_ref): + """ + Sets the secret_ref of this V1CephFSVolumeSource. + Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it + + :param secret_ref: The secret_ref of this V1CephFSVolumeSource. + :type: V1LocalObjectReference + """ + self._secret_ref = secret_ref + + @property + def read_only(self): + """ + Gets the read_only of this V1CephFSVolumeSource. + Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it + + :return: The read_only of this V1CephFSVolumeSource. + :rtype: bool + """ + return self._read_only + + @read_only.setter + def read_only(self, read_only): + """ + Sets the read_only of this V1CephFSVolumeSource. + Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it + + :param read_only: The read_only of this V1CephFSVolumeSource. + :type: bool + """ + self._read_only = read_only + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/k8sclient/client/models/v1_cinder_volume_source.py b/k8sclient/client/models/v1_cinder_volume_source.py new file mode 100644 index 0000000..d84bd39 --- /dev/null +++ b/k8sclient/client/models/v1_cinder_volume_source.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1CinderVolumeSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'volume_id': 'str', + 'fs_type': 'str', + 'read_only': 'bool' + } + + self.attribute_map = { + 'volume_id': 'volumeID', + 'fs_type': 'fsType', + 'read_only': 'readOnly' + } + + self._volume_id = None + self._fs_type = None + self._read_only = None + + @property + def volume_id(self): + """ + Gets the volume_id of this V1CinderVolumeSource. + volume id used to identify the volume in cinder More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md + + :return: The volume_id of this V1CinderVolumeSource. + :rtype: str + """ + return self._volume_id + + @volume_id.setter + def volume_id(self, volume_id): + """ + Sets the volume_id of this V1CinderVolumeSource. + volume id used to identify the volume in cinder More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md + + :param volume_id: The volume_id of this V1CinderVolumeSource. + :type: str + """ + self._volume_id = volume_id + + @property + def fs_type(self): + """ + Gets the fs_type of this V1CinderVolumeSource. + 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: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md + + :return: The fs_type of this V1CinderVolumeSource. + :rtype: str + """ + return self._fs_type + + @fs_type.setter + def fs_type(self, fs_type): + """ + Sets the fs_type of this V1CinderVolumeSource. + 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: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md + + :param fs_type: The fs_type of this V1CinderVolumeSource. + :type: str + """ + self._fs_type = fs_type + + @property + def read_only(self): + """ + Gets the read_only of this V1CinderVolumeSource. + Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md + + :return: The read_only of this V1CinderVolumeSource. + :rtype: bool + """ + return self._read_only + + @read_only.setter + def read_only(self, read_only): + """ + Sets the read_only of this V1CinderVolumeSource. + Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md + + :param read_only: The read_only of this V1CinderVolumeSource. + :type: bool + """ + self._read_only = read_only + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/k8sclient/client/models/v1_component_condition.py b/k8sclient/client/models/v1_component_condition.py index e297271..eff708c 100644 --- a/k8sclient/client/models/v1_component_condition.py +++ b/k8sclient/client/models/v1_component_condition.py @@ -57,7 +57,7 @@ class V1ComponentCondition(object): def type(self): """ Gets the type of this V1ComponentCondition. - type of component condition, currently only Healthy + Type of condition for a component. Valid value: \"Healthy\" :return: The type of this V1ComponentCondition. :rtype: str @@ -68,7 +68,7 @@ class V1ComponentCondition(object): def type(self, type): """ Sets the type of this V1ComponentCondition. - type of component condition, currently only Healthy + Type of condition for a component. Valid value: \"Healthy\" :param type: The type of this V1ComponentCondition. :type: str @@ -79,7 +79,7 @@ class V1ComponentCondition(object): def status(self): """ Gets the status of this V1ComponentCondition. - current status of this component condition, one of True, False, Unknown + Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\". :return: The status of this V1ComponentCondition. :rtype: str @@ -90,7 +90,7 @@ class V1ComponentCondition(object): def status(self, status): """ Sets the status of this V1ComponentCondition. - current status of this component condition, one of True, False, Unknown + Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\". :param status: The status of this V1ComponentCondition. :type: str @@ -101,7 +101,7 @@ class V1ComponentCondition(object): def message(self): """ Gets the message of this V1ComponentCondition. - health check message received from the component + Message about the condition for a component. For example, information about a health check. :return: The message of this V1ComponentCondition. :rtype: str @@ -112,7 +112,7 @@ class V1ComponentCondition(object): def message(self, message): """ Sets the message of this V1ComponentCondition. - health check message received from the component + Message about the condition for a component. For example, information about a health check. :param message: The message of this V1ComponentCondition. :type: str @@ -123,7 +123,7 @@ class V1ComponentCondition(object): def error(self): """ Gets the error of this V1ComponentCondition. - error code from health check attempt (if any) + Condition error code for a component. For example, a health check error code. :return: The error of this V1ComponentCondition. :rtype: str @@ -134,7 +134,7 @@ class V1ComponentCondition(object): def error(self, error): """ Sets the error of this V1ComponentCondition. - error code from health check attempt (if any) + Condition error code for a component. For example, a health check error code. :param error: The error of this V1ComponentCondition. :type: str diff --git a/k8sclient/client/models/v1_component_status.py b/k8sclient/client/models/v1_component_status.py index e6fcbeb..2cc4c65 100644 --- a/k8sclient/client/models/v1_component_status.py +++ b/k8sclient/client/models/v1_component_status.py @@ -57,7 +57,7 @@ class V1ComponentStatus(object): def kind(self): """ Gets the kind of this V1ComponentStatus. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1ComponentStatus. :rtype: str @@ -68,7 +68,7 @@ class V1ComponentStatus(object): def kind(self, kind): """ Sets the kind of this V1ComponentStatus. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1ComponentStatus. :type: str @@ -79,7 +79,7 @@ class V1ComponentStatus(object): def api_version(self): """ Gets the api_version of this V1ComponentStatus. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1ComponentStatus. :rtype: str @@ -90,7 +90,7 @@ class V1ComponentStatus(object): def api_version(self, api_version): """ Sets the api_version of this V1ComponentStatus. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1ComponentStatus. :type: str @@ -101,7 +101,7 @@ class V1ComponentStatus(object): def metadata(self): """ Gets the metadata of this V1ComponentStatus. - standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1ComponentStatus. :rtype: V1ObjectMeta @@ -112,7 +112,7 @@ class V1ComponentStatus(object): def metadata(self, metadata): """ Sets the metadata of this V1ComponentStatus. - standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1ComponentStatus. :type: V1ObjectMeta @@ -123,7 +123,7 @@ class V1ComponentStatus(object): def conditions(self): """ Gets the conditions of this V1ComponentStatus. - list of component conditions observed + List of component conditions observed :return: The conditions of this V1ComponentStatus. :rtype: list[V1ComponentCondition] @@ -134,7 +134,7 @@ class V1ComponentStatus(object): def conditions(self, conditions): """ Sets the conditions of this V1ComponentStatus. - list of component conditions observed + List of component conditions observed :param conditions: The conditions of this V1ComponentStatus. :type: list[V1ComponentCondition] diff --git a/k8sclient/client/models/v1_component_status_list.py b/k8sclient/client/models/v1_component_status_list.py index 51ce03e..857b7c9 100644 --- a/k8sclient/client/models/v1_component_status_list.py +++ b/k8sclient/client/models/v1_component_status_list.py @@ -37,7 +37,7 @@ class V1ComponentStatusList(object): self.swagger_types = { 'kind': 'str', 'api_version': 'str', - 'metadata': 'V1ListMeta', + 'metadata': 'UnversionedListMeta', 'items': 'list[V1ComponentStatus]' } @@ -57,7 +57,7 @@ class V1ComponentStatusList(object): def kind(self): """ Gets the kind of this V1ComponentStatusList. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1ComponentStatusList. :rtype: str @@ -68,7 +68,7 @@ class V1ComponentStatusList(object): def kind(self, kind): """ Sets the kind of this V1ComponentStatusList. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1ComponentStatusList. :type: str @@ -79,7 +79,7 @@ class V1ComponentStatusList(object): def api_version(self): """ Gets the api_version of this V1ComponentStatusList. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1ComponentStatusList. :rtype: str @@ -90,7 +90,7 @@ class V1ComponentStatusList(object): def api_version(self, api_version): """ Sets the api_version of this V1ComponentStatusList. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1ComponentStatusList. :type: str @@ -101,10 +101,10 @@ class V1ComponentStatusList(object): def metadata(self): """ Gets the metadata of this V1ComponentStatusList. - standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1ComponentStatusList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -112,10 +112,10 @@ class V1ComponentStatusList(object): def metadata(self, metadata): """ Sets the metadata of this V1ComponentStatusList. - standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1ComponentStatusList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata @@ -123,7 +123,7 @@ class V1ComponentStatusList(object): def items(self): """ Gets the items of this V1ComponentStatusList. - list of component status objects + List of ComponentStatus objects. :return: The items of this V1ComponentStatusList. :rtype: list[V1ComponentStatus] @@ -134,7 +134,7 @@ class V1ComponentStatusList(object): def items(self, items): """ Sets the items of this V1ComponentStatusList. - list of component status objects + List of ComponentStatus objects. :param items: The items of this V1ComponentStatusList. :type: list[V1ComponentStatus] diff --git a/k8sclient/client/models/v1_config_map.py b/k8sclient/client/models/v1_config_map.py new file mode 100644 index 0000000..e7b03b3 --- /dev/null +++ b/k8sclient/client/models/v1_config_map.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1ConfigMap(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'api_version': 'str', + 'metadata': 'V1ObjectMeta', + 'data': 'object' + } + + self.attribute_map = { + 'kind': 'kind', + 'api_version': 'apiVersion', + 'metadata': 'metadata', + 'data': 'data' + } + + self._kind = None + self._api_version = None + self._metadata = None + self._data = None + + @property + def kind(self): + """ + Gets the kind of this V1ConfigMap. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1ConfigMap. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1ConfigMap. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1ConfigMap. + :type: str + """ + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1ConfigMap. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1ConfigMap. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ConfigMap. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1ConfigMap. + :type: str + """ + self._api_version = api_version + + @property + def metadata(self): + """ + Gets the metadata of this V1ConfigMap. + Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1ConfigMap. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ConfigMap. + Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1ConfigMap. + :type: V1ObjectMeta + """ + self._metadata = metadata + + @property + def data(self): + """ + Gets the data of this V1ConfigMap. + Data contains the configuration data. Each key must be a valid DNS_SUBDOMAIN with an optional leading dot. + + :return: The data of this V1ConfigMap. + :rtype: object + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this V1ConfigMap. + Data contains the configuration data. Each key must be a valid DNS_SUBDOMAIN with an optional leading dot. + + :param data: The data of this V1ConfigMap. + :type: object + """ + self._data = data + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/k8sclient/client/models/v1_config_map_key_selector.py b/k8sclient/client/models/v1_config_map_key_selector.py new file mode 100644 index 0000000..c65778d --- /dev/null +++ b/k8sclient/client/models/v1_config_map_key_selector.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1ConfigMapKeySelector(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'name': 'str', + 'key': 'str' + } + + self.attribute_map = { + 'name': 'name', + 'key': 'key' + } + + self._name = None + self._key = None + + @property + def name(self): + """ + Gets the name of this V1ConfigMapKeySelector. + Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names + + :return: The name of this V1ConfigMapKeySelector. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1ConfigMapKeySelector. + Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names + + :param name: The name of this V1ConfigMapKeySelector. + :type: str + """ + self._name = name + + @property + def key(self): + """ + Gets the key of this V1ConfigMapKeySelector. + The key to select. + + :return: The key of this V1ConfigMapKeySelector. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """ + Sets the key of this V1ConfigMapKeySelector. + The key to select. + + :param key: The key of this V1ConfigMapKeySelector. + :type: str + """ + self._key = key + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/k8sclient/client/models/v1_config_map_list.py b/k8sclient/client/models/v1_config_map_list.py new file mode 100644 index 0000000..9ea1c5c --- /dev/null +++ b/k8sclient/client/models/v1_config_map_list.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1ConfigMapList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'api_version': 'str', + 'metadata': 'UnversionedListMeta', + 'items': 'list[V1ConfigMap]' + } + + self.attribute_map = { + 'kind': 'kind', + 'api_version': 'apiVersion', + 'metadata': 'metadata', + 'items': 'items' + } + + self._kind = None + self._api_version = None + self._metadata = None + self._items = None + + @property + def kind(self): + """ + Gets the kind of this V1ConfigMapList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1ConfigMapList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1ConfigMapList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1ConfigMapList. + :type: str + """ + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1ConfigMapList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1ConfigMapList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ConfigMapList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1ConfigMapList. + :type: str + """ + self._api_version = api_version + + @property + def metadata(self): + """ + Gets the metadata of this V1ConfigMapList. + More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1ConfigMapList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ConfigMapList. + More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1ConfigMapList. + :type: UnversionedListMeta + """ + self._metadata = metadata + + @property + def items(self): + """ + Gets the items of this V1ConfigMapList. + Items is the list of ConfigMaps. + + :return: The items of this V1ConfigMapList. + :rtype: list[V1ConfigMap] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1ConfigMapList. + Items is the list of ConfigMaps. + + :param items: The items of this V1ConfigMapList. + :type: list[V1ConfigMap] + """ + self._items = items + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/k8sclient/client/models/v1_config_map_volume_source.py b/k8sclient/client/models/v1_config_map_volume_source.py new file mode 100644 index 0000000..7e56c6a --- /dev/null +++ b/k8sclient/client/models/v1_config_map_volume_source.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1ConfigMapVolumeSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'name': 'str', + 'items': 'list[V1KeyToPath]' + } + + self.attribute_map = { + 'name': 'name', + 'items': 'items' + } + + self._name = None + self._items = None + + @property + def name(self): + """ + Gets the name of this V1ConfigMapVolumeSource. + Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names + + :return: The name of this V1ConfigMapVolumeSource. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1ConfigMapVolumeSource. + Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names + + :param name: The name of this V1ConfigMapVolumeSource. + :type: str + """ + self._name = name + + @property + def items(self): + """ + Gets the items of this V1ConfigMapVolumeSource. + 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. Paths must be relative and may not contain the '..' path or start with '..'. + + :return: The items of this V1ConfigMapVolumeSource. + :rtype: list[V1KeyToPath] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1ConfigMapVolumeSource. + 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. Paths must be relative and may not contain the '..' path or start with '..'. + + :param items: The items of this V1ConfigMapVolumeSource. + :type: list[V1KeyToPath] + """ + self._items = items + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/k8sclient/client/models/v1_container.py b/k8sclient/client/models/v1_container.py index 3200ffc..5820cbd 100644 --- a/k8sclient/client/models/v1_container.py +++ b/k8sclient/client/models/v1_container.py @@ -49,7 +49,10 @@ class V1Container(object): 'lifecycle': 'V1Lifecycle', 'termination_message_path': 'str', 'image_pull_policy': 'str', - 'security_context': 'V1SecurityContext' + 'security_context': 'V1SecurityContext', + 'stdin': 'bool', + 'stdin_once': 'bool', + 'tty': 'bool' } self.attribute_map = { @@ -67,7 +70,10 @@ class V1Container(object): 'lifecycle': 'lifecycle', 'termination_message_path': 'terminationMessagePath', 'image_pull_policy': 'imagePullPolicy', - 'security_context': 'securityContext' + 'security_context': 'securityContext', + 'stdin': 'stdin', + 'stdin_once': 'stdinOnce', + 'tty': 'tty' } self._name = None @@ -85,12 +91,15 @@ class V1Container(object): self._termination_message_path = None self._image_pull_policy = None self._security_context = None + self._stdin = None + self._stdin_once = None + self._tty = None @property def name(self): """ Gets the name of this V1Container. - name of the container; must be a DNS_LABEL and unique within the pod; cannot be updated + Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. :return: The name of this V1Container. :rtype: str @@ -101,7 +110,7 @@ class V1Container(object): def name(self, name): """ Sets the name of this V1Container. - name of the container; must be a DNS_LABEL and unique within the pod; cannot be updated + Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. :param name: The name of this V1Container. :type: str @@ -112,7 +121,7 @@ class V1Container(object): def image(self): """ Gets the image of this V1Container. - Docker image name; see http://releases.k8s.io/v1.0.4/docs/images.md + Docker image name. More info: http://releases.k8s.io/release-1.2/docs/user-guide/images.md :return: The image of this V1Container. :rtype: str @@ -123,7 +132,7 @@ class V1Container(object): def image(self, image): """ Sets the image of this V1Container. - Docker image name; see http://releases.k8s.io/v1.0.4/docs/images.md + Docker image name. More info: http://releases.k8s.io/release-1.2/docs/user-guide/images.md :param image: The image of this V1Container. :type: str @@ -134,7 +143,7 @@ class V1Container(object): def command(self): """ Gets the command of this V1Container. - entrypoint array; not executed within a shell; the docker image's entrypoint is used if this is not provided; cannot be updated; variable references $(VAR_NAME) are expanded using the container's 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; see http://releases.k8s.io/v1.0.4/docs/containers.md#containers-and-commands + 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: http://releases.k8s.io/release-1.2/docs/user-guide/containers.md#containers-and-commands :return: The command of this V1Container. :rtype: list[str] @@ -145,7 +154,7 @@ class V1Container(object): def command(self, command): """ Sets the command of this V1Container. - entrypoint array; not executed within a shell; the docker image's entrypoint is used if this is not provided; cannot be updated; variable references $(VAR_NAME) are expanded using the container's 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; see http://releases.k8s.io/v1.0.4/docs/containers.md#containers-and-commands + 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: http://releases.k8s.io/release-1.2/docs/user-guide/containers.md#containers-and-commands :param command: The command of this V1Container. :type: list[str] @@ -156,7 +165,7 @@ class V1Container(object): def args(self): """ Gets the args of this V1Container. - command array; the docker image's cmd is used if this is not provided; arguments to the entrypoint; cannot be updated; variable references $(VAR_NAME) are expanded using the container's 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; see http://releases.k8s.io/v1.0.4/docs/containers.md#containers-and-commands + 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: http://releases.k8s.io/release-1.2/docs/user-guide/containers.md#containers-and-commands :return: The args of this V1Container. :rtype: list[str] @@ -167,7 +176,7 @@ class V1Container(object): def args(self, args): """ Sets the args of this V1Container. - command array; the docker image's cmd is used if this is not provided; arguments to the entrypoint; cannot be updated; variable references $(VAR_NAME) are expanded using the container's 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; see http://releases.k8s.io/v1.0.4/docs/containers.md#containers-and-commands + 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: http://releases.k8s.io/release-1.2/docs/user-guide/containers.md#containers-and-commands :param args: The args of this V1Container. :type: list[str] @@ -178,7 +187,7 @@ class V1Container(object): def working_dir(self): """ Gets the working_dir of this V1Container. - container's working directory; defaults to image's default; cannot be updated + 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. :return: The working_dir of this V1Container. :rtype: str @@ -189,7 +198,7 @@ class V1Container(object): def working_dir(self, working_dir): """ Sets the working_dir of this V1Container. - container's working directory; defaults to image's default; cannot be updated + 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. :param working_dir: The working_dir of this V1Container. :type: str @@ -200,7 +209,7 @@ class V1Container(object): def ports(self): """ Gets the ports of this V1Container. - list of ports to expose from the container; cannot be updated + 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. :return: The ports of this V1Container. :rtype: list[V1ContainerPort] @@ -211,7 +220,7 @@ class V1Container(object): def ports(self, ports): """ Sets the ports of this V1Container. - list of ports to expose from the container; cannot be updated + 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. :param ports: The ports of this V1Container. :type: list[V1ContainerPort] @@ -222,7 +231,7 @@ class V1Container(object): def env(self): """ Gets the env of this V1Container. - list of environment variables to set in the container; cannot be updated + List of environment variables to set in the container. Cannot be updated. :return: The env of this V1Container. :rtype: list[V1EnvVar] @@ -233,7 +242,7 @@ class V1Container(object): def env(self, env): """ Sets the env of this V1Container. - list of environment variables to set in the container; cannot be updated + List of environment variables to set in the container. Cannot be updated. :param env: The env of this V1Container. :type: list[V1EnvVar] @@ -244,7 +253,7 @@ class V1Container(object): def resources(self): """ Gets the resources of this V1Container. - Compute Resources required by this container; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/compute_resources.md + Compute Resources required by this container. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#resources :return: The resources of this V1Container. :rtype: V1ResourceRequirements @@ -255,7 +264,7 @@ class V1Container(object): def resources(self, resources): """ Sets the resources of this V1Container. - Compute Resources required by this container; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/compute_resources.md + Compute Resources required by this container. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#resources :param resources: The resources of this V1Container. :type: V1ResourceRequirements @@ -266,7 +275,7 @@ class V1Container(object): def volume_mounts(self): """ Gets the volume_mounts of this V1Container. - pod volumes to mount into the container's filesyste; cannot be updated + Pod volumes to mount into the container's filesyste. Cannot be updated. :return: The volume_mounts of this V1Container. :rtype: list[V1VolumeMount] @@ -277,7 +286,7 @@ class V1Container(object): def volume_mounts(self, volume_mounts): """ Sets the volume_mounts of this V1Container. - pod volumes to mount into the container's filesyste; cannot be updated + Pod volumes to mount into the container's filesyste. Cannot be updated. :param volume_mounts: The volume_mounts of this V1Container. :type: list[V1VolumeMount] @@ -288,7 +297,7 @@ class V1Container(object): def liveness_probe(self): """ Gets the liveness_probe of this V1Container. - periodic probe of container liveness; container will be restarted if the probe fails; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#container-probes + Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes :return: The liveness_probe of this V1Container. :rtype: V1Probe @@ -299,7 +308,7 @@ class V1Container(object): def liveness_probe(self, liveness_probe): """ Sets the liveness_probe of this V1Container. - periodic probe of container liveness; container will be restarted if the probe fails; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#container-probes + Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes :param liveness_probe: The liveness_probe of this V1Container. :type: V1Probe @@ -310,7 +319,7 @@ class V1Container(object): def readiness_probe(self): """ Gets the readiness_probe of this V1Container. - periodic probe of container service readiness; container will be removed from service endpoints if the probe fails; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#container-probes + Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes :return: The readiness_probe of this V1Container. :rtype: V1Probe @@ -321,7 +330,7 @@ class V1Container(object): def readiness_probe(self, readiness_probe): """ Sets the readiness_probe of this V1Container. - periodic probe of container service readiness; container will be removed from service endpoints if the probe fails; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#container-probes + Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes :param readiness_probe: The readiness_probe of this V1Container. :type: V1Probe @@ -332,7 +341,7 @@ class V1Container(object): def lifecycle(self): """ Gets the lifecycle of this V1Container. - actions that the management system should take in response to container lifecycle events; cannot be updated + Actions that the management system should take in response to container lifecycle events. Cannot be updated. :return: The lifecycle of this V1Container. :rtype: V1Lifecycle @@ -343,7 +352,7 @@ class V1Container(object): def lifecycle(self, lifecycle): """ Sets the lifecycle of this V1Container. - actions that the management system should take in response to container lifecycle events; cannot be updated + Actions that the management system should take in response to container lifecycle events. Cannot be updated. :param lifecycle: The lifecycle of this V1Container. :type: V1Lifecycle @@ -354,7 +363,7 @@ class V1Container(object): def termination_message_path(self): """ Gets the termination_message_path of this V1Container. - 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; defaults to /dev/termination-log; cannot be updated + 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. Defaults to /dev/termination-log. Cannot be updated. :return: The termination_message_path of this V1Container. :rtype: str @@ -365,7 +374,7 @@ class V1Container(object): def termination_message_path(self, termination_message_path): """ Sets the termination_message_path of this V1Container. - 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; defaults to /dev/termination-log; cannot be updated + 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. Defaults to /dev/termination-log. Cannot be updated. :param termination_message_path: The termination_message_path of this V1Container. :type: str @@ -376,7 +385,7 @@ class V1Container(object): def image_pull_policy(self): """ Gets the image_pull_policy of this V1Container. - image pull policy; one of Always, Never, IfNotPresent; defaults to Always if :latest tag is specified, or IfNotPresent otherwise; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/images.md#updating-images + Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/images.md#updating-images :return: The image_pull_policy of this V1Container. :rtype: str @@ -387,7 +396,7 @@ class V1Container(object): def image_pull_policy(self, image_pull_policy): """ Sets the image_pull_policy of this V1Container. - image pull policy; one of Always, Never, IfNotPresent; defaults to Always if :latest tag is specified, or IfNotPresent otherwise; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/images.md#updating-images + Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/images.md#updating-images :param image_pull_policy: The image_pull_policy of this V1Container. :type: str @@ -398,7 +407,7 @@ class V1Container(object): def security_context(self): """ Gets the security_context of this V1Container. - security options the pod should run with; see http://releases.k8s.io/v1.0.4/docs/security_context.md + Security options the pod should run with. More info: http://releases.k8s.io/release-1.2/docs/design/security_context.md :return: The security_context of this V1Container. :rtype: V1SecurityContext @@ -409,13 +418,79 @@ class V1Container(object): def security_context(self, security_context): """ Sets the security_context of this V1Container. - security options the pod should run with; see http://releases.k8s.io/v1.0.4/docs/security_context.md + Security options the pod should run with. More info: http://releases.k8s.io/release-1.2/docs/design/security_context.md :param security_context: The security_context of this V1Container. :type: V1SecurityContext """ self._security_context = security_context + @property + def stdin(self): + """ + Gets the stdin of this V1Container. + 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. + + :return: The stdin of this V1Container. + :rtype: bool + """ + return self._stdin + + @stdin.setter + def stdin(self, stdin): + """ + Sets the stdin of this V1Container. + 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. + + :param stdin: The stdin of this V1Container. + :type: bool + """ + self._stdin = stdin + + @property + def stdin_once(self): + """ + Gets the stdin_once of this V1Container. + 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 + + :return: The stdin_once of this V1Container. + :rtype: bool + """ + return self._stdin_once + + @stdin_once.setter + def stdin_once(self, stdin_once): + """ + Sets the stdin_once of this V1Container. + 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 + + :param stdin_once: The stdin_once of this V1Container. + :type: bool + """ + self._stdin_once = stdin_once + + @property + def tty(self): + """ + Gets the tty of this V1Container. + Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + + :return: The tty of this V1Container. + :rtype: bool + """ + return self._tty + + @tty.setter + def tty(self, tty): + """ + Sets the tty of this V1Container. + Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + + :param tty: The tty of this V1Container. + :type: bool + """ + self._tty = tty + def to_dict(self): """ Return model properties dict diff --git a/k8sclient/client/models/v1_container_image.py b/k8sclient/client/models/v1_container_image.py new file mode 100644 index 0000000..4e62ea0 --- /dev/null +++ b/k8sclient/client/models/v1_container_image.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1ContainerImage(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'names': 'list[str]', + 'size_bytes': 'int' + } + + self.attribute_map = { + 'names': 'names', + 'size_bytes': 'sizeBytes' + } + + self._names = None + self._size_bytes = None + + @property + def names(self): + """ + Gets the names of this V1ContainerImage. + Names by which this image is known. e.g. [\"gcr.io/google_containers/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"] + + :return: The names of this V1ContainerImage. + :rtype: list[str] + """ + return self._names + + @names.setter + def names(self, names): + """ + Sets the names of this V1ContainerImage. + Names by which this image is known. e.g. [\"gcr.io/google_containers/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"] + + :param names: The names of this V1ContainerImage. + :type: list[str] + """ + self._names = names + + @property + def size_bytes(self): + """ + Gets the size_bytes of this V1ContainerImage. + The size of the image in bytes. + + :return: The size_bytes of this V1ContainerImage. + :rtype: int + """ + return self._size_bytes + + @size_bytes.setter + def size_bytes(self, size_bytes): + """ + Sets the size_bytes of this V1ContainerImage. + The size of the image in bytes. + + :param size_bytes: The size_bytes of this V1ContainerImage. + :type: int + """ + self._size_bytes = size_bytes + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/k8sclient/client/models/v1_container_port.py b/k8sclient/client/models/v1_container_port.py index 8b1fac4..f2a6077 100644 --- a/k8sclient/client/models/v1_container_port.py +++ b/k8sclient/client/models/v1_container_port.py @@ -60,7 +60,7 @@ class V1ContainerPort(object): def name(self): """ Gets the name of this V1ContainerPort. - name for the port that can be referred to by services; must be an IANA_SVC_NAME and unique within the pod + If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. :return: The name of this V1ContainerPort. :rtype: str @@ -71,7 +71,7 @@ class V1ContainerPort(object): def name(self, name): """ Sets the name of this V1ContainerPort. - name for the port that can be referred to by services; must be an IANA_SVC_NAME and unique within the pod + If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. :param name: The name of this V1ContainerPort. :type: str @@ -82,7 +82,7 @@ class V1ContainerPort(object): def host_port(self): """ Gets the host_port of this V1ContainerPort. - number of port to expose on the host; most containers do not need this + Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. :return: The host_port of this V1ContainerPort. :rtype: int @@ -93,7 +93,7 @@ class V1ContainerPort(object): def host_port(self, host_port): """ Sets the host_port of this V1ContainerPort. - number of port to expose on the host; most containers do not need this + Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. :param host_port: The host_port of this V1ContainerPort. :type: int @@ -104,7 +104,7 @@ class V1ContainerPort(object): def container_port(self): """ Gets the container_port of this V1ContainerPort. - number of port to expose on the pod's IP address + Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. :return: The container_port of this V1ContainerPort. :rtype: int @@ -115,7 +115,7 @@ class V1ContainerPort(object): def container_port(self, container_port): """ Sets the container_port of this V1ContainerPort. - number of port to expose on the pod's IP address + Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. :param container_port: The container_port of this V1ContainerPort. :type: int @@ -126,7 +126,7 @@ class V1ContainerPort(object): def protocol(self): """ Gets the protocol of this V1ContainerPort. - protocol for port; must be UDP or TCP; TCP if unspecified + Protocol for port. Must be UDP or TCP. Defaults to \"TCP\". :return: The protocol of this V1ContainerPort. :rtype: str @@ -137,7 +137,7 @@ class V1ContainerPort(object): def protocol(self, protocol): """ Sets the protocol of this V1ContainerPort. - protocol for port; must be UDP or TCP; TCP if unspecified + Protocol for port. Must be UDP or TCP. Defaults to \"TCP\". :param protocol: The protocol of this V1ContainerPort. :type: str @@ -148,7 +148,7 @@ class V1ContainerPort(object): def host_ip(self): """ Gets the host_ip of this V1ContainerPort. - host IP to bind the port to + What host IP to bind the external port to. :return: The host_ip of this V1ContainerPort. :rtype: str @@ -159,7 +159,7 @@ class V1ContainerPort(object): def host_ip(self, host_ip): """ Sets the host_ip of this V1ContainerPort. - host IP to bind the port to + What host IP to bind the external port to. :param host_ip: The host_ip of this V1ContainerPort. :type: str diff --git a/k8sclient/client/models/v1_container_state.py b/k8sclient/client/models/v1_container_state.py index d4cc66c..002781e 100644 --- a/k8sclient/client/models/v1_container_state.py +++ b/k8sclient/client/models/v1_container_state.py @@ -54,7 +54,7 @@ class V1ContainerState(object): def waiting(self): """ Gets the waiting of this V1ContainerState. - details about a waiting container + Details about a waiting container :return: The waiting of this V1ContainerState. :rtype: V1ContainerStateWaiting @@ -65,7 +65,7 @@ class V1ContainerState(object): def waiting(self, waiting): """ Sets the waiting of this V1ContainerState. - details about a waiting container + Details about a waiting container :param waiting: The waiting of this V1ContainerState. :type: V1ContainerStateWaiting @@ -76,7 +76,7 @@ class V1ContainerState(object): def running(self): """ Gets the running of this V1ContainerState. - details about a running container + Details about a running container :return: The running of this V1ContainerState. :rtype: V1ContainerStateRunning @@ -87,7 +87,7 @@ class V1ContainerState(object): def running(self, running): """ Sets the running of this V1ContainerState. - details about a running container + Details about a running container :param running: The running of this V1ContainerState. :type: V1ContainerStateRunning @@ -98,7 +98,7 @@ class V1ContainerState(object): def terminated(self): """ Gets the terminated of this V1ContainerState. - details about a terminated container + Details about a terminated container :return: The terminated of this V1ContainerState. :rtype: V1ContainerStateTerminated @@ -109,7 +109,7 @@ class V1ContainerState(object): def terminated(self, terminated): """ Sets the terminated of this V1ContainerState. - details about a terminated container + Details about a terminated container :param terminated: The terminated of this V1ContainerState. :type: V1ContainerStateTerminated diff --git a/k8sclient/client/models/v1_container_state_running.py b/k8sclient/client/models/v1_container_state_running.py index 26b2b9d..fce0a29 100644 --- a/k8sclient/client/models/v1_container_state_running.py +++ b/k8sclient/client/models/v1_container_state_running.py @@ -48,7 +48,7 @@ class V1ContainerStateRunning(object): def started_at(self): """ Gets the started_at of this V1ContainerStateRunning. - time at which the container was last (re-)started + Time at which the container was last (re-)started :return: The started_at of this V1ContainerStateRunning. :rtype: str @@ -59,7 +59,7 @@ class V1ContainerStateRunning(object): def started_at(self, started_at): """ Sets the started_at of this V1ContainerStateRunning. - time at which the container was last (re-)started + Time at which the container was last (re-)started :param started_at: The started_at of this V1ContainerStateRunning. :type: str diff --git a/k8sclient/client/models/v1_container_state_terminated.py b/k8sclient/client/models/v1_container_state_terminated.py index 235256a..bcde4a5 100644 --- a/k8sclient/client/models/v1_container_state_terminated.py +++ b/k8sclient/client/models/v1_container_state_terminated.py @@ -66,7 +66,7 @@ class V1ContainerStateTerminated(object): def exit_code(self): """ Gets the exit_code of this V1ContainerStateTerminated. - exit status from the last termination of the container + Exit status from the last termination of the container :return: The exit_code of this V1ContainerStateTerminated. :rtype: int @@ -77,7 +77,7 @@ class V1ContainerStateTerminated(object): def exit_code(self, exit_code): """ Sets the exit_code of this V1ContainerStateTerminated. - exit status from the last termination of the container + Exit status from the last termination of the container :param exit_code: The exit_code of this V1ContainerStateTerminated. :type: int @@ -88,7 +88,7 @@ class V1ContainerStateTerminated(object): def signal(self): """ Gets the signal of this V1ContainerStateTerminated. - signal from the last termination of the container + Signal from the last termination of the container :return: The signal of this V1ContainerStateTerminated. :rtype: int @@ -99,7 +99,7 @@ class V1ContainerStateTerminated(object): def signal(self, signal): """ Sets the signal of this V1ContainerStateTerminated. - signal from the last termination of the container + Signal from the last termination of the container :param signal: The signal of this V1ContainerStateTerminated. :type: int @@ -132,7 +132,7 @@ class V1ContainerStateTerminated(object): def message(self): """ Gets the message of this V1ContainerStateTerminated. - message regarding the last termination of the container + Message regarding the last termination of the container :return: The message of this V1ContainerStateTerminated. :rtype: str @@ -143,7 +143,7 @@ class V1ContainerStateTerminated(object): def message(self, message): """ Sets the message of this V1ContainerStateTerminated. - message regarding the last termination of the container + Message regarding the last termination of the container :param message: The message of this V1ContainerStateTerminated. :type: str @@ -154,7 +154,7 @@ class V1ContainerStateTerminated(object): def started_at(self): """ Gets the started_at of this V1ContainerStateTerminated. - time at which previous execution of the container started + Time at which previous execution of the container started :return: The started_at of this V1ContainerStateTerminated. :rtype: str @@ -165,7 +165,7 @@ class V1ContainerStateTerminated(object): def started_at(self, started_at): """ Sets the started_at of this V1ContainerStateTerminated. - time at which previous execution of the container started + Time at which previous execution of the container started :param started_at: The started_at of this V1ContainerStateTerminated. :type: str @@ -176,7 +176,7 @@ class V1ContainerStateTerminated(object): def finished_at(self): """ Gets the finished_at of this V1ContainerStateTerminated. - time at which the container last terminated + Time at which the container last terminated :return: The finished_at of this V1ContainerStateTerminated. :rtype: str @@ -187,7 +187,7 @@ class V1ContainerStateTerminated(object): def finished_at(self, finished_at): """ Sets the finished_at of this V1ContainerStateTerminated. - time at which the container last terminated + Time at which the container last terminated :param finished_at: The finished_at of this V1ContainerStateTerminated. :type: str @@ -198,7 +198,7 @@ class V1ContainerStateTerminated(object): def container_id(self): """ Gets the container_id of this V1ContainerStateTerminated. - container's ID in the format 'docker://' + Container's ID in the format 'docker://' :return: The container_id of this V1ContainerStateTerminated. :rtype: str @@ -209,7 +209,7 @@ class V1ContainerStateTerminated(object): def container_id(self, container_id): """ Sets the container_id of this V1ContainerStateTerminated. - container's ID in the format 'docker://' + Container's ID in the format 'docker://' :param container_id: The container_id of this V1ContainerStateTerminated. :type: str diff --git a/k8sclient/client/models/v1_container_state_waiting.py b/k8sclient/client/models/v1_container_state_waiting.py index f240076..bc56569 100644 --- a/k8sclient/client/models/v1_container_state_waiting.py +++ b/k8sclient/client/models/v1_container_state_waiting.py @@ -35,20 +35,23 @@ class V1ContainerStateWaiting(object): and the value is json key in definition. """ self.swagger_types = { - 'reason': 'str' + 'reason': 'str', + 'message': 'str' } self.attribute_map = { - 'reason': 'reason' + 'reason': 'reason', + 'message': 'message' } self._reason = None + self._message = None @property def reason(self): """ Gets the reason of this V1ContainerStateWaiting. - (brief) reason the container is not yet running, such as pulling its image + (brief) reason the container is not yet running. :return: The reason of this V1ContainerStateWaiting. :rtype: str @@ -59,13 +62,35 @@ class V1ContainerStateWaiting(object): def reason(self, reason): """ Sets the reason of this V1ContainerStateWaiting. - (brief) reason the container is not yet running, such as pulling its image + (brief) reason the container is not yet running. :param reason: The reason of this V1ContainerStateWaiting. :type: str """ self._reason = reason + @property + def message(self): + """ + Gets the message of this V1ContainerStateWaiting. + Message regarding why the container is not yet running. + + :return: The message of this V1ContainerStateWaiting. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1ContainerStateWaiting. + Message regarding why the container is not yet running. + + :param message: The message of this V1ContainerStateWaiting. + :type: str + """ + self._message = message + def to_dict(self): """ Return model properties dict diff --git a/k8sclient/client/models/v1_container_status.py b/k8sclient/client/models/v1_container_status.py index dbf3626..45248f8 100644 --- a/k8sclient/client/models/v1_container_status.py +++ b/k8sclient/client/models/v1_container_status.py @@ -69,7 +69,7 @@ class V1ContainerStatus(object): def name(self): """ Gets the name of this V1ContainerStatus. - name of the container; must be a DNS_LABEL and unique within the pod; cannot be updated + This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated. :return: The name of this V1ContainerStatus. :rtype: str @@ -80,7 +80,7 @@ class V1ContainerStatus(object): def name(self, name): """ Sets the name of this V1ContainerStatus. - name of the container; must be a DNS_LABEL and unique within the pod; cannot be updated + This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated. :param name: The name of this V1ContainerStatus. :type: str @@ -91,7 +91,7 @@ class V1ContainerStatus(object): def state(self): """ Gets the state of this V1ContainerStatus. - details about the container's current condition + Details about the container's current condition. :return: The state of this V1ContainerStatus. :rtype: V1ContainerState @@ -102,7 +102,7 @@ class V1ContainerStatus(object): def state(self, state): """ Sets the state of this V1ContainerStatus. - details about the container's current condition + Details about the container's current condition. :param state: The state of this V1ContainerStatus. :type: V1ContainerState @@ -113,7 +113,7 @@ class V1ContainerStatus(object): def last_state(self): """ Gets the last_state of this V1ContainerStatus. - details about the container's last termination condition + Details about the container's last termination condition. :return: The last_state of this V1ContainerStatus. :rtype: V1ContainerState @@ -124,7 +124,7 @@ class V1ContainerStatus(object): def last_state(self, last_state): """ Sets the last_state of this V1ContainerStatus. - details about the container's last termination condition + Details about the container's last termination condition. :param last_state: The last_state of this V1ContainerStatus. :type: V1ContainerState @@ -135,7 +135,7 @@ class V1ContainerStatus(object): def ready(self): """ Gets the ready of this V1ContainerStatus. - specifies whether the container has passed its readiness probe + Specifies whether the container has passed its readiness probe. :return: The ready of this V1ContainerStatus. :rtype: bool @@ -146,7 +146,7 @@ class V1ContainerStatus(object): def ready(self, ready): """ Sets the ready of this V1ContainerStatus. - specifies whether the container has passed its readiness probe + Specifies whether the container has passed its readiness probe. :param ready: The ready of this V1ContainerStatus. :type: bool @@ -157,7 +157,7 @@ class V1ContainerStatus(object): def restart_count(self): """ Gets the restart_count of this V1ContainerStatus. - the number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed + 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. :return: The restart_count of this V1ContainerStatus. :rtype: int @@ -168,7 +168,7 @@ class V1ContainerStatus(object): def restart_count(self, restart_count): """ Sets the restart_count of this V1ContainerStatus. - the number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed + 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. :param restart_count: The restart_count of this V1ContainerStatus. :type: int @@ -179,7 +179,7 @@ class V1ContainerStatus(object): def image(self): """ Gets the image of this V1ContainerStatus. - image of the container; see http://releases.k8s.io/v1.0.4/docs/images.md + The image the container is running. More info: http://releases.k8s.io/release-1.2/docs/user-guide/images.md :return: The image of this V1ContainerStatus. :rtype: str @@ -190,7 +190,7 @@ class V1ContainerStatus(object): def image(self, image): """ Sets the image of this V1ContainerStatus. - image of the container; see http://releases.k8s.io/v1.0.4/docs/images.md + The image the container is running. More info: http://releases.k8s.io/release-1.2/docs/user-guide/images.md :param image: The image of this V1ContainerStatus. :type: str @@ -201,7 +201,7 @@ class V1ContainerStatus(object): def image_id(self): """ Gets the image_id of this V1ContainerStatus. - ID of the container's image + ImageID of the container's image. :return: The image_id of this V1ContainerStatus. :rtype: str @@ -212,7 +212,7 @@ class V1ContainerStatus(object): def image_id(self, image_id): """ Sets the image_id of this V1ContainerStatus. - ID of the container's image + ImageID of the container's image. :param image_id: The image_id of this V1ContainerStatus. :type: str @@ -223,7 +223,7 @@ class V1ContainerStatus(object): def container_id(self): """ Gets the container_id of this V1ContainerStatus. - container's ID in the format 'docker://'; see http://releases.k8s.io/v1.0.4/docs/container-environment.md#container-information + Container's ID in the format 'docker://'. More info: http://releases.k8s.io/release-1.2/docs/user-guide/container-environment.md#container-information :return: The container_id of this V1ContainerStatus. :rtype: str @@ -234,7 +234,7 @@ class V1ContainerStatus(object): def container_id(self, container_id): """ Sets the container_id of this V1ContainerStatus. - container's ID in the format 'docker://'; see http://releases.k8s.io/v1.0.4/docs/container-environment.md#container-information + Container's ID in the format 'docker://'. More info: http://releases.k8s.io/release-1.2/docs/user-guide/container-environment.md#container-information :param container_id: The container_id of this V1ContainerStatus. :type: str diff --git a/k8sclient/client/models/v1_daemon_endpoint.py b/k8sclient/client/models/v1_daemon_endpoint.py new file mode 100644 index 0000000..7028832 --- /dev/null +++ b/k8sclient/client/models/v1_daemon_endpoint.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1DaemonEndpoint(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'port': 'int' + } + + self.attribute_map = { + 'port': 'Port' + } + + self._port = None + + @property + def port(self): + """ + Gets the port of this V1DaemonEndpoint. + Port number of the given endpoint. + + :return: The port of this V1DaemonEndpoint. + :rtype: int + """ + return self._port + + @port.setter + def port(self, port): + """ + Sets the port of this V1DaemonEndpoint. + Port number of the given endpoint. + + :param port: The port of this V1DaemonEndpoint. + :type: int + """ + self._port = port + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/k8sclient/client/models/v1_delete_options.py b/k8sclient/client/models/v1_delete_options.py index 9c947d5..069cdd4 100644 --- a/k8sclient/client/models/v1_delete_options.py +++ b/k8sclient/client/models/v1_delete_options.py @@ -54,7 +54,7 @@ class V1DeleteOptions(object): def kind(self): """ Gets the kind of this V1DeleteOptions. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1DeleteOptions. :rtype: str @@ -65,7 +65,7 @@ class V1DeleteOptions(object): def kind(self, kind): """ Sets the kind of this V1DeleteOptions. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1DeleteOptions. :type: str @@ -76,7 +76,7 @@ class V1DeleteOptions(object): def api_version(self): """ Gets the api_version of this V1DeleteOptions. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1DeleteOptions. :rtype: str @@ -87,7 +87,7 @@ class V1DeleteOptions(object): def api_version(self, api_version): """ Sets the api_version of this V1DeleteOptions. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1DeleteOptions. :type: str @@ -98,7 +98,7 @@ class V1DeleteOptions(object): def grace_period_seconds(self): """ Gets the grace_period_seconds of this V1DeleteOptions. - the duration in seconds to wait before deleting this object; defaults to a per object value if not specified; zero means delete immediately + The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :return: The grace_period_seconds of this V1DeleteOptions. :rtype: int @@ -109,7 +109,7 @@ class V1DeleteOptions(object): def grace_period_seconds(self, grace_period_seconds): """ Sets the grace_period_seconds of this V1DeleteOptions. - the duration in seconds to wait before deleting this object; defaults to a per object value if not specified; zero means delete immediately + The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param grace_period_seconds: The grace_period_seconds of this V1DeleteOptions. :type: int diff --git a/k8sclient/client/models/v1_downward_api_volume_file.py b/k8sclient/client/models/v1_downward_api_volume_file.py new file mode 100644 index 0000000..9f389a5 --- /dev/null +++ b/k8sclient/client/models/v1_downward_api_volume_file.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1DownwardAPIVolumeFile(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'path': 'str', + 'field_ref': 'V1ObjectFieldSelector' + } + + self.attribute_map = { + 'path': 'path', + 'field_ref': 'fieldRef' + } + + self._path = None + self._field_ref = None + + @property + def path(self): + """ + Gets the path of this V1DownwardAPIVolumeFile. + Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + + :return: The path of this V1DownwardAPIVolumeFile. + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """ + Sets the path of this V1DownwardAPIVolumeFile. + Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + + :param path: The path of this V1DownwardAPIVolumeFile. + :type: str + """ + self._path = path + + @property + def field_ref(self): + """ + Gets the field_ref of this V1DownwardAPIVolumeFile. + Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + + :return: The field_ref of this V1DownwardAPIVolumeFile. + :rtype: V1ObjectFieldSelector + """ + return self._field_ref + + @field_ref.setter + def field_ref(self, field_ref): + """ + Sets the field_ref of this V1DownwardAPIVolumeFile. + Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + + :param field_ref: The field_ref of this V1DownwardAPIVolumeFile. + :type: V1ObjectFieldSelector + """ + self._field_ref = field_ref + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/k8sclient/client/models/v1_downward_api_volume_source.py b/k8sclient/client/models/v1_downward_api_volume_source.py new file mode 100644 index 0000000..4dcf609 --- /dev/null +++ b/k8sclient/client/models/v1_downward_api_volume_source.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1DownwardAPIVolumeSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'items': 'list[V1DownwardAPIVolumeFile]' + } + + self.attribute_map = { + 'items': 'items' + } + + self._items = None + + @property + def items(self): + """ + Gets the items of this V1DownwardAPIVolumeSource. + Items is a list of downward API volume file + + :return: The items of this V1DownwardAPIVolumeSource. + :rtype: list[V1DownwardAPIVolumeFile] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1DownwardAPIVolumeSource. + Items is a list of downward API volume file + + :param items: The items of this V1DownwardAPIVolumeSource. + :type: list[V1DownwardAPIVolumeFile] + """ + self._items = items + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/k8sclient/client/models/v1_empty_dir_volume_source.py b/k8sclient/client/models/v1_empty_dir_volume_source.py index b9c0671..fe10967 100644 --- a/k8sclient/client/models/v1_empty_dir_volume_source.py +++ b/k8sclient/client/models/v1_empty_dir_volume_source.py @@ -48,7 +48,7 @@ class V1EmptyDirVolumeSource(object): def medium(self): """ Gets the medium of this V1EmptyDirVolumeSource. - type of storage used to back the volume; must be an empty string (default) or Memory; see http://releases.k8s.io/v1.0.4/docs/volumes.md#emptydir + What type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#emptydir :return: The medium of this V1EmptyDirVolumeSource. :rtype: str @@ -59,7 +59,7 @@ class V1EmptyDirVolumeSource(object): def medium(self, medium): """ Sets the medium of this V1EmptyDirVolumeSource. - type of storage used to back the volume; must be an empty string (default) or Memory; see http://releases.k8s.io/v1.0.4/docs/volumes.md#emptydir + What type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#emptydir :param medium: The medium of this V1EmptyDirVolumeSource. :type: str diff --git a/k8sclient/client/models/v1_endpoint_address.py b/k8sclient/client/models/v1_endpoint_address.py index e17277e..9f4a828 100644 --- a/k8sclient/client/models/v1_endpoint_address.py +++ b/k8sclient/client/models/v1_endpoint_address.py @@ -51,7 +51,7 @@ class V1EndpointAddress(object): def ip(self): """ Gets the ip of this V1EndpointAddress. - IP address of the endpoint + The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). :return: The ip of this V1EndpointAddress. :rtype: str @@ -62,7 +62,7 @@ class V1EndpointAddress(object): def ip(self, ip): """ Sets the ip of this V1EndpointAddress. - IP address of the endpoint + The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). :param ip: The ip of this V1EndpointAddress. :type: str @@ -73,7 +73,7 @@ class V1EndpointAddress(object): def target_ref(self): """ Gets the target_ref of this V1EndpointAddress. - reference to object providing the endpoint + Reference to object providing the endpoint. :return: The target_ref of this V1EndpointAddress. :rtype: V1ObjectReference @@ -84,7 +84,7 @@ class V1EndpointAddress(object): def target_ref(self, target_ref): """ Sets the target_ref of this V1EndpointAddress. - reference to object providing the endpoint + Reference to object providing the endpoint. :param target_ref: The target_ref of this V1EndpointAddress. :type: V1ObjectReference diff --git a/k8sclient/client/models/v1_endpoint_port.py b/k8sclient/client/models/v1_endpoint_port.py index 7a7bd8c..87682fc 100644 --- a/k8sclient/client/models/v1_endpoint_port.py +++ b/k8sclient/client/models/v1_endpoint_port.py @@ -54,7 +54,7 @@ class V1EndpointPort(object): def name(self): """ Gets the name of this V1EndpointPort. - name of this port + The name of this port (corresponds to ServicePort.Name). Must be a DNS_LABEL. Optional only if one port is defined. :return: The name of this V1EndpointPort. :rtype: str @@ -65,7 +65,7 @@ class V1EndpointPort(object): def name(self, name): """ Sets the name of this V1EndpointPort. - name of this port + The name of this port (corresponds to ServicePort.Name). Must be a DNS_LABEL. Optional only if one port is defined. :param name: The name of this V1EndpointPort. :type: str @@ -76,7 +76,7 @@ class V1EndpointPort(object): def port(self): """ Gets the port of this V1EndpointPort. - port number of the endpoint + The port number of the endpoint. :return: The port of this V1EndpointPort. :rtype: int @@ -87,7 +87,7 @@ class V1EndpointPort(object): def port(self, port): """ Sets the port of this V1EndpointPort. - port number of the endpoint + The port number of the endpoint. :param port: The port of this V1EndpointPort. :type: int @@ -98,7 +98,7 @@ class V1EndpointPort(object): def protocol(self): """ Gets the protocol of this V1EndpointPort. - protocol for this port; must be UDP or TCP; TCP if unspecified + The IP protocol for this port. Must be UDP or TCP. Default is TCP. :return: The protocol of this V1EndpointPort. :rtype: str @@ -109,7 +109,7 @@ class V1EndpointPort(object): def protocol(self, protocol): """ Sets the protocol of this V1EndpointPort. - protocol for this port; must be UDP or TCP; TCP if unspecified + The IP protocol for this port. Must be UDP or TCP. Default is TCP. :param protocol: The protocol of this V1EndpointPort. :type: str diff --git a/k8sclient/client/models/v1_endpoint_subset.py b/k8sclient/client/models/v1_endpoint_subset.py index bac809a..d8d0a66 100644 --- a/k8sclient/client/models/v1_endpoint_subset.py +++ b/k8sclient/client/models/v1_endpoint_subset.py @@ -36,22 +36,25 @@ class V1EndpointSubset(object): """ self.swagger_types = { 'addresses': 'list[V1EndpointAddress]', + 'not_ready_addresses': 'list[V1EndpointAddress]', 'ports': 'list[V1EndpointPort]' } self.attribute_map = { 'addresses': 'addresses', + 'not_ready_addresses': 'notReadyAddresses', 'ports': 'ports' } self._addresses = None + self._not_ready_addresses = None self._ports = None @property def addresses(self): """ Gets the addresses of this V1EndpointSubset. - IP addresses which offer the related ports + IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize. :return: The addresses of this V1EndpointSubset. :rtype: list[V1EndpointAddress] @@ -62,18 +65,40 @@ class V1EndpointSubset(object): def addresses(self, addresses): """ Sets the addresses of this V1EndpointSubset. - IP addresses which offer the related ports + IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize. :param addresses: The addresses of this V1EndpointSubset. :type: list[V1EndpointAddress] """ self._addresses = addresses + @property + def not_ready_addresses(self): + """ + Gets the not_ready_addresses of this V1EndpointSubset. + IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check. + + :return: The not_ready_addresses of this V1EndpointSubset. + :rtype: list[V1EndpointAddress] + """ + return self._not_ready_addresses + + @not_ready_addresses.setter + def not_ready_addresses(self, not_ready_addresses): + """ + Sets the not_ready_addresses of this V1EndpointSubset. + IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check. + + :param not_ready_addresses: The not_ready_addresses of this V1EndpointSubset. + :type: list[V1EndpointAddress] + """ + self._not_ready_addresses = not_ready_addresses + @property def ports(self): """ Gets the ports of this V1EndpointSubset. - port numbers available on the related IP addresses + Port numbers available on the related IP addresses. :return: The ports of this V1EndpointSubset. :rtype: list[V1EndpointPort] @@ -84,7 +109,7 @@ class V1EndpointSubset(object): def ports(self, ports): """ Sets the ports of this V1EndpointSubset. - port numbers available on the related IP addresses + Port numbers available on the related IP addresses. :param ports: The ports of this V1EndpointSubset. :type: list[V1EndpointPort] diff --git a/k8sclient/client/models/v1_endpoints.py b/k8sclient/client/models/v1_endpoints.py index aa07d24..e1f26d3 100644 --- a/k8sclient/client/models/v1_endpoints.py +++ b/k8sclient/client/models/v1_endpoints.py @@ -57,7 +57,7 @@ class V1Endpoints(object): def kind(self): """ Gets the kind of this V1Endpoints. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1Endpoints. :rtype: str @@ -68,7 +68,7 @@ class V1Endpoints(object): def kind(self, kind): """ Sets the kind of this V1Endpoints. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1Endpoints. :type: str @@ -79,7 +79,7 @@ class V1Endpoints(object): def api_version(self): """ Gets the api_version of this V1Endpoints. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1Endpoints. :rtype: str @@ -90,7 +90,7 @@ class V1Endpoints(object): def api_version(self, api_version): """ Sets the api_version of this V1Endpoints. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1Endpoints. :type: str @@ -101,7 +101,7 @@ class V1Endpoints(object): def metadata(self): """ Gets the metadata of this V1Endpoints. - standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1Endpoints. :rtype: V1ObjectMeta @@ -112,7 +112,7 @@ class V1Endpoints(object): def metadata(self, metadata): """ Sets the metadata of this V1Endpoints. - standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1Endpoints. :type: V1ObjectMeta @@ -123,7 +123,7 @@ class V1Endpoints(object): def subsets(self): """ Gets the subsets of this V1Endpoints. - sets of addresses and ports that comprise a service + The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. :return: The subsets of this V1Endpoints. :rtype: list[V1EndpointSubset] @@ -134,7 +134,7 @@ class V1Endpoints(object): def subsets(self, subsets): """ Sets the subsets of this V1Endpoints. - sets of addresses and ports that comprise a service + The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. :param subsets: The subsets of this V1Endpoints. :type: list[V1EndpointSubset] diff --git a/k8sclient/client/models/v1_endpoints_list.py b/k8sclient/client/models/v1_endpoints_list.py index 0fb4a48..b6bb66a 100644 --- a/k8sclient/client/models/v1_endpoints_list.py +++ b/k8sclient/client/models/v1_endpoints_list.py @@ -37,7 +37,7 @@ class V1EndpointsList(object): self.swagger_types = { 'kind': 'str', 'api_version': 'str', - 'metadata': 'V1ListMeta', + 'metadata': 'UnversionedListMeta', 'items': 'list[V1Endpoints]' } @@ -57,7 +57,7 @@ class V1EndpointsList(object): def kind(self): """ Gets the kind of this V1EndpointsList. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1EndpointsList. :rtype: str @@ -68,7 +68,7 @@ class V1EndpointsList(object): def kind(self, kind): """ Sets the kind of this V1EndpointsList. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1EndpointsList. :type: str @@ -79,7 +79,7 @@ class V1EndpointsList(object): def api_version(self): """ Gets the api_version of this V1EndpointsList. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1EndpointsList. :rtype: str @@ -90,7 +90,7 @@ class V1EndpointsList(object): def api_version(self, api_version): """ Sets the api_version of this V1EndpointsList. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1EndpointsList. :type: str @@ -101,10 +101,10 @@ class V1EndpointsList(object): def metadata(self): """ Gets the metadata of this V1EndpointsList. - standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1EndpointsList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -112,10 +112,10 @@ class V1EndpointsList(object): def metadata(self, metadata): """ Sets the metadata of this V1EndpointsList. - standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1EndpointsList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata @@ -123,7 +123,7 @@ class V1EndpointsList(object): def items(self): """ Gets the items of this V1EndpointsList. - list of endpoints + List of endpoints. :return: The items of this V1EndpointsList. :rtype: list[V1Endpoints] @@ -134,7 +134,7 @@ class V1EndpointsList(object): def items(self, items): """ Sets the items of this V1EndpointsList. - list of endpoints + List of endpoints. :param items: The items of this V1EndpointsList. :type: list[V1Endpoints] diff --git a/k8sclient/client/models/v1_env_var.py b/k8sclient/client/models/v1_env_var.py index 6aca78e..5b0e6f7 100644 --- a/k8sclient/client/models/v1_env_var.py +++ b/k8sclient/client/models/v1_env_var.py @@ -54,7 +54,7 @@ class V1EnvVar(object): def name(self): """ Gets the name of this V1EnvVar. - name of the environment variable; must be a C_IDENTIFIER + Name of the environment variable. Must be a C_IDENTIFIER. :return: The name of this V1EnvVar. :rtype: str @@ -65,7 +65,7 @@ class V1EnvVar(object): def name(self, name): """ Sets the name of this V1EnvVar. - name of the environment variable; must be a C_IDENTIFIER + Name of the environment variable. Must be a C_IDENTIFIER. :param name: The name of this V1EnvVar. :type: str @@ -76,7 +76,7 @@ class V1EnvVar(object): def value(self): """ Gets the value of this V1EnvVar. - value of the environment variable; defaults to empty string; variable references $(VAR_NAME) are expanded using the previously defined environment varibles 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 + 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 \"\". :return: The value of this V1EnvVar. :rtype: str @@ -87,7 +87,7 @@ class V1EnvVar(object): def value(self, value): """ Sets the value of this V1EnvVar. - value of the environment variable; defaults to empty string; variable references $(VAR_NAME) are expanded using the previously defined environment varibles 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 + 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 \"\". :param value: The value of this V1EnvVar. :type: str @@ -98,7 +98,7 @@ class V1EnvVar(object): def value_from(self): """ Gets the value_from of this V1EnvVar. - source for the environment variable's value; cannot be used if value is not empty + Source for the environment variable's value. Cannot be used if value is not empty. :return: The value_from of this V1EnvVar. :rtype: V1EnvVarSource @@ -109,7 +109,7 @@ class V1EnvVar(object): def value_from(self, value_from): """ Sets the value_from of this V1EnvVar. - source for the environment variable's value; cannot be used if value is not empty + Source for the environment variable's value. Cannot be used if value is not empty. :param value_from: The value_from of this V1EnvVar. :type: V1EnvVarSource diff --git a/k8sclient/client/models/v1_env_var_source.py b/k8sclient/client/models/v1_env_var_source.py index 952792e..8e8ef0b 100644 --- a/k8sclient/client/models/v1_env_var_source.py +++ b/k8sclient/client/models/v1_env_var_source.py @@ -35,20 +35,26 @@ class V1EnvVarSource(object): and the value is json key in definition. """ self.swagger_types = { - 'field_ref': 'V1ObjectFieldSelector' + 'field_ref': 'V1ObjectFieldSelector', + 'config_map_key_ref': 'V1ConfigMapKeySelector', + 'secret_key_ref': 'V1SecretKeySelector' } self.attribute_map = { - 'field_ref': 'fieldRef' + 'field_ref': 'fieldRef', + 'config_map_key_ref': 'configMapKeyRef', + 'secret_key_ref': 'secretKeyRef' } self._field_ref = None + self._config_map_key_ref = None + self._secret_key_ref = None @property def field_ref(self): """ Gets the field_ref of this V1EnvVarSource. - selects a field of the pod; only name and namespace are supported + Selects a field of the pod; only name and namespace are supported. :return: The field_ref of this V1EnvVarSource. :rtype: V1ObjectFieldSelector @@ -59,13 +65,57 @@ class V1EnvVarSource(object): def field_ref(self, field_ref): """ Sets the field_ref of this V1EnvVarSource. - selects a field of the pod; only name and namespace are supported + Selects a field of the pod; only name and namespace are supported. :param field_ref: The field_ref of this V1EnvVarSource. :type: V1ObjectFieldSelector """ self._field_ref = field_ref + @property + def config_map_key_ref(self): + """ + Gets the config_map_key_ref of this V1EnvVarSource. + Selects a key of a ConfigMap. + + :return: The config_map_key_ref of this V1EnvVarSource. + :rtype: V1ConfigMapKeySelector + """ + return self._config_map_key_ref + + @config_map_key_ref.setter + def config_map_key_ref(self, config_map_key_ref): + """ + Sets the config_map_key_ref of this V1EnvVarSource. + Selects a key of a ConfigMap. + + :param config_map_key_ref: The config_map_key_ref of this V1EnvVarSource. + :type: V1ConfigMapKeySelector + """ + self._config_map_key_ref = config_map_key_ref + + @property + def secret_key_ref(self): + """ + Gets the secret_key_ref of this V1EnvVarSource. + Selects a key of a secret in the pod's namespace + + :return: The secret_key_ref of this V1EnvVarSource. + :rtype: V1SecretKeySelector + """ + return self._secret_key_ref + + @secret_key_ref.setter + def secret_key_ref(self, secret_key_ref): + """ + Sets the secret_key_ref of this V1EnvVarSource. + Selects a key of a secret in the pod's namespace + + :param secret_key_ref: The secret_key_ref of this V1EnvVarSource. + :type: V1SecretKeySelector + """ + self._secret_key_ref = secret_key_ref + def to_dict(self): """ Return model properties dict diff --git a/k8sclient/client/models/v1_event.py b/k8sclient/client/models/v1_event.py index bba283a..286a27f 100644 --- a/k8sclient/client/models/v1_event.py +++ b/k8sclient/client/models/v1_event.py @@ -44,7 +44,8 @@ class V1Event(object): 'source': 'V1EventSource', 'first_timestamp': 'str', 'last_timestamp': 'str', - 'count': 'int' + 'count': 'int', + 'type': 'str' } self.attribute_map = { @@ -57,7 +58,8 @@ class V1Event(object): 'source': 'source', 'first_timestamp': 'firstTimestamp', 'last_timestamp': 'lastTimestamp', - 'count': 'count' + 'count': 'count', + 'type': 'type' } self._kind = None @@ -70,12 +72,13 @@ class V1Event(object): self._first_timestamp = None self._last_timestamp = None self._count = None + self._type = None @property def kind(self): """ Gets the kind of this V1Event. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1Event. :rtype: str @@ -86,7 +89,7 @@ class V1Event(object): def kind(self, kind): """ Sets the kind of this V1Event. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1Event. :type: str @@ -97,7 +100,7 @@ class V1Event(object): def api_version(self): """ Gets the api_version of this V1Event. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1Event. :rtype: str @@ -108,7 +111,7 @@ class V1Event(object): def api_version(self, api_version): """ Sets the api_version of this V1Event. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1Event. :type: str @@ -119,7 +122,7 @@ class V1Event(object): def metadata(self): """ Gets the metadata of this V1Event. - standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1Event. :rtype: V1ObjectMeta @@ -130,7 +133,7 @@ class V1Event(object): def metadata(self, metadata): """ Sets the metadata of this V1Event. - standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1Event. :type: V1ObjectMeta @@ -141,7 +144,7 @@ class V1Event(object): def involved_object(self): """ Gets the involved_object of this V1Event. - object this event is about + The object that this event is about. :return: The involved_object of this V1Event. :rtype: V1ObjectReference @@ -152,7 +155,7 @@ class V1Event(object): def involved_object(self, involved_object): """ Sets the involved_object of this V1Event. - object this event is about + The object that this event is about. :param involved_object: The involved_object of this V1Event. :type: V1ObjectReference @@ -163,7 +166,7 @@ class V1Event(object): def reason(self): """ Gets the reason of this V1Event. - short, machine understandable string that gives the reason for the transition into the object's current status + This should be a short, machine understandable string that gives the reason for the transition into the object's current status. :return: The reason of this V1Event. :rtype: str @@ -174,7 +177,7 @@ class V1Event(object): def reason(self, reason): """ Sets the reason of this V1Event. - short, machine understandable string that gives the reason for the transition into the object's current status + This should be a short, machine understandable string that gives the reason for the transition into the object's current status. :param reason: The reason of this V1Event. :type: str @@ -185,7 +188,7 @@ class V1Event(object): def message(self): """ Gets the message of this V1Event. - human-readable description of the status of this operation + A human-readable description of the status of this operation. :return: The message of this V1Event. :rtype: str @@ -196,7 +199,7 @@ class V1Event(object): def message(self, message): """ Sets the message of this V1Event. - human-readable description of the status of this operation + A human-readable description of the status of this operation. :param message: The message of this V1Event. :type: str @@ -207,7 +210,7 @@ class V1Event(object): def source(self): """ Gets the source of this V1Event. - component reporting this event + The component reporting this event. Should be a short machine understandable string. :return: The source of this V1Event. :rtype: V1EventSource @@ -218,7 +221,7 @@ class V1Event(object): def source(self, source): """ Sets the source of this V1Event. - component reporting this event + The component reporting this event. Should be a short machine understandable string. :param source: The source of this V1Event. :type: V1EventSource @@ -229,7 +232,7 @@ class V1Event(object): def first_timestamp(self): """ Gets the first_timestamp of this V1Event. - the time at which the event was first recorded + The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) :return: The first_timestamp of this V1Event. :rtype: str @@ -240,7 +243,7 @@ class V1Event(object): def first_timestamp(self, first_timestamp): """ Sets the first_timestamp of this V1Event. - the time at which the event was first recorded + The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) :param first_timestamp: The first_timestamp of this V1Event. :type: str @@ -251,7 +254,7 @@ class V1Event(object): def last_timestamp(self): """ Gets the last_timestamp of this V1Event. - the time at which the most recent occurrence of this event was recorded + The time at which the most recent occurrence of this event was recorded. :return: The last_timestamp of this V1Event. :rtype: str @@ -262,7 +265,7 @@ class V1Event(object): def last_timestamp(self, last_timestamp): """ Sets the last_timestamp of this V1Event. - the time at which the most recent occurrence of this event was recorded + The time at which the most recent occurrence of this event was recorded. :param last_timestamp: The last_timestamp of this V1Event. :type: str @@ -273,7 +276,7 @@ class V1Event(object): def count(self): """ Gets the count of this V1Event. - the number of times this event has occurred + The number of times this event has occurred. :return: The count of this V1Event. :rtype: int @@ -284,13 +287,35 @@ class V1Event(object): def count(self, count): """ Sets the count of this V1Event. - the number of times this event has occurred + The number of times this event has occurred. :param count: The count of this V1Event. :type: int """ self._count = count + @property + def type(self): + """ + Gets the type of this V1Event. + Type of this event (Normal, Warning), new types could be added in the future + + :return: The type of this V1Event. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1Event. + Type of this event (Normal, Warning), new types could be added in the future + + :param type: The type of this V1Event. + :type: str + """ + self._type = type + def to_dict(self): """ Return model properties dict diff --git a/k8sclient/client/models/v1_event_list.py b/k8sclient/client/models/v1_event_list.py index fe6f807..c48598f 100644 --- a/k8sclient/client/models/v1_event_list.py +++ b/k8sclient/client/models/v1_event_list.py @@ -37,7 +37,7 @@ class V1EventList(object): self.swagger_types = { 'kind': 'str', 'api_version': 'str', - 'metadata': 'V1ListMeta', + 'metadata': 'UnversionedListMeta', 'items': 'list[V1Event]' } @@ -57,7 +57,7 @@ class V1EventList(object): def kind(self): """ Gets the kind of this V1EventList. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1EventList. :rtype: str @@ -68,7 +68,7 @@ class V1EventList(object): def kind(self, kind): """ Sets the kind of this V1EventList. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1EventList. :type: str @@ -79,7 +79,7 @@ class V1EventList(object): def api_version(self): """ Gets the api_version of this V1EventList. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1EventList. :rtype: str @@ -90,7 +90,7 @@ class V1EventList(object): def api_version(self, api_version): """ Sets the api_version of this V1EventList. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1EventList. :type: str @@ -101,10 +101,10 @@ class V1EventList(object): def metadata(self): """ Gets the metadata of this V1EventList. - standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1EventList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -112,10 +112,10 @@ class V1EventList(object): def metadata(self, metadata): """ Sets the metadata of this V1EventList. - standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1EventList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata @@ -123,7 +123,7 @@ class V1EventList(object): def items(self): """ Gets the items of this V1EventList. - list of events + List of events :return: The items of this V1EventList. :rtype: list[V1Event] @@ -134,7 +134,7 @@ class V1EventList(object): def items(self, items): """ Sets the items of this V1EventList. - list of events + List of events :param items: The items of this V1EventList. :type: list[V1Event] diff --git a/k8sclient/client/models/v1_event_source.py b/k8sclient/client/models/v1_event_source.py index 82bfc15..c8e3e74 100644 --- a/k8sclient/client/models/v1_event_source.py +++ b/k8sclient/client/models/v1_event_source.py @@ -51,7 +51,7 @@ class V1EventSource(object): def component(self): """ Gets the component of this V1EventSource. - component that generated the event + Component from which the event is generated. :return: The component of this V1EventSource. :rtype: str @@ -62,7 +62,7 @@ class V1EventSource(object): def component(self, component): """ Sets the component of this V1EventSource. - component that generated the event + Component from which the event is generated. :param component: The component of this V1EventSource. :type: str @@ -73,7 +73,7 @@ class V1EventSource(object): def host(self): """ Gets the host of this V1EventSource. - name of the host where the event is generated + Host name on which the event is generated. :return: The host of this V1EventSource. :rtype: str @@ -84,7 +84,7 @@ class V1EventSource(object): def host(self, host): """ Sets the host of this V1EventSource. - name of the host where the event is generated + Host name on which the event is generated. :param host: The host of this V1EventSource. :type: str diff --git a/k8sclient/client/models/v1_exec_action.py b/k8sclient/client/models/v1_exec_action.py index d561882..e2ed1b8 100644 --- a/k8sclient/client/models/v1_exec_action.py +++ b/k8sclient/client/models/v1_exec_action.py @@ -48,7 +48,7 @@ class V1ExecAction(object): def command(self): """ Gets the command of this V1ExecAction. - command line to execute inside the container; working directory for the command is root ('/') in the container's file system; the command is exec'd, not run inside a shell; exit status of 0 is treated as live/healthy and non-zero is unhealthy + Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. :return: The command of this V1ExecAction. :rtype: list[str] @@ -59,7 +59,7 @@ class V1ExecAction(object): def command(self, command): """ Sets the command of this V1ExecAction. - command line to execute inside the container; working directory for the command is root ('/') in the container's file system; the command is exec'd, not run inside a shell; exit status of 0 is treated as live/healthy and non-zero is unhealthy + Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. :param command: The command of this V1ExecAction. :type: list[str] diff --git a/k8sclient/client/models/v1_fc_volume_source.py b/k8sclient/client/models/v1_fc_volume_source.py new file mode 100644 index 0000000..9ae481c --- /dev/null +++ b/k8sclient/client/models/v1_fc_volume_source.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1FCVolumeSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'target_ww_ns': 'list[str]', + 'lun': 'int', + 'fs_type': 'str', + 'read_only': 'bool' + } + + self.attribute_map = { + 'target_ww_ns': 'targetWWNs', + 'lun': 'lun', + 'fs_type': 'fsType', + 'read_only': 'readOnly' + } + + self._target_ww_ns = None + self._lun = None + self._fs_type = None + self._read_only = None + + @property + def target_ww_ns(self): + """ + Gets the target_ww_ns of this V1FCVolumeSource. + Required: FC target world wide names (WWNs) + + :return: The target_ww_ns of this V1FCVolumeSource. + :rtype: list[str] + """ + return self._target_ww_ns + + @target_ww_ns.setter + def target_ww_ns(self, target_ww_ns): + """ + Sets the target_ww_ns of this V1FCVolumeSource. + Required: FC target world wide names (WWNs) + + :param target_ww_ns: The target_ww_ns of this V1FCVolumeSource. + :type: list[str] + """ + self._target_ww_ns = target_ww_ns + + @property + def lun(self): + """ + Gets the lun of this V1FCVolumeSource. + Required: FC target lun number + + :return: The lun of this V1FCVolumeSource. + :rtype: int + """ + return self._lun + + @lun.setter + def lun(self, lun): + """ + Sets the lun of this V1FCVolumeSource. + Required: FC target lun number + + :param lun: The lun of this V1FCVolumeSource. + :type: int + """ + self._lun = lun + + @property + def fs_type(self): + """ + Gets the fs_type of this V1FCVolumeSource. + 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. + + :return: The fs_type of this V1FCVolumeSource. + :rtype: str + """ + return self._fs_type + + @fs_type.setter + def fs_type(self, fs_type): + """ + Sets the fs_type of this V1FCVolumeSource. + 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. + + :param fs_type: The fs_type of this V1FCVolumeSource. + :type: str + """ + self._fs_type = fs_type + + @property + def read_only(self): + """ + Gets the read_only of this V1FCVolumeSource. + Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + :return: The read_only of this V1FCVolumeSource. + :rtype: bool + """ + return self._read_only + + @read_only.setter + def read_only(self, read_only): + """ + Sets the read_only of this V1FCVolumeSource. + Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + :param read_only: The read_only of this V1FCVolumeSource. + :type: bool + """ + self._read_only = read_only + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/k8sclient/client/models/v1_flex_volume_source.py b/k8sclient/client/models/v1_flex_volume_source.py new file mode 100644 index 0000000..4a06e16 --- /dev/null +++ b/k8sclient/client/models/v1_flex_volume_source.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1FlexVolumeSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'driver': 'str', + 'fs_type': 'str', + 'secret_ref': 'V1LocalObjectReference', + 'read_only': 'bool', + 'options': 'object' + } + + self.attribute_map = { + 'driver': 'driver', + 'fs_type': 'fsType', + 'secret_ref': 'secretRef', + 'read_only': 'readOnly', + 'options': 'options' + } + + self._driver = None + self._fs_type = None + self._secret_ref = None + self._read_only = None + self._options = None + + @property + def driver(self): + """ + Gets the driver of this V1FlexVolumeSource. + Driver is the name of the driver to use for this volume. + + :return: The driver of this V1FlexVolumeSource. + :rtype: str + """ + return self._driver + + @driver.setter + def driver(self, driver): + """ + Sets the driver of this V1FlexVolumeSource. + Driver is the name of the driver to use for this volume. + + :param driver: The driver of this V1FlexVolumeSource. + :type: str + """ + self._driver = driver + + @property + def fs_type(self): + """ + Gets the fs_type of this V1FlexVolumeSource. + 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. + + :return: The fs_type of this V1FlexVolumeSource. + :rtype: str + """ + return self._fs_type + + @fs_type.setter + def fs_type(self, fs_type): + """ + Sets the fs_type of this V1FlexVolumeSource. + 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. + + :param fs_type: The fs_type of this V1FlexVolumeSource. + :type: str + """ + self._fs_type = fs_type + + @property + def secret_ref(self): + """ + Gets the secret_ref of this V1FlexVolumeSource. + Optional: SecretRef is reference to the authentication secret for User, default is empty. + + :return: The secret_ref of this V1FlexVolumeSource. + :rtype: V1LocalObjectReference + """ + return self._secret_ref + + @secret_ref.setter + def secret_ref(self, secret_ref): + """ + Sets the secret_ref of this V1FlexVolumeSource. + Optional: SecretRef is reference to the authentication secret for User, default is empty. + + :param secret_ref: The secret_ref of this V1FlexVolumeSource. + :type: V1LocalObjectReference + """ + self._secret_ref = secret_ref + + @property + def read_only(self): + """ + Gets the read_only of this V1FlexVolumeSource. + Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + :return: The read_only of this V1FlexVolumeSource. + :rtype: bool + """ + return self._read_only + + @read_only.setter + def read_only(self, read_only): + """ + Sets the read_only of this V1FlexVolumeSource. + Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + :param read_only: The read_only of this V1FlexVolumeSource. + :type: bool + """ + self._read_only = read_only + + @property + def options(self): + """ + Gets the options of this V1FlexVolumeSource. + Optional: Extra command options if any. + + :return: The options of this V1FlexVolumeSource. + :rtype: object + """ + return self._options + + @options.setter + def options(self, options): + """ + Sets the options of this V1FlexVolumeSource. + Optional: Extra command options if any. + + :param options: The options of this V1FlexVolumeSource. + :type: object + """ + self._options = options + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/k8sclient/client/models/v1_flocker_volume_source.py b/k8sclient/client/models/v1_flocker_volume_source.py new file mode 100644 index 0000000..a0b664f --- /dev/null +++ b/k8sclient/client/models/v1_flocker_volume_source.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1FlockerVolumeSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'dataset_name': 'str' + } + + self.attribute_map = { + 'dataset_name': 'datasetName' + } + + self._dataset_name = None + + @property + def dataset_name(self): + """ + Gets the dataset_name of this V1FlockerVolumeSource. + Required: the volume name. This is going to be store on metadata -> name on the payload for Flocker + + :return: The dataset_name of this V1FlockerVolumeSource. + :rtype: str + """ + return self._dataset_name + + @dataset_name.setter + def dataset_name(self, dataset_name): + """ + Sets the dataset_name of this V1FlockerVolumeSource. + Required: the volume name. This is going to be store on metadata -> name on the payload for Flocker + + :param dataset_name: The dataset_name of this V1FlockerVolumeSource. + :type: str + """ + self._dataset_name = dataset_name + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/k8sclient/client/models/v1_gce_persistent_disk_volume_source.py b/k8sclient/client/models/v1_gce_persistent_disk_volume_source.py index 5fca715..bf30043 100644 --- a/k8sclient/client/models/v1_gce_persistent_disk_volume_source.py +++ b/k8sclient/client/models/v1_gce_persistent_disk_volume_source.py @@ -57,7 +57,7 @@ class V1GCEPersistentDiskVolumeSource(object): def pd_name(self): """ Gets the pd_name of this V1GCEPersistentDiskVolumeSource. - unique name of the PD resource in GCE; see http://releases.k8s.io/v1.0.4/docs/volumes.md#gcepersistentdisk + Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :return: The pd_name of this V1GCEPersistentDiskVolumeSource. :rtype: str @@ -68,7 +68,7 @@ class V1GCEPersistentDiskVolumeSource(object): def pd_name(self, pd_name): """ Sets the pd_name of this V1GCEPersistentDiskVolumeSource. - unique name of the PD resource in GCE; see http://releases.k8s.io/v1.0.4/docs/volumes.md#gcepersistentdisk + Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :param pd_name: The pd_name of this V1GCEPersistentDiskVolumeSource. :type: str @@ -79,7 +79,7 @@ class V1GCEPersistentDiskVolumeSource(object): def fs_type(self): """ Gets the fs_type of this V1GCEPersistentDiskVolumeSource. - file system type to mount, such as ext4, xfs, ntfs; see http://releases.k8s.io/v1.0.4/docs/volumes.md#gcepersistentdisk + 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: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :return: The fs_type of this V1GCEPersistentDiskVolumeSource. :rtype: str @@ -90,7 +90,7 @@ class V1GCEPersistentDiskVolumeSource(object): def fs_type(self, fs_type): """ Sets the fs_type of this V1GCEPersistentDiskVolumeSource. - file system type to mount, such as ext4, xfs, ntfs; see http://releases.k8s.io/v1.0.4/docs/volumes.md#gcepersistentdisk + 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: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :param fs_type: The fs_type of this V1GCEPersistentDiskVolumeSource. :type: str @@ -101,7 +101,7 @@ class V1GCEPersistentDiskVolumeSource(object): def partition(self): """ Gets the partition of this V1GCEPersistentDiskVolumeSource. - partition on the disk to mount (e.g., '1' for /dev/sda1); if omitted the plain device name (e.g., /dev/sda) will be mounted; see http://releases.k8s.io/v1.0.4/docs/volumes.md#gcepersistentdisk + 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: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :return: The partition of this V1GCEPersistentDiskVolumeSource. :rtype: int @@ -112,7 +112,7 @@ class V1GCEPersistentDiskVolumeSource(object): def partition(self, partition): """ Sets the partition of this V1GCEPersistentDiskVolumeSource. - partition on the disk to mount (e.g., '1' for /dev/sda1); if omitted the plain device name (e.g., /dev/sda) will be mounted; see http://releases.k8s.io/v1.0.4/docs/volumes.md#gcepersistentdisk + 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: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :param partition: The partition of this V1GCEPersistentDiskVolumeSource. :type: int @@ -123,7 +123,7 @@ class V1GCEPersistentDiskVolumeSource(object): def read_only(self): """ Gets the read_only of this V1GCEPersistentDiskVolumeSource. - read-only if true, read-write otherwise (false or unspecified); see http://releases.k8s.io/v1.0.4/docs/volumes.md#gcepersistentdisk + ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :return: The read_only of this V1GCEPersistentDiskVolumeSource. :rtype: bool @@ -134,7 +134,7 @@ class V1GCEPersistentDiskVolumeSource(object): def read_only(self, read_only): """ Sets the read_only of this V1GCEPersistentDiskVolumeSource. - read-only if true, read-write otherwise (false or unspecified); see http://releases.k8s.io/v1.0.4/docs/volumes.md#gcepersistentdisk + ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :param read_only: The read_only of this V1GCEPersistentDiskVolumeSource. :type: bool diff --git a/k8sclient/client/models/v1_git_repo_volume_source.py b/k8sclient/client/models/v1_git_repo_volume_source.py index ff567d3..ad69adb 100644 --- a/k8sclient/client/models/v1_git_repo_volume_source.py +++ b/k8sclient/client/models/v1_git_repo_volume_source.py @@ -36,22 +36,25 @@ class V1GitRepoVolumeSource(object): """ self.swagger_types = { 'repository': 'str', - 'revision': 'str' + 'revision': 'str', + 'directory': 'str' } self.attribute_map = { 'repository': 'repository', - 'revision': 'revision' + 'revision': 'revision', + 'directory': 'directory' } self._repository = None self._revision = None + self._directory = None @property def repository(self): """ Gets the repository of this V1GitRepoVolumeSource. - repository URL + Repository URL :return: The repository of this V1GitRepoVolumeSource. :rtype: str @@ -62,7 +65,7 @@ class V1GitRepoVolumeSource(object): def repository(self, repository): """ Sets the repository of this V1GitRepoVolumeSource. - repository URL + Repository URL :param repository: The repository of this V1GitRepoVolumeSource. :type: str @@ -73,7 +76,7 @@ class V1GitRepoVolumeSource(object): def revision(self): """ Gets the revision of this V1GitRepoVolumeSource. - commit hash for the specified revision + Commit hash for the specified revision. :return: The revision of this V1GitRepoVolumeSource. :rtype: str @@ -84,13 +87,35 @@ class V1GitRepoVolumeSource(object): def revision(self, revision): """ Sets the revision of this V1GitRepoVolumeSource. - commit hash for the specified revision + Commit hash for the specified revision. :param revision: The revision of this V1GitRepoVolumeSource. :type: str """ self._revision = revision + @property + def directory(self): + """ + Gets the directory of this V1GitRepoVolumeSource. + 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. + + :return: The directory of this V1GitRepoVolumeSource. + :rtype: str + """ + return self._directory + + @directory.setter + def directory(self, directory): + """ + Sets the directory of this V1GitRepoVolumeSource. + 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. + + :param directory: The directory of this V1GitRepoVolumeSource. + :type: str + """ + self._directory = directory + def to_dict(self): """ Return model properties dict diff --git a/k8sclient/client/models/v1_glusterfs_volume_source.py b/k8sclient/client/models/v1_glusterfs_volume_source.py index 49b0b46..a7429d4 100644 --- a/k8sclient/client/models/v1_glusterfs_volume_source.py +++ b/k8sclient/client/models/v1_glusterfs_volume_source.py @@ -54,7 +54,7 @@ class V1GlusterfsVolumeSource(object): def endpoints(self): """ Gets the endpoints of this V1GlusterfsVolumeSource. - gluster hosts endpoints name; see http://releases.k8s.io/v1.0.4/examples/glusterfs/README.md#create-a-pod + EndpointsName is the endpoint name that details Glusterfs topology. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md#create-a-pod :return: The endpoints of this V1GlusterfsVolumeSource. :rtype: str @@ -65,7 +65,7 @@ class V1GlusterfsVolumeSource(object): def endpoints(self, endpoints): """ Sets the endpoints of this V1GlusterfsVolumeSource. - gluster hosts endpoints name; see http://releases.k8s.io/v1.0.4/examples/glusterfs/README.md#create-a-pod + EndpointsName is the endpoint name that details Glusterfs topology. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md#create-a-pod :param endpoints: The endpoints of this V1GlusterfsVolumeSource. :type: str @@ -76,7 +76,7 @@ class V1GlusterfsVolumeSource(object): def path(self): """ Gets the path of this V1GlusterfsVolumeSource. - path to gluster volume; see http://releases.k8s.io/v1.0.4/examples/glusterfs/README.md#create-a-pod + Path is the Glusterfs volume path. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md#create-a-pod :return: The path of this V1GlusterfsVolumeSource. :rtype: str @@ -87,7 +87,7 @@ class V1GlusterfsVolumeSource(object): def path(self, path): """ Sets the path of this V1GlusterfsVolumeSource. - path to gluster volume; see http://releases.k8s.io/v1.0.4/examples/glusterfs/README.md#create-a-pod + Path is the Glusterfs volume path. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md#create-a-pod :param path: The path of this V1GlusterfsVolumeSource. :type: str @@ -98,7 +98,7 @@ class V1GlusterfsVolumeSource(object): def read_only(self): """ Gets the read_only of this V1GlusterfsVolumeSource. - glusterfs volume to be mounted with read-only permissions; see http://releases.k8s.io/v1.0.4/examples/glusterfs/README.md#create-a-pod + ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md#create-a-pod :return: The read_only of this V1GlusterfsVolumeSource. :rtype: bool @@ -109,7 +109,7 @@ class V1GlusterfsVolumeSource(object): def read_only(self, read_only): """ Sets the read_only of this V1GlusterfsVolumeSource. - glusterfs volume to be mounted with read-only permissions; see http://releases.k8s.io/v1.0.4/examples/glusterfs/README.md#create-a-pod + ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md#create-a-pod :param read_only: The read_only of this V1GlusterfsVolumeSource. :type: bool diff --git a/k8sclient/client/models/v1_handler.py b/k8sclient/client/models/v1_handler.py index 9d5a7aa..fa44e9a 100644 --- a/k8sclient/client/models/v1_handler.py +++ b/k8sclient/client/models/v1_handler.py @@ -54,7 +54,7 @@ class V1Handler(object): def _exec(self): """ Gets the _exec of this V1Handler. - exec-based handler + One and only one of the following should be specified. Exec specifies the action to take. :return: The _exec of this V1Handler. :rtype: V1ExecAction @@ -65,7 +65,7 @@ class V1Handler(object): def _exec(self, _exec): """ Sets the _exec of this V1Handler. - exec-based handler + One and only one of the following should be specified. Exec specifies the action to take. :param _exec: The _exec of this V1Handler. :type: V1ExecAction @@ -76,7 +76,7 @@ class V1Handler(object): def http_get(self): """ Gets the http_get of this V1Handler. - HTTP-based handler + HTTPGet specifies the http request to perform. :return: The http_get of this V1Handler. :rtype: V1HTTPGetAction @@ -87,7 +87,7 @@ class V1Handler(object): def http_get(self, http_get): """ Sets the http_get of this V1Handler. - HTTP-based handler + HTTPGet specifies the http request to perform. :param http_get: The http_get of this V1Handler. :type: V1HTTPGetAction @@ -98,7 +98,7 @@ class V1Handler(object): def tcp_socket(self): """ Gets the tcp_socket of this V1Handler. - TCP-based handler; TCP hooks not yet supported + TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported :return: The tcp_socket of this V1Handler. :rtype: V1TCPSocketAction @@ -109,7 +109,7 @@ class V1Handler(object): def tcp_socket(self, tcp_socket): """ Sets the tcp_socket of this V1Handler. - TCP-based handler; TCP hooks not yet supported + TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported :param tcp_socket: The tcp_socket of this V1Handler. :type: V1TCPSocketAction diff --git a/k8sclient/client/models/v1_host_path_volume_source.py b/k8sclient/client/models/v1_host_path_volume_source.py index 81113c2..e8cce77 100644 --- a/k8sclient/client/models/v1_host_path_volume_source.py +++ b/k8sclient/client/models/v1_host_path_volume_source.py @@ -48,7 +48,7 @@ class V1HostPathVolumeSource(object): def path(self): """ Gets the path of this V1HostPathVolumeSource. - path of the directory on the host; see http://releases.k8s.io/v1.0.4/docs/volumes.md#hostpath + Path of the directory on the host. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#hostpath :return: The path of this V1HostPathVolumeSource. :rtype: str @@ -59,7 +59,7 @@ class V1HostPathVolumeSource(object): def path(self, path): """ Sets the path of this V1HostPathVolumeSource. - path of the directory on the host; see http://releases.k8s.io/v1.0.4/docs/volumes.md#hostpath + Path of the directory on the host. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#hostpath :param path: The path of this V1HostPathVolumeSource. :type: str diff --git a/k8sclient/client/models/v1_http_get_action.py b/k8sclient/client/models/v1_http_get_action.py index 427245f..09be3fb 100644 --- a/k8sclient/client/models/v1_http_get_action.py +++ b/k8sclient/client/models/v1_http_get_action.py @@ -38,26 +38,29 @@ class V1HTTPGetAction(object): 'path': 'str', 'port': 'str', 'host': 'str', - 'scheme': 'str' + 'scheme': 'str', + 'http_headers': 'list[V1HTTPHeader]' } self.attribute_map = { 'path': 'path', 'port': 'port', 'host': 'host', - 'scheme': 'scheme' + 'scheme': 'scheme', + 'http_headers': 'httpHeaders' } self._path = None self._port = None self._host = None self._scheme = None + self._http_headers = None @property def path(self): """ Gets the path of this V1HTTPGetAction. - path to access on the HTTP server + Path to access on the HTTP server. :return: The path of this V1HTTPGetAction. :rtype: str @@ -68,7 +71,7 @@ class V1HTTPGetAction(object): def path(self, path): """ Sets the path of this V1HTTPGetAction. - path to access on the HTTP server + Path to access on the HTTP server. :param path: The path of this V1HTTPGetAction. :type: str @@ -79,7 +82,7 @@ class V1HTTPGetAction(object): def port(self): """ Gets the port of this V1HTTPGetAction. - number or name of the port to access on the container; number must be in the range 1 to 65535; name must be an IANA_SVC_NAME + Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. :return: The port of this V1HTTPGetAction. :rtype: str @@ -90,7 +93,7 @@ class V1HTTPGetAction(object): def port(self, port): """ Sets the port of this V1HTTPGetAction. - number or name of the port to access on the container; number must be in the range 1 to 65535; name must be an IANA_SVC_NAME + Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. :param port: The port of this V1HTTPGetAction. :type: str @@ -101,7 +104,7 @@ class V1HTTPGetAction(object): def host(self): """ Gets the host of this V1HTTPGetAction. - hostname to connect to; defaults to pod IP + Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead. :return: The host of this V1HTTPGetAction. :rtype: str @@ -112,7 +115,7 @@ class V1HTTPGetAction(object): def host(self, host): """ Sets the host of this V1HTTPGetAction. - hostname to connect to; defaults to pod IP + Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead. :param host: The host of this V1HTTPGetAction. :type: str @@ -123,7 +126,7 @@ class V1HTTPGetAction(object): def scheme(self): """ Gets the scheme of this V1HTTPGetAction. - scheme to connect with, must be HTTP or HTTPS, defaults to HTTP + Scheme to use for connecting to the host. Defaults to HTTP. :return: The scheme of this V1HTTPGetAction. :rtype: str @@ -134,13 +137,35 @@ class V1HTTPGetAction(object): def scheme(self, scheme): """ Sets the scheme of this V1HTTPGetAction. - scheme to connect with, must be HTTP or HTTPS, defaults to HTTP + Scheme to use for connecting to the host. Defaults to HTTP. :param scheme: The scheme of this V1HTTPGetAction. :type: str """ self._scheme = scheme + @property + def http_headers(self): + """ + Gets the http_headers of this V1HTTPGetAction. + Custom headers to set in the request. HTTP allows repeated headers. + + :return: The http_headers of this V1HTTPGetAction. + :rtype: list[V1HTTPHeader] + """ + return self._http_headers + + @http_headers.setter + def http_headers(self, http_headers): + """ + Sets the http_headers of this V1HTTPGetAction. + Custom headers to set in the request. HTTP allows repeated headers. + + :param http_headers: The http_headers of this V1HTTPGetAction. + :type: list[V1HTTPHeader] + """ + self._http_headers = http_headers + def to_dict(self): """ Return model properties dict diff --git a/k8sclient/client/models/v1_http_header.py b/k8sclient/client/models/v1_http_header.py new file mode 100644 index 0000000..0ba6498 --- /dev/null +++ b/k8sclient/client/models/v1_http_header.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1HTTPHeader(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'name': 'str', + 'value': 'str' + } + + self.attribute_map = { + 'name': 'name', + 'value': 'value' + } + + self._name = None + self._value = None + + @property + def name(self): + """ + Gets the name of this V1HTTPHeader. + The header field name + + :return: The name of this V1HTTPHeader. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1HTTPHeader. + The header field name + + :param name: The name of this V1HTTPHeader. + :type: str + """ + self._name = name + + @property + def value(self): + """ + Gets the value of this V1HTTPHeader. + The header field value + + :return: The value of this V1HTTPHeader. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """ + Sets the value of this V1HTTPHeader. + The header field value + + :param value: The value of this V1HTTPHeader. + :type: str + """ + self._value = value + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/k8sclient/client/models/v1_iscsi_volume_source.py b/k8sclient/client/models/v1_iscsi_volume_source.py index e4a7317..4a8af65 100644 --- a/k8sclient/client/models/v1_iscsi_volume_source.py +++ b/k8sclient/client/models/v1_iscsi_volume_source.py @@ -38,6 +38,7 @@ class V1ISCSIVolumeSource(object): 'target_portal': 'str', 'iqn': 'str', 'lun': 'int', + 'iscsi_interface': 'str', 'fs_type': 'str', 'read_only': 'bool' } @@ -46,6 +47,7 @@ class V1ISCSIVolumeSource(object): 'target_portal': 'targetPortal', 'iqn': 'iqn', 'lun': 'lun', + 'iscsi_interface': 'iscsiInterface', 'fs_type': 'fsType', 'read_only': 'readOnly' } @@ -53,6 +55,7 @@ class V1ISCSIVolumeSource(object): self._target_portal = None self._iqn = None self._lun = None + self._iscsi_interface = None self._fs_type = None self._read_only = None @@ -60,7 +63,7 @@ class V1ISCSIVolumeSource(object): def target_portal(self): """ Gets the target_portal of this V1ISCSIVolumeSource. - iSCSI target portal + 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). :return: The target_portal of this V1ISCSIVolumeSource. :rtype: str @@ -71,7 +74,7 @@ class V1ISCSIVolumeSource(object): def target_portal(self, target_portal): """ Sets the target_portal of this V1ISCSIVolumeSource. - iSCSI target portal + 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). :param target_portal: The target_portal of this V1ISCSIVolumeSource. :type: str @@ -82,7 +85,7 @@ class V1ISCSIVolumeSource(object): def iqn(self): """ Gets the iqn of this V1ISCSIVolumeSource. - iSCSI Qualified Name + Target iSCSI Qualified Name. :return: The iqn of this V1ISCSIVolumeSource. :rtype: str @@ -93,7 +96,7 @@ class V1ISCSIVolumeSource(object): def iqn(self, iqn): """ Sets the iqn of this V1ISCSIVolumeSource. - iSCSI Qualified Name + Target iSCSI Qualified Name. :param iqn: The iqn of this V1ISCSIVolumeSource. :type: str @@ -104,7 +107,7 @@ class V1ISCSIVolumeSource(object): def lun(self): """ Gets the lun of this V1ISCSIVolumeSource. - iscsi target lun number + iSCSI target lun number. :return: The lun of this V1ISCSIVolumeSource. :rtype: int @@ -115,18 +118,40 @@ class V1ISCSIVolumeSource(object): def lun(self, lun): """ Sets the lun of this V1ISCSIVolumeSource. - iscsi target lun number + iSCSI target lun number. :param lun: The lun of this V1ISCSIVolumeSource. :type: int """ self._lun = lun + @property + def iscsi_interface(self): + """ + Gets the iscsi_interface of this V1ISCSIVolumeSource. + Optional: Defaults to 'default' (tcp). iSCSI interface name that uses an iSCSI transport. + + :return: The iscsi_interface of this V1ISCSIVolumeSource. + :rtype: str + """ + return self._iscsi_interface + + @iscsi_interface.setter + def iscsi_interface(self, iscsi_interface): + """ + Sets the iscsi_interface of this V1ISCSIVolumeSource. + Optional: Defaults to 'default' (tcp). iSCSI interface name that uses an iSCSI transport. + + :param iscsi_interface: The iscsi_interface of this V1ISCSIVolumeSource. + :type: str + """ + self._iscsi_interface = iscsi_interface + @property def fs_type(self): """ Gets the fs_type of this V1ISCSIVolumeSource. - file system type to mount, such as ext4, xfs, ntfs + 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: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#iscsi :return: The fs_type of this V1ISCSIVolumeSource. :rtype: str @@ -137,7 +162,7 @@ class V1ISCSIVolumeSource(object): def fs_type(self, fs_type): """ Sets the fs_type of this V1ISCSIVolumeSource. - file system type to mount, such as ext4, xfs, ntfs + 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: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#iscsi :param fs_type: The fs_type of this V1ISCSIVolumeSource. :type: str @@ -148,7 +173,7 @@ class V1ISCSIVolumeSource(object): def read_only(self): """ Gets the read_only of this V1ISCSIVolumeSource. - read-only if true, read-write otherwise (false or unspecified) + ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. :return: The read_only of this V1ISCSIVolumeSource. :rtype: bool @@ -159,7 +184,7 @@ class V1ISCSIVolumeSource(object): def read_only(self, read_only): """ Sets the read_only of this V1ISCSIVolumeSource. - read-only if true, read-write otherwise (false or unspecified) + ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. :param read_only: The read_only of this V1ISCSIVolumeSource. :type: bool diff --git a/k8sclient/client/models/v1_key_to_path.py b/k8sclient/client/models/v1_key_to_path.py new file mode 100644 index 0000000..863d754 --- /dev/null +++ b/k8sclient/client/models/v1_key_to_path.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1KeyToPath(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'key': 'str', + 'path': 'str' + } + + self.attribute_map = { + 'key': 'key', + 'path': 'path' + } + + self._key = None + self._path = None + + @property + def key(self): + """ + Gets the key of this V1KeyToPath. + The key to project. + + :return: The key of this V1KeyToPath. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """ + Sets the key of this V1KeyToPath. + The key to project. + + :param key: The key of this V1KeyToPath. + :type: str + """ + self._key = key + + @property + def path(self): + """ + Gets the path of this V1KeyToPath. + 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 '..'. + + :return: The path of this V1KeyToPath. + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """ + Sets the path of this V1KeyToPath. + 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 '..'. + + :param path: The path of this V1KeyToPath. + :type: str + """ + self._path = path + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/k8sclient/client/models/v1_lifecycle.py b/k8sclient/client/models/v1_lifecycle.py index 5d88fb6..07af6db 100644 --- a/k8sclient/client/models/v1_lifecycle.py +++ b/k8sclient/client/models/v1_lifecycle.py @@ -51,7 +51,7 @@ class V1Lifecycle(object): def post_start(self): """ Gets the post_start of this V1Lifecycle. - called immediately after a container is started; if the handler fails, the container is terminated and restarted according to its restart policy; other management of the container blocks until the hook completes; see http://releases.k8s.io/v1.0.4/docs/container-environment.md#hook-details + PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: http://releases.k8s.io/release-1.2/docs/user-guide/container-environment.md#hook-details :return: The post_start of this V1Lifecycle. :rtype: V1Handler @@ -62,7 +62,7 @@ class V1Lifecycle(object): def post_start(self, post_start): """ Sets the post_start of this V1Lifecycle. - called immediately after a container is started; if the handler fails, the container is terminated and restarted according to its restart policy; other management of the container blocks until the hook completes; see http://releases.k8s.io/v1.0.4/docs/container-environment.md#hook-details + PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: http://releases.k8s.io/release-1.2/docs/user-guide/container-environment.md#hook-details :param post_start: The post_start of this V1Lifecycle. :type: V1Handler @@ -73,7 +73,7 @@ class V1Lifecycle(object): def pre_stop(self): """ Gets the pre_stop of this V1Lifecycle. - called before a container is terminated; the container is terminated after the handler completes; other management of the container blocks until the hook completes; see http://releases.k8s.io/v1.0.4/docs/container-environment.md#hook-details + PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. Other management of the container blocks until the hook completes. More info: http://releases.k8s.io/release-1.2/docs/user-guide/container-environment.md#hook-details :return: The pre_stop of this V1Lifecycle. :rtype: V1Handler @@ -84,7 +84,7 @@ class V1Lifecycle(object): def pre_stop(self, pre_stop): """ Sets the pre_stop of this V1Lifecycle. - called before a container is terminated; the container is terminated after the handler completes; other management of the container blocks until the hook completes; see http://releases.k8s.io/v1.0.4/docs/container-environment.md#hook-details + PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. Other management of the container blocks until the hook completes. More info: http://releases.k8s.io/release-1.2/docs/user-guide/container-environment.md#hook-details :param pre_stop: The pre_stop of this V1Lifecycle. :type: V1Handler diff --git a/k8sclient/client/models/v1_limit_range.py b/k8sclient/client/models/v1_limit_range.py index f97c494..2cf462f 100644 --- a/k8sclient/client/models/v1_limit_range.py +++ b/k8sclient/client/models/v1_limit_range.py @@ -57,7 +57,7 @@ class V1LimitRange(object): def kind(self): """ Gets the kind of this V1LimitRange. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1LimitRange. :rtype: str @@ -68,7 +68,7 @@ class V1LimitRange(object): def kind(self, kind): """ Sets the kind of this V1LimitRange. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1LimitRange. :type: str @@ -79,7 +79,7 @@ class V1LimitRange(object): def api_version(self): """ Gets the api_version of this V1LimitRange. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1LimitRange. :rtype: str @@ -90,7 +90,7 @@ class V1LimitRange(object): def api_version(self, api_version): """ Sets the api_version of this V1LimitRange. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1LimitRange. :type: str @@ -101,7 +101,7 @@ class V1LimitRange(object): def metadata(self): """ Gets the metadata of this V1LimitRange. - standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1LimitRange. :rtype: V1ObjectMeta @@ -112,7 +112,7 @@ class V1LimitRange(object): def metadata(self, metadata): """ Sets the metadata of this V1LimitRange. - standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1LimitRange. :type: V1ObjectMeta @@ -123,7 +123,7 @@ class V1LimitRange(object): def spec(self): """ Gets the spec of this V1LimitRange. - spec defines the limits enforced; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + Spec defines the limits enforced. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The spec of this V1LimitRange. :rtype: V1LimitRangeSpec @@ -134,7 +134,7 @@ class V1LimitRange(object): def spec(self, spec): """ Sets the spec of this V1LimitRange. - spec defines the limits enforced; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + Spec defines the limits enforced. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param spec: The spec of this V1LimitRange. :type: V1LimitRangeSpec diff --git a/k8sclient/client/models/v1_limit_range_item.py b/k8sclient/client/models/v1_limit_range_item.py index 368728c..64e2a5c 100644 --- a/k8sclient/client/models/v1_limit_range_item.py +++ b/k8sclient/client/models/v1_limit_range_item.py @@ -36,28 +36,34 @@ class V1LimitRangeItem(object): """ self.swagger_types = { 'type': 'str', - 'max': 'str', - 'min': 'str', - 'default': 'str' + 'max': 'object', + 'min': 'object', + 'default': 'object', + 'default_request': 'object', + 'max_limit_request_ratio': 'object' } self.attribute_map = { 'type': 'type', 'max': 'max', 'min': 'min', - 'default': 'default' + 'default': 'default', + 'default_request': 'defaultRequest', + 'max_limit_request_ratio': 'maxLimitRequestRatio' } self._type = None self._max = None self._min = None self._default = None + self._default_request = None + self._max_limit_request_ratio = None @property def type(self): """ Gets the type of this V1LimitRangeItem. - type of resource that this limit applies to + Type of resource that this limit applies to. :return: The type of this V1LimitRangeItem. :rtype: str @@ -68,7 +74,7 @@ class V1LimitRangeItem(object): def type(self, type): """ Sets the type of this V1LimitRangeItem. - type of resource that this limit applies to + Type of resource that this limit applies to. :param type: The type of this V1LimitRangeItem. :type: str @@ -79,10 +85,10 @@ class V1LimitRangeItem(object): def max(self): """ Gets the max of this V1LimitRangeItem. - max usage constraints on this kind by resource name + Max usage constraints on this kind by resource name. :return: The max of this V1LimitRangeItem. - :rtype: str + :rtype: object """ return self._max @@ -90,10 +96,10 @@ class V1LimitRangeItem(object): def max(self, max): """ Sets the max of this V1LimitRangeItem. - max usage constraints on this kind by resource name + Max usage constraints on this kind by resource name. :param max: The max of this V1LimitRangeItem. - :type: str + :type: object """ self._max = max @@ -101,10 +107,10 @@ class V1LimitRangeItem(object): def min(self): """ Gets the min of this V1LimitRangeItem. - min usage constraints on this kind by resource name + Min usage constraints on this kind by resource name. :return: The min of this V1LimitRangeItem. - :rtype: str + :rtype: object """ return self._min @@ -112,10 +118,10 @@ class V1LimitRangeItem(object): def min(self, min): """ Sets the min of this V1LimitRangeItem. - min usage constraints on this kind by resource name + Min usage constraints on this kind by resource name. :param min: The min of this V1LimitRangeItem. - :type: str + :type: object """ self._min = min @@ -123,10 +129,10 @@ class V1LimitRangeItem(object): def default(self): """ Gets the default of this V1LimitRangeItem. - default values on this kind by resource name if omitted + Default resource requirement limit value by resource name if resource limit is omitted. :return: The default of this V1LimitRangeItem. - :rtype: str + :rtype: object """ return self._default @@ -134,13 +140,57 @@ class V1LimitRangeItem(object): def default(self, default): """ Sets the default of this V1LimitRangeItem. - default values on this kind by resource name if omitted + Default resource requirement limit value by resource name if resource limit is omitted. :param default: The default of this V1LimitRangeItem. - :type: str + :type: object """ self._default = default + @property + def default_request(self): + """ + Gets the default_request of this V1LimitRangeItem. + DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. + + :return: The default_request of this V1LimitRangeItem. + :rtype: object + """ + return self._default_request + + @default_request.setter + def default_request(self, default_request): + """ + Sets the default_request of this V1LimitRangeItem. + DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. + + :param default_request: The default_request of this V1LimitRangeItem. + :type: object + """ + self._default_request = default_request + + @property + def max_limit_request_ratio(self): + """ + Gets the max_limit_request_ratio of this V1LimitRangeItem. + MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. + + :return: The max_limit_request_ratio of this V1LimitRangeItem. + :rtype: object + """ + return self._max_limit_request_ratio + + @max_limit_request_ratio.setter + def max_limit_request_ratio(self, max_limit_request_ratio): + """ + Sets the max_limit_request_ratio of this V1LimitRangeItem. + MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. + + :param max_limit_request_ratio: The max_limit_request_ratio of this V1LimitRangeItem. + :type: object + """ + self._max_limit_request_ratio = max_limit_request_ratio + def to_dict(self): """ Return model properties dict diff --git a/k8sclient/client/models/v1_limit_range_list.py b/k8sclient/client/models/v1_limit_range_list.py index 840a34e..f3d3b75 100644 --- a/k8sclient/client/models/v1_limit_range_list.py +++ b/k8sclient/client/models/v1_limit_range_list.py @@ -37,7 +37,7 @@ class V1LimitRangeList(object): self.swagger_types = { 'kind': 'str', 'api_version': 'str', - 'metadata': 'V1ListMeta', + 'metadata': 'UnversionedListMeta', 'items': 'list[V1LimitRange]' } @@ -57,7 +57,7 @@ class V1LimitRangeList(object): def kind(self): """ Gets the kind of this V1LimitRangeList. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1LimitRangeList. :rtype: str @@ -68,7 +68,7 @@ class V1LimitRangeList(object): def kind(self, kind): """ Sets the kind of this V1LimitRangeList. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1LimitRangeList. :type: str @@ -79,7 +79,7 @@ class V1LimitRangeList(object): def api_version(self): """ Gets the api_version of this V1LimitRangeList. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1LimitRangeList. :rtype: str @@ -90,7 +90,7 @@ class V1LimitRangeList(object): def api_version(self, api_version): """ Sets the api_version of this V1LimitRangeList. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1LimitRangeList. :type: str @@ -101,10 +101,10 @@ class V1LimitRangeList(object): def metadata(self): """ Gets the metadata of this V1LimitRangeList. - standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1LimitRangeList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -112,10 +112,10 @@ class V1LimitRangeList(object): def metadata(self, metadata): """ Sets the metadata of this V1LimitRangeList. - standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1LimitRangeList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata @@ -123,7 +123,7 @@ class V1LimitRangeList(object): def items(self): """ Gets the items of this V1LimitRangeList. - items is a list of LimitRange objects; see http://releases.k8s.io/v1.0.4/docs/design/admission_control_limit_range.md + Items is a list of LimitRange objects. More info: http://releases.k8s.io/release-1.2/docs/design/admission_control_limit_range.md :return: The items of this V1LimitRangeList. :rtype: list[V1LimitRange] @@ -134,7 +134,7 @@ class V1LimitRangeList(object): def items(self, items): """ Sets the items of this V1LimitRangeList. - items is a list of LimitRange objects; see http://releases.k8s.io/v1.0.4/docs/design/admission_control_limit_range.md + Items is a list of LimitRange objects. More info: http://releases.k8s.io/release-1.2/docs/design/admission_control_limit_range.md :param items: The items of this V1LimitRangeList. :type: list[V1LimitRange] diff --git a/k8sclient/client/models/v1_limit_range_spec.py b/k8sclient/client/models/v1_limit_range_spec.py index e662a7c..065414f 100644 --- a/k8sclient/client/models/v1_limit_range_spec.py +++ b/k8sclient/client/models/v1_limit_range_spec.py @@ -48,7 +48,7 @@ class V1LimitRangeSpec(object): def limits(self): """ Gets the limits of this V1LimitRangeSpec. - limits is the list of LimitRangeItem objects that are enforced + Limits is the list of LimitRangeItem objects that are enforced. :return: The limits of this V1LimitRangeSpec. :rtype: list[V1LimitRangeItem] @@ -59,7 +59,7 @@ class V1LimitRangeSpec(object): def limits(self, limits): """ Sets the limits of this V1LimitRangeSpec. - limits is the list of LimitRangeItem objects that are enforced + Limits is the list of LimitRangeItem objects that are enforced. :param limits: The limits of this V1LimitRangeSpec. :type: list[V1LimitRangeItem] diff --git a/k8sclient/client/models/v1_load_balancer_ingress.py b/k8sclient/client/models/v1_load_balancer_ingress.py index 10e503a..5f91678 100644 --- a/k8sclient/client/models/v1_load_balancer_ingress.py +++ b/k8sclient/client/models/v1_load_balancer_ingress.py @@ -51,7 +51,7 @@ class V1LoadBalancerIngress(object): def ip(self): """ Gets the ip of this V1LoadBalancerIngress. - IP address of ingress point + IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) :return: The ip of this V1LoadBalancerIngress. :rtype: str @@ -62,7 +62,7 @@ class V1LoadBalancerIngress(object): def ip(self, ip): """ Sets the ip of this V1LoadBalancerIngress. - IP address of ingress point + IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) :param ip: The ip of this V1LoadBalancerIngress. :type: str @@ -73,7 +73,7 @@ class V1LoadBalancerIngress(object): def hostname(self): """ Gets the hostname of this V1LoadBalancerIngress. - hostname of ingress point + Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) :return: The hostname of this V1LoadBalancerIngress. :rtype: str @@ -84,7 +84,7 @@ class V1LoadBalancerIngress(object): def hostname(self, hostname): """ Sets the hostname of this V1LoadBalancerIngress. - hostname of ingress point + Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) :param hostname: The hostname of this V1LoadBalancerIngress. :type: str diff --git a/k8sclient/client/models/v1_load_balancer_status.py b/k8sclient/client/models/v1_load_balancer_status.py index a323138..c468ad4 100644 --- a/k8sclient/client/models/v1_load_balancer_status.py +++ b/k8sclient/client/models/v1_load_balancer_status.py @@ -48,7 +48,7 @@ class V1LoadBalancerStatus(object): def ingress(self): """ Gets the ingress of this V1LoadBalancerStatus. - load-balancer ingress points + Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. :return: The ingress of this V1LoadBalancerStatus. :rtype: list[V1LoadBalancerIngress] @@ -59,7 +59,7 @@ class V1LoadBalancerStatus(object): def ingress(self, ingress): """ Sets the ingress of this V1LoadBalancerStatus. - load-balancer ingress points + Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. :param ingress: The ingress of this V1LoadBalancerStatus. :type: list[V1LoadBalancerIngress] diff --git a/k8sclient/client/models/v1_local_object_reference.py b/k8sclient/client/models/v1_local_object_reference.py index 07d66d2..f804c3a 100644 --- a/k8sclient/client/models/v1_local_object_reference.py +++ b/k8sclient/client/models/v1_local_object_reference.py @@ -48,7 +48,7 @@ class V1LocalObjectReference(object): def name(self): """ Gets the name of this V1LocalObjectReference. - name of the referent; see http://releases.k8s.io/v1.0.4/docs/identifiers.md#names + Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :return: The name of this V1LocalObjectReference. :rtype: str @@ -59,7 +59,7 @@ class V1LocalObjectReference(object): def name(self, name): """ Sets the name of this V1LocalObjectReference. - name of the referent; see http://releases.k8s.io/v1.0.4/docs/identifiers.md#names + Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :param name: The name of this V1LocalObjectReference. :type: str diff --git a/k8sclient/client/models/v1_namespace.py b/k8sclient/client/models/v1_namespace.py index 5f5738b..c14e991 100644 --- a/k8sclient/client/models/v1_namespace.py +++ b/k8sclient/client/models/v1_namespace.py @@ -60,7 +60,7 @@ class V1Namespace(object): def kind(self): """ Gets the kind of this V1Namespace. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1Namespace. :rtype: str @@ -71,7 +71,7 @@ class V1Namespace(object): def kind(self, kind): """ Sets the kind of this V1Namespace. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1Namespace. :type: str @@ -82,7 +82,7 @@ class V1Namespace(object): def api_version(self): """ Gets the api_version of this V1Namespace. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1Namespace. :rtype: str @@ -93,7 +93,7 @@ class V1Namespace(object): def api_version(self, api_version): """ Sets the api_version of this V1Namespace. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1Namespace. :type: str @@ -104,7 +104,7 @@ class V1Namespace(object): def metadata(self): """ Gets the metadata of this V1Namespace. - standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1Namespace. :rtype: V1ObjectMeta @@ -115,7 +115,7 @@ class V1Namespace(object): def metadata(self, metadata): """ Sets the metadata of this V1Namespace. - standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1Namespace. :type: V1ObjectMeta @@ -126,7 +126,7 @@ class V1Namespace(object): def spec(self): """ Gets the spec of this V1Namespace. - spec defines the behavior of the Namespace; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + Spec defines the behavior of the Namespace. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The spec of this V1Namespace. :rtype: V1NamespaceSpec @@ -137,7 +137,7 @@ class V1Namespace(object): def spec(self, spec): """ Sets the spec of this V1Namespace. - spec defines the behavior of the Namespace; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + Spec defines the behavior of the Namespace. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param spec: The spec of this V1Namespace. :type: V1NamespaceSpec @@ -148,7 +148,7 @@ class V1Namespace(object): def status(self): """ Gets the status of this V1Namespace. - status describes the current status of a Namespace; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + Status describes the current status of a Namespace. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The status of this V1Namespace. :rtype: V1NamespaceStatus @@ -159,7 +159,7 @@ class V1Namespace(object): def status(self, status): """ Sets the status of this V1Namespace. - status describes the current status of a Namespace; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + Status describes the current status of a Namespace. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param status: The status of this V1Namespace. :type: V1NamespaceStatus diff --git a/k8sclient/client/models/v1_namespace_list.py b/k8sclient/client/models/v1_namespace_list.py index cae345c..2d7ace2 100644 --- a/k8sclient/client/models/v1_namespace_list.py +++ b/k8sclient/client/models/v1_namespace_list.py @@ -37,7 +37,7 @@ class V1NamespaceList(object): self.swagger_types = { 'kind': 'str', 'api_version': 'str', - 'metadata': 'V1ListMeta', + 'metadata': 'UnversionedListMeta', 'items': 'list[V1Namespace]' } @@ -57,7 +57,7 @@ class V1NamespaceList(object): def kind(self): """ Gets the kind of this V1NamespaceList. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1NamespaceList. :rtype: str @@ -68,7 +68,7 @@ class V1NamespaceList(object): def kind(self, kind): """ Sets the kind of this V1NamespaceList. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1NamespaceList. :type: str @@ -79,7 +79,7 @@ class V1NamespaceList(object): def api_version(self): """ Gets the api_version of this V1NamespaceList. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1NamespaceList. :rtype: str @@ -90,7 +90,7 @@ class V1NamespaceList(object): def api_version(self, api_version): """ Sets the api_version of this V1NamespaceList. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1NamespaceList. :type: str @@ -101,10 +101,10 @@ class V1NamespaceList(object): def metadata(self): """ Gets the metadata of this V1NamespaceList. - standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1NamespaceList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -112,10 +112,10 @@ class V1NamespaceList(object): def metadata(self, metadata): """ Sets the metadata of this V1NamespaceList. - standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1NamespaceList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata @@ -123,7 +123,7 @@ class V1NamespaceList(object): def items(self): """ Gets the items of this V1NamespaceList. - items is the list of Namespace objects in the list; see http://releases.k8s.io/v1.0.4/docs/namespaces.md + Items is the list of Namespace objects in the list. More info: http://releases.k8s.io/release-1.2/docs/user-guide/namespaces.md :return: The items of this V1NamespaceList. :rtype: list[V1Namespace] @@ -134,7 +134,7 @@ class V1NamespaceList(object): def items(self, items): """ Sets the items of this V1NamespaceList. - items is the list of Namespace objects in the list; see http://releases.k8s.io/v1.0.4/docs/namespaces.md + Items is the list of Namespace objects in the list. More info: http://releases.k8s.io/release-1.2/docs/user-guide/namespaces.md :param items: The items of this V1NamespaceList. :type: list[V1Namespace] diff --git a/k8sclient/client/models/v1_namespace_spec.py b/k8sclient/client/models/v1_namespace_spec.py index dceaee4..cd02e8a 100644 --- a/k8sclient/client/models/v1_namespace_spec.py +++ b/k8sclient/client/models/v1_namespace_spec.py @@ -48,7 +48,7 @@ class V1NamespaceSpec(object): def finalizers(self): """ Gets the finalizers of this V1NamespaceSpec. - an opaque list of values that must be empty to permanently remove object from storage; see http://releases.k8s.io/v1.0.4/docs/design/namespaces.md#finalizers + Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: http://releases.k8s.io/release-1.2/docs/design/namespaces.md#finalizers :return: The finalizers of this V1NamespaceSpec. :rtype: list[V1FinalizerName] @@ -59,7 +59,7 @@ class V1NamespaceSpec(object): def finalizers(self, finalizers): """ Sets the finalizers of this V1NamespaceSpec. - an opaque list of values that must be empty to permanently remove object from storage; see http://releases.k8s.io/v1.0.4/docs/design/namespaces.md#finalizers + Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: http://releases.k8s.io/release-1.2/docs/design/namespaces.md#finalizers :param finalizers: The finalizers of this V1NamespaceSpec. :type: list[V1FinalizerName] diff --git a/k8sclient/client/models/v1_namespace_status.py b/k8sclient/client/models/v1_namespace_status.py index 280d76a..f277079 100644 --- a/k8sclient/client/models/v1_namespace_status.py +++ b/k8sclient/client/models/v1_namespace_status.py @@ -48,7 +48,7 @@ class V1NamespaceStatus(object): def phase(self): """ Gets the phase of this V1NamespaceStatus. - phase is the current lifecycle phase of the namespace; see http://releases.k8s.io/v1.0.4/docs/design/namespaces.md#phases + Phase is the current lifecycle phase of the namespace. More info: http://releases.k8s.io/release-1.2/docs/design/namespaces.md#phases :return: The phase of this V1NamespaceStatus. :rtype: str @@ -59,7 +59,7 @@ class V1NamespaceStatus(object): def phase(self, phase): """ Sets the phase of this V1NamespaceStatus. - phase is the current lifecycle phase of the namespace; see http://releases.k8s.io/v1.0.4/docs/design/namespaces.md#phases + Phase is the current lifecycle phase of the namespace. More info: http://releases.k8s.io/release-1.2/docs/design/namespaces.md#phases :param phase: The phase of this V1NamespaceStatus. :type: str diff --git a/k8sclient/client/models/v1_nfs_volume_source.py b/k8sclient/client/models/v1_nfs_volume_source.py index ceac2c7..30f8026 100644 --- a/k8sclient/client/models/v1_nfs_volume_source.py +++ b/k8sclient/client/models/v1_nfs_volume_source.py @@ -54,7 +54,7 @@ class V1NFSVolumeSource(object): def server(self): """ Gets the server of this V1NFSVolumeSource. - the hostname or IP address of the NFS server; see http://releases.k8s.io/v1.0.4/docs/volumes.md#nfs + Server is the hostname or IP address of the NFS server. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs :return: The server of this V1NFSVolumeSource. :rtype: str @@ -65,7 +65,7 @@ class V1NFSVolumeSource(object): def server(self, server): """ Sets the server of this V1NFSVolumeSource. - the hostname or IP address of the NFS server; see http://releases.k8s.io/v1.0.4/docs/volumes.md#nfs + Server is the hostname or IP address of the NFS server. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs :param server: The server of this V1NFSVolumeSource. :type: str @@ -76,7 +76,7 @@ class V1NFSVolumeSource(object): def path(self): """ Gets the path of this V1NFSVolumeSource. - the path that is exported by the NFS server; see http://releases.k8s.io/v1.0.4/docs/volumes.md#nfs + Path that is exported by the NFS server. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs :return: The path of this V1NFSVolumeSource. :rtype: str @@ -87,7 +87,7 @@ class V1NFSVolumeSource(object): def path(self, path): """ Sets the path of this V1NFSVolumeSource. - the path that is exported by the NFS server; see http://releases.k8s.io/v1.0.4/docs/volumes.md#nfs + Path that is exported by the NFS server. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs :param path: The path of this V1NFSVolumeSource. :type: str @@ -98,7 +98,7 @@ class V1NFSVolumeSource(object): def read_only(self): """ Gets the read_only of this V1NFSVolumeSource. - forces the NFS export to be mounted with read-only permissions; see http://releases.k8s.io/v1.0.4/docs/volumes.md#nfs + ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs :return: The read_only of this V1NFSVolumeSource. :rtype: bool @@ -109,7 +109,7 @@ class V1NFSVolumeSource(object): def read_only(self, read_only): """ Sets the read_only of this V1NFSVolumeSource. - forces the NFS export to be mounted with read-only permissions; see http://releases.k8s.io/v1.0.4/docs/volumes.md#nfs + ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs :param read_only: The read_only of this V1NFSVolumeSource. :type: bool diff --git a/k8sclient/client/models/v1_node.py b/k8sclient/client/models/v1_node.py index c77deab..d94f6e6 100644 --- a/k8sclient/client/models/v1_node.py +++ b/k8sclient/client/models/v1_node.py @@ -60,7 +60,7 @@ class V1Node(object): def kind(self): """ Gets the kind of this V1Node. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1Node. :rtype: str @@ -71,7 +71,7 @@ class V1Node(object): def kind(self, kind): """ Sets the kind of this V1Node. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1Node. :type: str @@ -82,7 +82,7 @@ class V1Node(object): def api_version(self): """ Gets the api_version of this V1Node. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1Node. :rtype: str @@ -93,7 +93,7 @@ class V1Node(object): def api_version(self, api_version): """ Sets the api_version of this V1Node. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1Node. :type: str @@ -104,7 +104,7 @@ class V1Node(object): def metadata(self): """ Gets the metadata of this V1Node. - standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1Node. :rtype: V1ObjectMeta @@ -115,7 +115,7 @@ class V1Node(object): def metadata(self, metadata): """ Sets the metadata of this V1Node. - standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1Node. :type: V1ObjectMeta @@ -126,7 +126,7 @@ class V1Node(object): def spec(self): """ Gets the spec of this V1Node. - specification of a node; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + Spec defines the behavior of a node. http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The spec of this V1Node. :rtype: V1NodeSpec @@ -137,7 +137,7 @@ class V1Node(object): def spec(self, spec): """ Sets the spec of this V1Node. - specification of a node; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + Spec defines the behavior of a node. http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param spec: The spec of this V1Node. :type: V1NodeSpec @@ -148,7 +148,7 @@ class V1Node(object): def status(self): """ Gets the status of this V1Node. - most recently observed status of the node; populated by the system, read-only; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + Most recently observed status of the node. Populated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The status of this V1Node. :rtype: V1NodeStatus @@ -159,7 +159,7 @@ class V1Node(object): def status(self, status): """ Sets the status of this V1Node. - most recently observed status of the node; populated by the system, read-only; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + Most recently observed status of the node. Populated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param status: The status of this V1Node. :type: V1NodeStatus diff --git a/k8sclient/client/models/v1_node_address.py b/k8sclient/client/models/v1_node_address.py index d82ce8b..cc608d2 100644 --- a/k8sclient/client/models/v1_node_address.py +++ b/k8sclient/client/models/v1_node_address.py @@ -51,7 +51,7 @@ class V1NodeAddress(object): def type(self): """ Gets the type of this V1NodeAddress. - node address type, one of Hostname, ExternalIP or InternalIP + Node address type, one of Hostname, ExternalIP or InternalIP. :return: The type of this V1NodeAddress. :rtype: str @@ -62,7 +62,7 @@ class V1NodeAddress(object): def type(self, type): """ Sets the type of this V1NodeAddress. - node address type, one of Hostname, ExternalIP or InternalIP + Node address type, one of Hostname, ExternalIP or InternalIP. :param type: The type of this V1NodeAddress. :type: str @@ -73,7 +73,7 @@ class V1NodeAddress(object): def address(self): """ Gets the address of this V1NodeAddress. - the node address + The node address. :return: The address of this V1NodeAddress. :rtype: str @@ -84,7 +84,7 @@ class V1NodeAddress(object): def address(self, address): """ Sets the address of this V1NodeAddress. - the node address + The node address. :param address: The address of this V1NodeAddress. :type: str diff --git a/k8sclient/client/models/v1_node_condition.py b/k8sclient/client/models/v1_node_condition.py index cb4fb16..6616fbc 100644 --- a/k8sclient/client/models/v1_node_condition.py +++ b/k8sclient/client/models/v1_node_condition.py @@ -63,7 +63,7 @@ class V1NodeCondition(object): def type(self): """ Gets the type of this V1NodeCondition. - type of node condition, currently only Ready + Type of node condition. :return: The type of this V1NodeCondition. :rtype: str @@ -74,7 +74,7 @@ class V1NodeCondition(object): def type(self, type): """ Sets the type of this V1NodeCondition. - type of node condition, currently only Ready + Type of node condition. :param type: The type of this V1NodeCondition. :type: str @@ -85,7 +85,7 @@ class V1NodeCondition(object): def status(self): """ Gets the status of this V1NodeCondition. - status of the condition, one of True, False, Unknown + Status of the condition, one of True, False, Unknown. :return: The status of this V1NodeCondition. :rtype: str @@ -96,7 +96,7 @@ class V1NodeCondition(object): def status(self, status): """ Sets the status of this V1NodeCondition. - status of the condition, one of True, False, Unknown + Status of the condition, one of True, False, Unknown. :param status: The status of this V1NodeCondition. :type: str @@ -107,7 +107,7 @@ class V1NodeCondition(object): def last_heartbeat_time(self): """ Gets the last_heartbeat_time of this V1NodeCondition. - last time we got an update on a given condition + Last time we got an update on a given condition. :return: The last_heartbeat_time of this V1NodeCondition. :rtype: str @@ -118,7 +118,7 @@ class V1NodeCondition(object): def last_heartbeat_time(self, last_heartbeat_time): """ Sets the last_heartbeat_time of this V1NodeCondition. - last time we got an update on a given condition + Last time we got an update on a given condition. :param last_heartbeat_time: The last_heartbeat_time of this V1NodeCondition. :type: str @@ -129,7 +129,7 @@ class V1NodeCondition(object): def last_transition_time(self): """ Gets the last_transition_time of this V1NodeCondition. - last time the condition transit from one status to another + Last time the condition transit from one status to another. :return: The last_transition_time of this V1NodeCondition. :rtype: str @@ -140,7 +140,7 @@ class V1NodeCondition(object): def last_transition_time(self, last_transition_time): """ Sets the last_transition_time of this V1NodeCondition. - last time the condition transit from one status to another + Last time the condition transit from one status to another. :param last_transition_time: The last_transition_time of this V1NodeCondition. :type: str @@ -151,7 +151,7 @@ class V1NodeCondition(object): def reason(self): """ Gets the reason of this V1NodeCondition. - (brief) reason for the condition's last transition + (brief) reason for the condition's last transition. :return: The reason of this V1NodeCondition. :rtype: str @@ -162,7 +162,7 @@ class V1NodeCondition(object): def reason(self, reason): """ Sets the reason of this V1NodeCondition. - (brief) reason for the condition's last transition + (brief) reason for the condition's last transition. :param reason: The reason of this V1NodeCondition. :type: str @@ -173,7 +173,7 @@ class V1NodeCondition(object): def message(self): """ Gets the message of this V1NodeCondition. - human readable message indicating details about last transition + Human readable message indicating details about last transition. :return: The message of this V1NodeCondition. :rtype: str @@ -184,7 +184,7 @@ class V1NodeCondition(object): def message(self, message): """ Sets the message of this V1NodeCondition. - human readable message indicating details about last transition + Human readable message indicating details about last transition. :param message: The message of this V1NodeCondition. :type: str diff --git a/k8sclient/client/models/v1_node_daemon_endpoints.py b/k8sclient/client/models/v1_node_daemon_endpoints.py new file mode 100644 index 0000000..c3976f9 --- /dev/null +++ b/k8sclient/client/models/v1_node_daemon_endpoints.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1NodeDaemonEndpoints(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kubelet_endpoint': 'V1DaemonEndpoint' + } + + self.attribute_map = { + 'kubelet_endpoint': 'kubeletEndpoint' + } + + self._kubelet_endpoint = None + + @property + def kubelet_endpoint(self): + """ + Gets the kubelet_endpoint of this V1NodeDaemonEndpoints. + Endpoint on which Kubelet is listening. + + :return: The kubelet_endpoint of this V1NodeDaemonEndpoints. + :rtype: V1DaemonEndpoint + """ + return self._kubelet_endpoint + + @kubelet_endpoint.setter + def kubelet_endpoint(self, kubelet_endpoint): + """ + Sets the kubelet_endpoint of this V1NodeDaemonEndpoints. + Endpoint on which Kubelet is listening. + + :param kubelet_endpoint: The kubelet_endpoint of this V1NodeDaemonEndpoints. + :type: V1DaemonEndpoint + """ + self._kubelet_endpoint = kubelet_endpoint + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/k8sclient/client/models/v1_node_list.py b/k8sclient/client/models/v1_node_list.py index 5d48003..cc7da31 100644 --- a/k8sclient/client/models/v1_node_list.py +++ b/k8sclient/client/models/v1_node_list.py @@ -37,7 +37,7 @@ class V1NodeList(object): self.swagger_types = { 'kind': 'str', 'api_version': 'str', - 'metadata': 'V1ListMeta', + 'metadata': 'UnversionedListMeta', 'items': 'list[V1Node]' } @@ -57,7 +57,7 @@ class V1NodeList(object): def kind(self): """ Gets the kind of this V1NodeList. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1NodeList. :rtype: str @@ -68,7 +68,7 @@ class V1NodeList(object): def kind(self, kind): """ Sets the kind of this V1NodeList. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1NodeList. :type: str @@ -79,7 +79,7 @@ class V1NodeList(object): def api_version(self): """ Gets the api_version of this V1NodeList. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1NodeList. :rtype: str @@ -90,7 +90,7 @@ class V1NodeList(object): def api_version(self, api_version): """ Sets the api_version of this V1NodeList. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1NodeList. :type: str @@ -101,10 +101,10 @@ class V1NodeList(object): def metadata(self): """ Gets the metadata of this V1NodeList. - standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1NodeList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -112,10 +112,10 @@ class V1NodeList(object): def metadata(self, metadata): """ Sets the metadata of this V1NodeList. - standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1NodeList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata @@ -123,7 +123,7 @@ class V1NodeList(object): def items(self): """ Gets the items of this V1NodeList. - list of nodes + List of nodes :return: The items of this V1NodeList. :rtype: list[V1Node] @@ -134,7 +134,7 @@ class V1NodeList(object): def items(self, items): """ Sets the items of this V1NodeList. - list of nodes + List of nodes :param items: The items of this V1NodeList. :type: list[V1Node] diff --git a/k8sclient/client/models/v1_node_spec.py b/k8sclient/client/models/v1_node_spec.py index 9daa958..32eedeb 100644 --- a/k8sclient/client/models/v1_node_spec.py +++ b/k8sclient/client/models/v1_node_spec.py @@ -57,7 +57,7 @@ class V1NodeSpec(object): def pod_cidr(self): """ Gets the pod_cidr of this V1NodeSpec. - pod IP range assigned to the node + PodCIDR represents the pod IP range assigned to the node. :return: The pod_cidr of this V1NodeSpec. :rtype: str @@ -68,7 +68,7 @@ class V1NodeSpec(object): def pod_cidr(self, pod_cidr): """ Sets the pod_cidr of this V1NodeSpec. - pod IP range assigned to the node + PodCIDR represents the pod IP range assigned to the node. :param pod_cidr: The pod_cidr of this V1NodeSpec. :type: str @@ -79,7 +79,7 @@ class V1NodeSpec(object): def external_id(self): """ Gets the external_id of this V1NodeSpec. - deprecated. External ID assigned to the node by some machine database (e.g. a cloud provider). Defaults to node name when empty. + External ID of the node assigned by some machine database (e.g. a cloud provider). Deprecated. :return: The external_id of this V1NodeSpec. :rtype: str @@ -90,7 +90,7 @@ class V1NodeSpec(object): def external_id(self, external_id): """ Sets the external_id of this V1NodeSpec. - deprecated. External ID assigned to the node by some machine database (e.g. a cloud provider). Defaults to node name when empty. + External ID of the node assigned by some machine database (e.g. a cloud provider). Deprecated. :param external_id: The external_id of this V1NodeSpec. :type: str @@ -123,7 +123,7 @@ class V1NodeSpec(object): def unschedulable(self): """ Gets the unschedulable of this V1NodeSpec. - disable pod scheduling on the node; see http://releases.k8s.io/v1.0.4/docs/node.md#manual-node-administration + Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: http://releases.k8s.io/release-1.2/docs/admin/node.md#manual-node-administration\"` :return: The unschedulable of this V1NodeSpec. :rtype: bool @@ -134,7 +134,7 @@ class V1NodeSpec(object): def unschedulable(self, unschedulable): """ Sets the unschedulable of this V1NodeSpec. - disable pod scheduling on the node; see http://releases.k8s.io/v1.0.4/docs/node.md#manual-node-administration + Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: http://releases.k8s.io/release-1.2/docs/admin/node.md#manual-node-administration\"` :param unschedulable: The unschedulable of this V1NodeSpec. :type: bool diff --git a/k8sclient/client/models/v1_node_status.py b/k8sclient/client/models/v1_node_status.py index 848293f..a551db8 100644 --- a/k8sclient/client/models/v1_node_status.py +++ b/k8sclient/client/models/v1_node_status.py @@ -35,35 +35,44 @@ class V1NodeStatus(object): and the value is json key in definition. """ self.swagger_types = { - 'capacity': 'str', + 'capacity': 'object', + 'allocatable': 'object', 'phase': 'str', 'conditions': 'list[V1NodeCondition]', 'addresses': 'list[V1NodeAddress]', - 'node_info': 'V1NodeSystemInfo' + 'daemon_endpoints': 'V1NodeDaemonEndpoints', + 'node_info': 'V1NodeSystemInfo', + 'images': 'list[V1ContainerImage]' } self.attribute_map = { 'capacity': 'capacity', + 'allocatable': 'allocatable', 'phase': 'phase', 'conditions': 'conditions', 'addresses': 'addresses', - 'node_info': 'nodeInfo' + 'daemon_endpoints': 'daemonEndpoints', + 'node_info': 'nodeInfo', + 'images': 'images' } self._capacity = None + self._allocatable = None self._phase = None self._conditions = None self._addresses = None + self._daemon_endpoints = None self._node_info = None + self._images = None @property def capacity(self): """ Gets the capacity of this V1NodeStatus. - compute resource capacity of the node; see http://releases.k8s.io/v1.0.4/docs/compute_resources.md + Capacity represents the total resources of a node. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#capacity for more details. :return: The capacity of this V1NodeStatus. - :rtype: str + :rtype: object """ return self._capacity @@ -71,18 +80,40 @@ class V1NodeStatus(object): def capacity(self, capacity): """ Sets the capacity of this V1NodeStatus. - compute resource capacity of the node; see http://releases.k8s.io/v1.0.4/docs/compute_resources.md + Capacity represents the total resources of a node. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#capacity for more details. :param capacity: The capacity of this V1NodeStatus. - :type: str + :type: object """ self._capacity = capacity + @property + def allocatable(self): + """ + Gets the allocatable of this V1NodeStatus. + Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. + + :return: The allocatable of this V1NodeStatus. + :rtype: object + """ + return self._allocatable + + @allocatable.setter + def allocatable(self, allocatable): + """ + Sets the allocatable of this V1NodeStatus. + Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. + + :param allocatable: The allocatable of this V1NodeStatus. + :type: object + """ + self._allocatable = allocatable + @property def phase(self): """ Gets the phase of this V1NodeStatus. - most recently observed lifecycle phase of the node; see http://releases.k8s.io/v1.0.4/docs/node.md#node-phase + NodePhase is the recently observed lifecycle phase of the node. More info: http://releases.k8s.io/release-1.2/docs/admin/node.md#node-phase :return: The phase of this V1NodeStatus. :rtype: str @@ -93,7 +124,7 @@ class V1NodeStatus(object): def phase(self, phase): """ Sets the phase of this V1NodeStatus. - most recently observed lifecycle phase of the node; see http://releases.k8s.io/v1.0.4/docs/node.md#node-phase + NodePhase is the recently observed lifecycle phase of the node. More info: http://releases.k8s.io/release-1.2/docs/admin/node.md#node-phase :param phase: The phase of this V1NodeStatus. :type: str @@ -104,7 +135,7 @@ class V1NodeStatus(object): def conditions(self): """ Gets the conditions of this V1NodeStatus. - list of node conditions observed; see http://releases.k8s.io/v1.0.4/docs/node.md#node-condition + Conditions is an array of current observed node conditions. More info: http://releases.k8s.io/release-1.2/docs/admin/node.md#node-condition :return: The conditions of this V1NodeStatus. :rtype: list[V1NodeCondition] @@ -115,7 +146,7 @@ class V1NodeStatus(object): def conditions(self, conditions): """ Sets the conditions of this V1NodeStatus. - list of node conditions observed; see http://releases.k8s.io/v1.0.4/docs/node.md#node-condition + Conditions is an array of current observed node conditions. More info: http://releases.k8s.io/release-1.2/docs/admin/node.md#node-condition :param conditions: The conditions of this V1NodeStatus. :type: list[V1NodeCondition] @@ -126,7 +157,7 @@ class V1NodeStatus(object): def addresses(self): """ Gets the addresses of this V1NodeStatus. - list of addresses reachable to the node; see http://releases.k8s.io/v1.0.4/docs/node.md#node-addresses + List of addresses reachable to the node. Queried from cloud provider, if available. More info: http://releases.k8s.io/release-1.2/docs/admin/node.md#node-addresses :return: The addresses of this V1NodeStatus. :rtype: list[V1NodeAddress] @@ -137,18 +168,40 @@ class V1NodeStatus(object): def addresses(self, addresses): """ Sets the addresses of this V1NodeStatus. - list of addresses reachable to the node; see http://releases.k8s.io/v1.0.4/docs/node.md#node-addresses + List of addresses reachable to the node. Queried from cloud provider, if available. More info: http://releases.k8s.io/release-1.2/docs/admin/node.md#node-addresses :param addresses: The addresses of this V1NodeStatus. :type: list[V1NodeAddress] """ self._addresses = addresses + @property + def daemon_endpoints(self): + """ + Gets the daemon_endpoints of this V1NodeStatus. + Endpoints of daemons running on the Node. + + :return: The daemon_endpoints of this V1NodeStatus. + :rtype: V1NodeDaemonEndpoints + """ + return self._daemon_endpoints + + @daemon_endpoints.setter + def daemon_endpoints(self, daemon_endpoints): + """ + Sets the daemon_endpoints of this V1NodeStatus. + Endpoints of daemons running on the Node. + + :param daemon_endpoints: The daemon_endpoints of this V1NodeStatus. + :type: V1NodeDaemonEndpoints + """ + self._daemon_endpoints = daemon_endpoints + @property def node_info(self): """ Gets the node_info of this V1NodeStatus. - set of ids/uuids to uniquely identify the node; see http://releases.k8s.io/v1.0.4/docs/node.md#node-info + Set of ids/uuids to uniquely identify the node. More info: http://releases.k8s.io/release-1.2/docs/admin/node.md#node-info :return: The node_info of this V1NodeStatus. :rtype: V1NodeSystemInfo @@ -159,13 +212,35 @@ class V1NodeStatus(object): def node_info(self, node_info): """ Sets the node_info of this V1NodeStatus. - set of ids/uuids to uniquely identify the node; see http://releases.k8s.io/v1.0.4/docs/node.md#node-info + Set of ids/uuids to uniquely identify the node. More info: http://releases.k8s.io/release-1.2/docs/admin/node.md#node-info :param node_info: The node_info of this V1NodeStatus. :type: V1NodeSystemInfo """ self._node_info = node_info + @property + def images(self): + """ + Gets the images of this V1NodeStatus. + List of container images on this node + + :return: The images of this V1NodeStatus. + :rtype: list[V1ContainerImage] + """ + return self._images + + @images.setter + def images(self, images): + """ + Sets the images of this V1NodeStatus. + List of container images on this node + + :param images: The images of this V1NodeStatus. + :type: list[V1ContainerImage] + """ + self._images = images + def to_dict(self): """ Return model properties dict diff --git a/k8sclient/client/models/v1_node_system_info.py b/k8sclient/client/models/v1_node_system_info.py index bc50459..d17d60a 100644 --- a/k8sclient/client/models/v1_node_system_info.py +++ b/k8sclient/client/models/v1_node_system_info.py @@ -69,7 +69,7 @@ class V1NodeSystemInfo(object): def machine_id(self): """ Gets the machine_id of this V1NodeSystemInfo. - machine-id reported by the node + Machine ID reported by the node. :return: The machine_id of this V1NodeSystemInfo. :rtype: str @@ -80,7 +80,7 @@ class V1NodeSystemInfo(object): def machine_id(self, machine_id): """ Sets the machine_id of this V1NodeSystemInfo. - machine-id reported by the node + Machine ID reported by the node. :param machine_id: The machine_id of this V1NodeSystemInfo. :type: str @@ -91,7 +91,7 @@ class V1NodeSystemInfo(object): def system_uuid(self): """ Gets the system_uuid of this V1NodeSystemInfo. - system-uuid reported by the node + System UUID reported by the node. :return: The system_uuid of this V1NodeSystemInfo. :rtype: str @@ -102,7 +102,7 @@ class V1NodeSystemInfo(object): def system_uuid(self, system_uuid): """ Sets the system_uuid of this V1NodeSystemInfo. - system-uuid reported by the node + System UUID reported by the node. :param system_uuid: The system_uuid of this V1NodeSystemInfo. :type: str @@ -113,7 +113,7 @@ class V1NodeSystemInfo(object): def boot_id(self): """ Gets the boot_id of this V1NodeSystemInfo. - boot id is the boot-id reported by the node + Boot ID reported by the node. :return: The boot_id of this V1NodeSystemInfo. :rtype: str @@ -124,7 +124,7 @@ class V1NodeSystemInfo(object): def boot_id(self, boot_id): """ Sets the boot_id of this V1NodeSystemInfo. - boot id is the boot-id reported by the node + Boot ID reported by the node. :param boot_id: The boot_id of this V1NodeSystemInfo. :type: str @@ -135,7 +135,7 @@ class V1NodeSystemInfo(object): def kernel_version(self): """ Gets the kernel_version of this V1NodeSystemInfo. - Kernel version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64) + Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). :return: The kernel_version of this V1NodeSystemInfo. :rtype: str @@ -146,7 +146,7 @@ class V1NodeSystemInfo(object): def kernel_version(self, kernel_version): """ Sets the kernel_version of this V1NodeSystemInfo. - Kernel version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64) + Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). :param kernel_version: The kernel_version of this V1NodeSystemInfo. :type: str @@ -157,7 +157,7 @@ class V1NodeSystemInfo(object): def os_image(self): """ Gets the os_image of this V1NodeSystemInfo. - OS image used reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)) + OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). :return: The os_image of this V1NodeSystemInfo. :rtype: str @@ -168,7 +168,7 @@ class V1NodeSystemInfo(object): def os_image(self, os_image): """ Sets the os_image of this V1NodeSystemInfo. - OS image used reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)) + OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). :param os_image: The os_image of this V1NodeSystemInfo. :type: str @@ -179,7 +179,7 @@ class V1NodeSystemInfo(object): def container_runtime_version(self): """ Gets the container_runtime_version of this V1NodeSystemInfo. - Container runtime version reported by the node through runtime remote API (e.g. docker://1.5.0) + ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0). :return: The container_runtime_version of this V1NodeSystemInfo. :rtype: str @@ -190,7 +190,7 @@ class V1NodeSystemInfo(object): def container_runtime_version(self, container_runtime_version): """ Sets the container_runtime_version of this V1NodeSystemInfo. - Container runtime version reported by the node through runtime remote API (e.g. docker://1.5.0) + ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0). :param container_runtime_version: The container_runtime_version of this V1NodeSystemInfo. :type: str @@ -201,7 +201,7 @@ class V1NodeSystemInfo(object): def kubelet_version(self): """ Gets the kubelet_version of this V1NodeSystemInfo. - Kubelet version reported by the node + Kubelet Version reported by the node. :return: The kubelet_version of this V1NodeSystemInfo. :rtype: str @@ -212,7 +212,7 @@ class V1NodeSystemInfo(object): def kubelet_version(self, kubelet_version): """ Sets the kubelet_version of this V1NodeSystemInfo. - Kubelet version reported by the node + Kubelet Version reported by the node. :param kubelet_version: The kubelet_version of this V1NodeSystemInfo. :type: str @@ -223,7 +223,7 @@ class V1NodeSystemInfo(object): def kube_proxy_version(self): """ Gets the kube_proxy_version of this V1NodeSystemInfo. - Kube-proxy version reported by the node + KubeProxy Version reported by the node. :return: The kube_proxy_version of this V1NodeSystemInfo. :rtype: str @@ -234,7 +234,7 @@ class V1NodeSystemInfo(object): def kube_proxy_version(self, kube_proxy_version): """ Sets the kube_proxy_version of this V1NodeSystemInfo. - Kube-proxy version reported by the node + KubeProxy Version reported by the node. :param kube_proxy_version: The kube_proxy_version of this V1NodeSystemInfo. :type: str diff --git a/k8sclient/client/models/v1_object_field_selector.py b/k8sclient/client/models/v1_object_field_selector.py index d383835..270a86e 100644 --- a/k8sclient/client/models/v1_object_field_selector.py +++ b/k8sclient/client/models/v1_object_field_selector.py @@ -51,7 +51,7 @@ class V1ObjectFieldSelector(object): def api_version(self): """ Gets the api_version of this V1ObjectFieldSelector. - version of the schema that fieldPath is written in terms of; defaults to v1 + Version of the schema the FieldPath is written in terms of, defaults to \"v1\". :return: The api_version of this V1ObjectFieldSelector. :rtype: str @@ -62,7 +62,7 @@ class V1ObjectFieldSelector(object): def api_version(self, api_version): """ Sets the api_version of this V1ObjectFieldSelector. - version of the schema that fieldPath is written in terms of; defaults to v1 + Version of the schema the FieldPath is written in terms of, defaults to \"v1\". :param api_version: The api_version of this V1ObjectFieldSelector. :type: str @@ -73,7 +73,7 @@ class V1ObjectFieldSelector(object): def field_path(self): """ Gets the field_path of this V1ObjectFieldSelector. - path of the field to select in the specified API version + Path of the field to select in the specified API version. :return: The field_path of this V1ObjectFieldSelector. :rtype: str @@ -84,7 +84,7 @@ class V1ObjectFieldSelector(object): def field_path(self, field_path): """ Sets the field_path of this V1ObjectFieldSelector. - path of the field to select in the specified API version + Path of the field to select in the specified API version. :param field_path: The field_path of this V1ObjectFieldSelector. :type: str diff --git a/k8sclient/client/models/v1_object_meta.py b/k8sclient/client/models/v1_object_meta.py index 2cbb44b..2e5937d 100644 --- a/k8sclient/client/models/v1_object_meta.py +++ b/k8sclient/client/models/v1_object_meta.py @@ -44,8 +44,9 @@ class V1ObjectMeta(object): 'generation': 'int', 'creation_timestamp': 'str', 'deletion_timestamp': 'str', - 'labels': 'str', - 'annotations': 'str' + 'deletion_grace_period_seconds': 'int', + 'labels': 'object', + 'annotations': 'object' } self.attribute_map = { @@ -58,6 +59,7 @@ class V1ObjectMeta(object): 'generation': 'generation', 'creation_timestamp': 'creationTimestamp', 'deletion_timestamp': 'deletionTimestamp', + 'deletion_grace_period_seconds': 'deletionGracePeriodSeconds', 'labels': 'labels', 'annotations': 'annotations' } @@ -71,6 +73,7 @@ class V1ObjectMeta(object): self._generation = None self._creation_timestamp = None self._deletion_timestamp = None + self._deletion_grace_period_seconds = None self._labels = None self._annotations = None @@ -78,7 +81,7 @@ class V1ObjectMeta(object): def name(self): """ Gets the name of this V1ObjectMeta. - string that identifies an object. Must be unique within a namespace; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/identifiers.md#names + 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://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :return: The name of this V1ObjectMeta. :rtype: str @@ -89,7 +92,7 @@ class V1ObjectMeta(object): def name(self, name): """ Sets the name of this V1ObjectMeta. - string that identifies an object. Must be unique within a namespace; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/identifiers.md#names + 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://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :param name: The name of this V1ObjectMeta. :type: str @@ -100,7 +103,7 @@ class V1ObjectMeta(object): def generate_name(self): """ Gets the generate_name of this V1ObjectMeta. - an optional prefix to use to generate a unique name; has the same validation rules as name; optional, and is applied only name if is not specified; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#idempotency + 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.\n\nIf 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).\n\nApplied only if Name is not specified. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#idempotency :return: The generate_name of this V1ObjectMeta. :rtype: str @@ -111,7 +114,7 @@ class V1ObjectMeta(object): def generate_name(self, generate_name): """ Sets the generate_name of this V1ObjectMeta. - an optional prefix to use to generate a unique name; has the same validation rules as name; optional, and is applied only name if is not specified; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#idempotency + 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.\n\nIf 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).\n\nApplied only if Name is not specified. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#idempotency :param generate_name: The generate_name of this V1ObjectMeta. :type: str @@ -122,7 +125,7 @@ class V1ObjectMeta(object): def namespace(self): """ Gets the namespace of this V1ObjectMeta. - namespace of the object; must be a DNS_LABEL; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/namespaces.md + Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/namespaces.md :return: The namespace of this V1ObjectMeta. :rtype: str @@ -133,7 +136,7 @@ class V1ObjectMeta(object): def namespace(self, namespace): """ Sets the namespace of this V1ObjectMeta. - namespace of the object; must be a DNS_LABEL; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/namespaces.md + Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/namespaces.md :param namespace: The namespace of this V1ObjectMeta. :type: str @@ -144,7 +147,7 @@ class V1ObjectMeta(object): def self_link(self): """ Gets the self_link of this V1ObjectMeta. - URL for the object; populated by the system, read-only + SelfLink is a URL representing this object. Populated by the system. Read-only. :return: The self_link of this V1ObjectMeta. :rtype: str @@ -155,7 +158,7 @@ class V1ObjectMeta(object): def self_link(self, self_link): """ Sets the self_link of this V1ObjectMeta. - URL for the object; populated by the system, read-only + SelfLink is a URL representing this object. Populated by the system. Read-only. :param self_link: The self_link of this V1ObjectMeta. :type: str @@ -166,7 +169,7 @@ class V1ObjectMeta(object): def uid(self): """ Gets the uid of this V1ObjectMeta. - unique UUID across space and time; populated by the system; read-only; see http://releases.k8s.io/v1.0.4/docs/identifiers.md#uids + UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#uids :return: The uid of this V1ObjectMeta. :rtype: str @@ -177,7 +180,7 @@ class V1ObjectMeta(object): def uid(self, uid): """ Sets the uid of this V1ObjectMeta. - unique UUID across space and time; populated by the system; read-only; see http://releases.k8s.io/v1.0.4/docs/identifiers.md#uids + UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#uids :param uid: The uid of this V1ObjectMeta. :type: str @@ -188,7 +191,7 @@ class V1ObjectMeta(object): def resource_version(self): """ Gets the resource_version of this V1ObjectMeta. - string that identifies the internal version of this object that can be used by clients to determine when objects have changed; populated by the system, read-only; value must be treated as opaque by clients and passed unmodified back to the server: http://releases.k8s.io/v1.0.4/docs/api-conventions.md#concurrency-control-and-consistency + 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.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#concurrency-control-and-consistency :return: The resource_version of this V1ObjectMeta. :rtype: str @@ -199,7 +202,7 @@ class V1ObjectMeta(object): def resource_version(self, resource_version): """ Sets the resource_version of this V1ObjectMeta. - string that identifies the internal version of this object that can be used by clients to determine when objects have changed; populated by the system, read-only; value must be treated as opaque by clients and passed unmodified back to the server: http://releases.k8s.io/v1.0.4/docs/api-conventions.md#concurrency-control-and-consistency + 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.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#concurrency-control-and-consistency :param resource_version: The resource_version of this V1ObjectMeta. :type: str @@ -210,7 +213,7 @@ class V1ObjectMeta(object): def generation(self): """ Gets the generation of this V1ObjectMeta. - a sequence number representing a specific generation of the desired state; populated by the system; read-only + A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. :return: The generation of this V1ObjectMeta. :rtype: int @@ -221,7 +224,7 @@ class V1ObjectMeta(object): def generation(self, generation): """ Sets the generation of this V1ObjectMeta. - a sequence number representing a specific generation of the desired state; populated by the system; read-only + A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. :param generation: The generation of this V1ObjectMeta. :type: int @@ -232,7 +235,7 @@ class V1ObjectMeta(object): def creation_timestamp(self): """ Gets the creation_timestamp of this V1ObjectMeta. - RFC 3339 date and time at which the object was created; populated by the system, read-only; null for lists; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + 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.\n\nPopulated by the system. Read-only. Null for lists. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The creation_timestamp of this V1ObjectMeta. :rtype: str @@ -243,7 +246,7 @@ class V1ObjectMeta(object): def creation_timestamp(self, creation_timestamp): """ Sets the creation_timestamp of this V1ObjectMeta. - RFC 3339 date and time at which the object was created; populated by the system, read-only; null for lists; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + 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.\n\nPopulated by the system. Read-only. Null for lists. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param creation_timestamp: The creation_timestamp of this V1ObjectMeta. :type: str @@ -254,7 +257,7 @@ class V1ObjectMeta(object): def deletion_timestamp(self): """ Gets the deletion_timestamp of this V1ObjectMeta. - RFC 3339 date and time at which the object will be deleted; populated by the system when a graceful deletion is requested, read-only; if not set, graceful deletion of the object has not been requested; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + 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 will be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field. Once 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. Once the resource is deleted in the API, the Kubelet will send a hard termination signal to the container. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The deletion_timestamp of this V1ObjectMeta. :rtype: str @@ -265,21 +268,43 @@ class V1ObjectMeta(object): def deletion_timestamp(self, deletion_timestamp): """ Sets the deletion_timestamp of this V1ObjectMeta. - RFC 3339 date and time at which the object will be deleted; populated by the system when a graceful deletion is requested, read-only; if not set, graceful deletion of the object has not been requested; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + 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 will be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field. Once 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. Once the resource is deleted in the API, the Kubelet will send a hard termination signal to the container. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param deletion_timestamp: The deletion_timestamp of this V1ObjectMeta. :type: str """ self._deletion_timestamp = deletion_timestamp + @property + def deletion_grace_period_seconds(self): + """ + Gets the deletion_grace_period_seconds of this V1ObjectMeta. + Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + + :return: The deletion_grace_period_seconds of this V1ObjectMeta. + :rtype: int + """ + return self._deletion_grace_period_seconds + + @deletion_grace_period_seconds.setter + def deletion_grace_period_seconds(self, deletion_grace_period_seconds): + """ + Sets the deletion_grace_period_seconds of this V1ObjectMeta. + Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + + :param deletion_grace_period_seconds: The deletion_grace_period_seconds of this V1ObjectMeta. + :type: int + """ + self._deletion_grace_period_seconds = deletion_grace_period_seconds + @property def labels(self): """ Gets the labels of this V1ObjectMeta. - map of string keys and values that can be used to organize and categorize objects; may match selectors of replication controllers and services; see http://releases.k8s.io/v1.0.4/docs/labels.md + 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://releases.k8s.io/release-1.2/docs/user-guide/labels.md :return: The labels of this V1ObjectMeta. - :rtype: str + :rtype: object """ return self._labels @@ -287,10 +312,10 @@ class V1ObjectMeta(object): def labels(self, labels): """ Sets the labels of this V1ObjectMeta. - map of string keys and values that can be used to organize and categorize objects; may match selectors of replication controllers and services; see http://releases.k8s.io/v1.0.4/docs/labels.md + 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://releases.k8s.io/release-1.2/docs/user-guide/labels.md :param labels: The labels of this V1ObjectMeta. - :type: str + :type: object """ self._labels = labels @@ -298,10 +323,10 @@ class V1ObjectMeta(object): def annotations(self): """ Gets the annotations of this V1ObjectMeta. - map of string keys and values that can be used by external tooling to store and retrieve arbitrary metadata about objects; see http://releases.k8s.io/v1.0.4/docs/annotations.md + 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://releases.k8s.io/release-1.2/docs/user-guide/annotations.md :return: The annotations of this V1ObjectMeta. - :rtype: str + :rtype: object """ return self._annotations @@ -309,10 +334,10 @@ class V1ObjectMeta(object): def annotations(self, annotations): """ Sets the annotations of this V1ObjectMeta. - map of string keys and values that can be used by external tooling to store and retrieve arbitrary metadata about objects; see http://releases.k8s.io/v1.0.4/docs/annotations.md + 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://releases.k8s.io/release-1.2/docs/user-guide/annotations.md :param annotations: The annotations of this V1ObjectMeta. - :type: str + :type: object """ self._annotations = annotations diff --git a/k8sclient/client/models/v1_object_reference.py b/k8sclient/client/models/v1_object_reference.py index 574c7e6..f93882c 100644 --- a/k8sclient/client/models/v1_object_reference.py +++ b/k8sclient/client/models/v1_object_reference.py @@ -66,7 +66,7 @@ class V1ObjectReference(object): def kind(self): """ Gets the kind of this V1ObjectReference. - kind of the referent; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind of the referent. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1ObjectReference. :rtype: str @@ -77,7 +77,7 @@ class V1ObjectReference(object): def kind(self, kind): """ Sets the kind of this V1ObjectReference. - kind of the referent; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind of the referent. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1ObjectReference. :type: str @@ -88,7 +88,7 @@ class V1ObjectReference(object): def namespace(self): """ Gets the namespace of this V1ObjectReference. - namespace of the referent; see http://releases.k8s.io/v1.0.4/docs/namespaces.md + Namespace of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/namespaces.md :return: The namespace of this V1ObjectReference. :rtype: str @@ -99,7 +99,7 @@ class V1ObjectReference(object): def namespace(self, namespace): """ Sets the namespace of this V1ObjectReference. - namespace of the referent; see http://releases.k8s.io/v1.0.4/docs/namespaces.md + Namespace of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/namespaces.md :param namespace: The namespace of this V1ObjectReference. :type: str @@ -110,7 +110,7 @@ class V1ObjectReference(object): def name(self): """ Gets the name of this V1ObjectReference. - name of the referent; see http://releases.k8s.io/v1.0.4/docs/identifiers.md#names + Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :return: The name of this V1ObjectReference. :rtype: str @@ -121,7 +121,7 @@ class V1ObjectReference(object): def name(self, name): """ Sets the name of this V1ObjectReference. - name of the referent; see http://releases.k8s.io/v1.0.4/docs/identifiers.md#names + Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :param name: The name of this V1ObjectReference. :type: str @@ -132,7 +132,7 @@ class V1ObjectReference(object): def uid(self): """ Gets the uid of this V1ObjectReference. - uid of the referent; see http://releases.k8s.io/v1.0.4/docs/identifiers.md#uids + UID of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#uids :return: The uid of this V1ObjectReference. :rtype: str @@ -143,7 +143,7 @@ class V1ObjectReference(object): def uid(self, uid): """ Sets the uid of this V1ObjectReference. - uid of the referent; see http://releases.k8s.io/v1.0.4/docs/identifiers.md#uids + UID of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#uids :param uid: The uid of this V1ObjectReference. :type: str @@ -154,7 +154,7 @@ class V1ObjectReference(object): def api_version(self): """ Gets the api_version of this V1ObjectReference. - API version of the referent + API version of the referent. :return: The api_version of this V1ObjectReference. :rtype: str @@ -165,7 +165,7 @@ class V1ObjectReference(object): def api_version(self, api_version): """ Sets the api_version of this V1ObjectReference. - API version of the referent + API version of the referent. :param api_version: The api_version of this V1ObjectReference. :type: str @@ -176,7 +176,7 @@ class V1ObjectReference(object): def resource_version(self): """ Gets the resource_version of this V1ObjectReference. - specific resourceVersion to which this reference is made, if any: http://releases.k8s.io/v1.0.4/docs/api-conventions.md#concurrency-control-and-consistency + Specific resourceVersion to which this reference is made, if any. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#concurrency-control-and-consistency :return: The resource_version of this V1ObjectReference. :rtype: str @@ -187,7 +187,7 @@ class V1ObjectReference(object): def resource_version(self, resource_version): """ Sets the resource_version of this V1ObjectReference. - specific resourceVersion to which this reference is made, if any: http://releases.k8s.io/v1.0.4/docs/api-conventions.md#concurrency-control-and-consistency + Specific resourceVersion to which this reference is made, if any. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#concurrency-control-and-consistency :param resource_version: The resource_version of this V1ObjectReference. :type: str @@ -198,7 +198,7 @@ class V1ObjectReference(object): def field_path(self): """ Gets the field_path of this V1ObjectReference. - if referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2] + If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. :return: The field_path of this V1ObjectReference. :rtype: str @@ -209,7 +209,7 @@ class V1ObjectReference(object): def field_path(self, field_path): """ Sets the field_path of this V1ObjectReference. - if referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2] + If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. :param field_path: The field_path of this V1ObjectReference. :type: str diff --git a/k8sclient/client/models/v1_persistent_volume.py b/k8sclient/client/models/v1_persistent_volume.py index 00b1d68..1d28677 100644 --- a/k8sclient/client/models/v1_persistent_volume.py +++ b/k8sclient/client/models/v1_persistent_volume.py @@ -60,7 +60,7 @@ class V1PersistentVolume(object): def kind(self): """ Gets the kind of this V1PersistentVolume. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1PersistentVolume. :rtype: str @@ -71,7 +71,7 @@ class V1PersistentVolume(object): def kind(self, kind): """ Sets the kind of this V1PersistentVolume. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1PersistentVolume. :type: str @@ -82,7 +82,7 @@ class V1PersistentVolume(object): def api_version(self): """ Gets the api_version of this V1PersistentVolume. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1PersistentVolume. :rtype: str @@ -93,7 +93,7 @@ class V1PersistentVolume(object): def api_version(self, api_version): """ Sets the api_version of this V1PersistentVolume. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1PersistentVolume. :type: str @@ -104,7 +104,7 @@ class V1PersistentVolume(object): def metadata(self): """ Gets the metadata of this V1PersistentVolume. - standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1PersistentVolume. :rtype: V1ObjectMeta @@ -115,7 +115,7 @@ class V1PersistentVolume(object): def metadata(self, metadata): """ Sets the metadata of this V1PersistentVolume. - standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1PersistentVolume. :type: V1ObjectMeta @@ -126,7 +126,7 @@ class V1PersistentVolume(object): def spec(self): """ Gets the spec of this V1PersistentVolume. - specification of a persistent volume as provisioned by an administrator; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistent-volumes + Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistent-volumes :return: The spec of this V1PersistentVolume. :rtype: V1PersistentVolumeSpec @@ -137,7 +137,7 @@ class V1PersistentVolume(object): def spec(self, spec): """ Sets the spec of this V1PersistentVolume. - specification of a persistent volume as provisioned by an administrator; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistent-volumes + Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistent-volumes :param spec: The spec of this V1PersistentVolume. :type: V1PersistentVolumeSpec @@ -148,7 +148,7 @@ class V1PersistentVolume(object): def status(self): """ Gets the status of this V1PersistentVolume. - current status of a persistent volume; populated by the system, read-only; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistent-volumes + Status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistent-volumes :return: The status of this V1PersistentVolume. :rtype: V1PersistentVolumeStatus @@ -159,7 +159,7 @@ class V1PersistentVolume(object): def status(self, status): """ Sets the status of this V1PersistentVolume. - current status of a persistent volume; populated by the system, read-only; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistent-volumes + Status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistent-volumes :param status: The status of this V1PersistentVolume. :type: V1PersistentVolumeStatus diff --git a/k8sclient/client/models/v1_persistent_volume_claim.py b/k8sclient/client/models/v1_persistent_volume_claim.py index dec92c1..36d4044 100644 --- a/k8sclient/client/models/v1_persistent_volume_claim.py +++ b/k8sclient/client/models/v1_persistent_volume_claim.py @@ -60,7 +60,7 @@ class V1PersistentVolumeClaim(object): def kind(self): """ Gets the kind of this V1PersistentVolumeClaim. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1PersistentVolumeClaim. :rtype: str @@ -71,7 +71,7 @@ class V1PersistentVolumeClaim(object): def kind(self, kind): """ Sets the kind of this V1PersistentVolumeClaim. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1PersistentVolumeClaim. :type: str @@ -82,7 +82,7 @@ class V1PersistentVolumeClaim(object): def api_version(self): """ Gets the api_version of this V1PersistentVolumeClaim. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1PersistentVolumeClaim. :rtype: str @@ -93,7 +93,7 @@ class V1PersistentVolumeClaim(object): def api_version(self, api_version): """ Sets the api_version of this V1PersistentVolumeClaim. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1PersistentVolumeClaim. :type: str @@ -104,7 +104,7 @@ class V1PersistentVolumeClaim(object): def metadata(self): """ Gets the metadata of this V1PersistentVolumeClaim. - standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1PersistentVolumeClaim. :rtype: V1ObjectMeta @@ -115,7 +115,7 @@ class V1PersistentVolumeClaim(object): def metadata(self, metadata): """ Sets the metadata of this V1PersistentVolumeClaim. - standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1PersistentVolumeClaim. :type: V1ObjectMeta @@ -126,7 +126,7 @@ class V1PersistentVolumeClaim(object): def spec(self): """ Gets the spec of this V1PersistentVolumeClaim. - the desired characteristics of a volume; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistentvolumeclaims + Spec defines the desired characteristics of a volume requested by a pod author. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims :return: The spec of this V1PersistentVolumeClaim. :rtype: V1PersistentVolumeClaimSpec @@ -137,7 +137,7 @@ class V1PersistentVolumeClaim(object): def spec(self, spec): """ Sets the spec of this V1PersistentVolumeClaim. - the desired characteristics of a volume; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistentvolumeclaims + Spec defines the desired characteristics of a volume requested by a pod author. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims :param spec: The spec of this V1PersistentVolumeClaim. :type: V1PersistentVolumeClaimSpec @@ -148,7 +148,7 @@ class V1PersistentVolumeClaim(object): def status(self): """ Gets the status of this V1PersistentVolumeClaim. - the current status of a persistent volume claim; read-only; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistentvolumeclaims + Status represents the current information/status of a persistent volume claim. Read-only. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims :return: The status of this V1PersistentVolumeClaim. :rtype: V1PersistentVolumeClaimStatus @@ -159,7 +159,7 @@ class V1PersistentVolumeClaim(object): def status(self, status): """ Sets the status of this V1PersistentVolumeClaim. - the current status of a persistent volume claim; read-only; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistentvolumeclaims + Status represents the current information/status of a persistent volume claim. Read-only. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims :param status: The status of this V1PersistentVolumeClaim. :type: V1PersistentVolumeClaimStatus diff --git a/k8sclient/client/models/v1_persistent_volume_claim_list.py b/k8sclient/client/models/v1_persistent_volume_claim_list.py index 67f9e13..ea9a39b 100644 --- a/k8sclient/client/models/v1_persistent_volume_claim_list.py +++ b/k8sclient/client/models/v1_persistent_volume_claim_list.py @@ -37,7 +37,7 @@ class V1PersistentVolumeClaimList(object): self.swagger_types = { 'kind': 'str', 'api_version': 'str', - 'metadata': 'V1ListMeta', + 'metadata': 'UnversionedListMeta', 'items': 'list[V1PersistentVolumeClaim]' } @@ -57,7 +57,7 @@ class V1PersistentVolumeClaimList(object): def kind(self): """ Gets the kind of this V1PersistentVolumeClaimList. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1PersistentVolumeClaimList. :rtype: str @@ -68,7 +68,7 @@ class V1PersistentVolumeClaimList(object): def kind(self, kind): """ Sets the kind of this V1PersistentVolumeClaimList. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1PersistentVolumeClaimList. :type: str @@ -79,7 +79,7 @@ class V1PersistentVolumeClaimList(object): def api_version(self): """ Gets the api_version of this V1PersistentVolumeClaimList. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1PersistentVolumeClaimList. :rtype: str @@ -90,7 +90,7 @@ class V1PersistentVolumeClaimList(object): def api_version(self, api_version): """ Sets the api_version of this V1PersistentVolumeClaimList. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1PersistentVolumeClaimList. :type: str @@ -101,10 +101,10 @@ class V1PersistentVolumeClaimList(object): def metadata(self): """ Gets the metadata of this V1PersistentVolumeClaimList. - standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1PersistentVolumeClaimList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -112,10 +112,10 @@ class V1PersistentVolumeClaimList(object): def metadata(self, metadata): """ Sets the metadata of this V1PersistentVolumeClaimList. - standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1PersistentVolumeClaimList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata @@ -123,7 +123,7 @@ class V1PersistentVolumeClaimList(object): def items(self): """ Gets the items of this V1PersistentVolumeClaimList. - a list of persistent volume claims; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistentvolumeclaims + A list of persistent volume claims. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims :return: The items of this V1PersistentVolumeClaimList. :rtype: list[V1PersistentVolumeClaim] @@ -134,7 +134,7 @@ class V1PersistentVolumeClaimList(object): def items(self, items): """ Sets the items of this V1PersistentVolumeClaimList. - a list of persistent volume claims; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistentvolumeclaims + A list of persistent volume claims. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims :param items: The items of this V1PersistentVolumeClaimList. :type: list[V1PersistentVolumeClaim] diff --git a/k8sclient/client/models/v1_persistent_volume_claim_spec.py b/k8sclient/client/models/v1_persistent_volume_claim_spec.py index a43e0ef..a93eab3 100644 --- a/k8sclient/client/models/v1_persistent_volume_claim_spec.py +++ b/k8sclient/client/models/v1_persistent_volume_claim_spec.py @@ -54,7 +54,7 @@ class V1PersistentVolumeClaimSpec(object): def access_modes(self): """ Gets the access_modes of this V1PersistentVolumeClaimSpec. - the desired access modes the volume should have; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#access-modes-1 + AccessModes contains the desired access modes the volume should have. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#access-modes-1 :return: The access_modes of this V1PersistentVolumeClaimSpec. :rtype: list[V1PersistentVolumeAccessMode] @@ -65,7 +65,7 @@ class V1PersistentVolumeClaimSpec(object): def access_modes(self, access_modes): """ Sets the access_modes of this V1PersistentVolumeClaimSpec. - the desired access modes the volume should have; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#access-modes-1 + AccessModes contains the desired access modes the volume should have. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#access-modes-1 :param access_modes: The access_modes of this V1PersistentVolumeClaimSpec. :type: list[V1PersistentVolumeAccessMode] @@ -76,7 +76,7 @@ class V1PersistentVolumeClaimSpec(object): def resources(self): """ Gets the resources of this V1PersistentVolumeClaimSpec. - the desired resources the volume should have; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#resources + Resources represents the minimum resources the volume should have. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#resources :return: The resources of this V1PersistentVolumeClaimSpec. :rtype: V1ResourceRequirements @@ -87,7 +87,7 @@ class V1PersistentVolumeClaimSpec(object): def resources(self, resources): """ Sets the resources of this V1PersistentVolumeClaimSpec. - the desired resources the volume should have; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#resources + Resources represents the minimum resources the volume should have. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#resources :param resources: The resources of this V1PersistentVolumeClaimSpec. :type: V1ResourceRequirements @@ -98,7 +98,7 @@ class V1PersistentVolumeClaimSpec(object): def volume_name(self): """ Gets the volume_name of this V1PersistentVolumeClaimSpec. - the binding reference to the persistent volume backing this claim + VolumeName is the binding reference to the PersistentVolume backing this claim. :return: The volume_name of this V1PersistentVolumeClaimSpec. :rtype: str @@ -109,7 +109,7 @@ class V1PersistentVolumeClaimSpec(object): def volume_name(self, volume_name): """ Sets the volume_name of this V1PersistentVolumeClaimSpec. - the binding reference to the persistent volume backing this claim + VolumeName is the binding reference to the PersistentVolume backing this claim. :param volume_name: The volume_name of this V1PersistentVolumeClaimSpec. :type: str diff --git a/k8sclient/client/models/v1_persistent_volume_claim_status.py b/k8sclient/client/models/v1_persistent_volume_claim_status.py index e91cf64..9ec4a0d 100644 --- a/k8sclient/client/models/v1_persistent_volume_claim_status.py +++ b/k8sclient/client/models/v1_persistent_volume_claim_status.py @@ -37,7 +37,7 @@ class V1PersistentVolumeClaimStatus(object): self.swagger_types = { 'phase': 'str', 'access_modes': 'list[V1PersistentVolumeAccessMode]', - 'capacity': 'str' + 'capacity': 'object' } self.attribute_map = { @@ -54,7 +54,7 @@ class V1PersistentVolumeClaimStatus(object): def phase(self): """ Gets the phase of this V1PersistentVolumeClaimStatus. - the current phase of the claim + Phase represents the current phase of PersistentVolumeClaim. :return: The phase of this V1PersistentVolumeClaimStatus. :rtype: str @@ -65,7 +65,7 @@ class V1PersistentVolumeClaimStatus(object): def phase(self, phase): """ Sets the phase of this V1PersistentVolumeClaimStatus. - the current phase of the claim + Phase represents the current phase of PersistentVolumeClaim. :param phase: The phase of this V1PersistentVolumeClaimStatus. :type: str @@ -76,7 +76,7 @@ class V1PersistentVolumeClaimStatus(object): def access_modes(self): """ Gets the access_modes of this V1PersistentVolumeClaimStatus. - the actual access modes the volume has; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#access-modes-1 + AccessModes contains the actual access modes the volume backing the PVC has. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#access-modes-1 :return: The access_modes of this V1PersistentVolumeClaimStatus. :rtype: list[V1PersistentVolumeAccessMode] @@ -87,7 +87,7 @@ class V1PersistentVolumeClaimStatus(object): def access_modes(self, access_modes): """ Sets the access_modes of this V1PersistentVolumeClaimStatus. - the actual access modes the volume has; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#access-modes-1 + AccessModes contains the actual access modes the volume backing the PVC has. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#access-modes-1 :param access_modes: The access_modes of this V1PersistentVolumeClaimStatus. :type: list[V1PersistentVolumeAccessMode] @@ -98,10 +98,10 @@ class V1PersistentVolumeClaimStatus(object): def capacity(self): """ Gets the capacity of this V1PersistentVolumeClaimStatus. - the actual resources the volume has + Represents the actual resources of the underlying volume. :return: The capacity of this V1PersistentVolumeClaimStatus. - :rtype: str + :rtype: object """ return self._capacity @@ -109,10 +109,10 @@ class V1PersistentVolumeClaimStatus(object): def capacity(self, capacity): """ Sets the capacity of this V1PersistentVolumeClaimStatus. - the actual resources the volume has + Represents the actual resources of the underlying volume. :param capacity: The capacity of this V1PersistentVolumeClaimStatus. - :type: str + :type: object """ self._capacity = capacity diff --git a/k8sclient/client/models/v1_persistent_volume_claim_volume_source.py b/k8sclient/client/models/v1_persistent_volume_claim_volume_source.py index 209de7e..931c6f1 100644 --- a/k8sclient/client/models/v1_persistent_volume_claim_volume_source.py +++ b/k8sclient/client/models/v1_persistent_volume_claim_volume_source.py @@ -51,7 +51,7 @@ class V1PersistentVolumeClaimVolumeSource(object): def claim_name(self): """ Gets the claim_name of this V1PersistentVolumeClaimVolumeSource. - the name of the claim in the same namespace to be mounted as a volume; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistentvolumeclaims + ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims :return: The claim_name of this V1PersistentVolumeClaimVolumeSource. :rtype: str @@ -62,7 +62,7 @@ class V1PersistentVolumeClaimVolumeSource(object): def claim_name(self, claim_name): """ Sets the claim_name of this V1PersistentVolumeClaimVolumeSource. - the name of the claim in the same namespace to be mounted as a volume; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistentvolumeclaims + ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims :param claim_name: The claim_name of this V1PersistentVolumeClaimVolumeSource. :type: str @@ -73,7 +73,7 @@ class V1PersistentVolumeClaimVolumeSource(object): def read_only(self): """ Gets the read_only of this V1PersistentVolumeClaimVolumeSource. - mount volume as read-only when true; default false + Will force the ReadOnly setting in VolumeMounts. Default false. :return: The read_only of this V1PersistentVolumeClaimVolumeSource. :rtype: bool @@ -84,7 +84,7 @@ class V1PersistentVolumeClaimVolumeSource(object): def read_only(self, read_only): """ Sets the read_only of this V1PersistentVolumeClaimVolumeSource. - mount volume as read-only when true; default false + Will force the ReadOnly setting in VolumeMounts. Default false. :param read_only: The read_only of this V1PersistentVolumeClaimVolumeSource. :type: bool diff --git a/k8sclient/client/models/v1_persistent_volume_list.py b/k8sclient/client/models/v1_persistent_volume_list.py index 41b7047..f2cbad0 100644 --- a/k8sclient/client/models/v1_persistent_volume_list.py +++ b/k8sclient/client/models/v1_persistent_volume_list.py @@ -37,7 +37,7 @@ class V1PersistentVolumeList(object): self.swagger_types = { 'kind': 'str', 'api_version': 'str', - 'metadata': 'V1ListMeta', + 'metadata': 'UnversionedListMeta', 'items': 'list[V1PersistentVolume]' } @@ -57,7 +57,7 @@ class V1PersistentVolumeList(object): def kind(self): """ Gets the kind of this V1PersistentVolumeList. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1PersistentVolumeList. :rtype: str @@ -68,7 +68,7 @@ class V1PersistentVolumeList(object): def kind(self, kind): """ Sets the kind of this V1PersistentVolumeList. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1PersistentVolumeList. :type: str @@ -79,7 +79,7 @@ class V1PersistentVolumeList(object): def api_version(self): """ Gets the api_version of this V1PersistentVolumeList. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1PersistentVolumeList. :rtype: str @@ -90,7 +90,7 @@ class V1PersistentVolumeList(object): def api_version(self, api_version): """ Sets the api_version of this V1PersistentVolumeList. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1PersistentVolumeList. :type: str @@ -101,10 +101,10 @@ class V1PersistentVolumeList(object): def metadata(self): """ Gets the metadata of this V1PersistentVolumeList. - standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1PersistentVolumeList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -112,10 +112,10 @@ class V1PersistentVolumeList(object): def metadata(self, metadata): """ Sets the metadata of this V1PersistentVolumeList. - standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1PersistentVolumeList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata @@ -123,7 +123,7 @@ class V1PersistentVolumeList(object): def items(self): """ Gets the items of this V1PersistentVolumeList. - list of persistent volumes; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md + List of persistent volumes. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md :return: The items of this V1PersistentVolumeList. :rtype: list[V1PersistentVolume] @@ -134,7 +134,7 @@ class V1PersistentVolumeList(object): def items(self, items): """ Sets the items of this V1PersistentVolumeList. - list of persistent volumes; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md + List of persistent volumes. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md :param items: The items of this V1PersistentVolumeList. :type: list[V1PersistentVolume] diff --git a/k8sclient/client/models/v1_persistent_volume_spec.py b/k8sclient/client/models/v1_persistent_volume_spec.py index eba7227..20d70ed 100644 --- a/k8sclient/client/models/v1_persistent_volume_spec.py +++ b/k8sclient/client/models/v1_persistent_volume_spec.py @@ -35,7 +35,7 @@ class V1PersistentVolumeSpec(object): and the value is json key in definition. """ self.swagger_types = { - 'capacity': 'str', + 'capacity': 'object', 'gce_persistent_disk': 'V1GCEPersistentDiskVolumeSource', 'aws_elastic_block_store': 'V1AWSElasticBlockStoreVolumeSource', 'host_path': 'V1HostPathVolumeSource', @@ -43,6 +43,12 @@ class V1PersistentVolumeSpec(object): 'nfs': 'V1NFSVolumeSource', 'rbd': 'V1RBDVolumeSource', 'iscsi': 'V1ISCSIVolumeSource', + 'cinder': 'V1CinderVolumeSource', + 'cephfs': 'V1CephFSVolumeSource', + 'fc': 'V1FCVolumeSource', + 'flocker': 'V1FlockerVolumeSource', + 'flex_volume': 'V1FlexVolumeSource', + 'azure_file': 'V1AzureFileVolumeSource', 'access_modes': 'list[V1PersistentVolumeAccessMode]', 'claim_ref': 'V1ObjectReference', 'persistent_volume_reclaim_policy': 'str' @@ -57,6 +63,12 @@ class V1PersistentVolumeSpec(object): 'nfs': 'nfs', 'rbd': 'rbd', 'iscsi': 'iscsi', + 'cinder': 'cinder', + 'cephfs': 'cephfs', + 'fc': 'fc', + 'flocker': 'flocker', + 'flex_volume': 'flexVolume', + 'azure_file': 'azureFile', 'access_modes': 'accessModes', 'claim_ref': 'claimRef', 'persistent_volume_reclaim_policy': 'persistentVolumeReclaimPolicy' @@ -70,6 +82,12 @@ class V1PersistentVolumeSpec(object): self._nfs = None self._rbd = None self._iscsi = None + self._cinder = None + self._cephfs = None + self._fc = None + self._flocker = None + self._flex_volume = None + self._azure_file = None self._access_modes = None self._claim_ref = None self._persistent_volume_reclaim_policy = None @@ -78,10 +96,10 @@ class V1PersistentVolumeSpec(object): def capacity(self): """ Gets the capacity of this V1PersistentVolumeSpec. - a description of the persistent volume's resources and capacityr; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#capacity + A description of the persistent volume's resources and capacity. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#capacity :return: The capacity of this V1PersistentVolumeSpec. - :rtype: str + :rtype: object """ return self._capacity @@ -89,10 +107,10 @@ class V1PersistentVolumeSpec(object): def capacity(self, capacity): """ Sets the capacity of this V1PersistentVolumeSpec. - a description of the persistent volume's resources and capacityr; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#capacity + A description of the persistent volume's resources and capacity. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#capacity :param capacity: The capacity of this V1PersistentVolumeSpec. - :type: str + :type: object """ self._capacity = capacity @@ -100,7 +118,7 @@ class V1PersistentVolumeSpec(object): def gce_persistent_disk(self): """ Gets the gce_persistent_disk of this V1PersistentVolumeSpec. - GCE disk resource provisioned by an admin; see http://releases.k8s.io/v1.0.4/docs/volumes.md#gcepersistentdisk + GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :return: The gce_persistent_disk of this V1PersistentVolumeSpec. :rtype: V1GCEPersistentDiskVolumeSource @@ -111,7 +129,7 @@ class V1PersistentVolumeSpec(object): def gce_persistent_disk(self, gce_persistent_disk): """ Sets the gce_persistent_disk of this V1PersistentVolumeSpec. - GCE disk resource provisioned by an admin; see http://releases.k8s.io/v1.0.4/docs/volumes.md#gcepersistentdisk + GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :param gce_persistent_disk: The gce_persistent_disk of this V1PersistentVolumeSpec. :type: V1GCEPersistentDiskVolumeSource @@ -122,7 +140,7 @@ class V1PersistentVolumeSpec(object): def aws_elastic_block_store(self): """ Gets the aws_elastic_block_store of this V1PersistentVolumeSpec. - AWS disk resource provisioned by an admin; see http://releases.k8s.io/v1.0.4/docs/volumes.md#awselasticblockstore + AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore :return: The aws_elastic_block_store of this V1PersistentVolumeSpec. :rtype: V1AWSElasticBlockStoreVolumeSource @@ -133,7 +151,7 @@ class V1PersistentVolumeSpec(object): def aws_elastic_block_store(self, aws_elastic_block_store): """ Sets the aws_elastic_block_store of this V1PersistentVolumeSpec. - AWS disk resource provisioned by an admin; see http://releases.k8s.io/v1.0.4/docs/volumes.md#awselasticblockstore + AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore :param aws_elastic_block_store: The aws_elastic_block_store of this V1PersistentVolumeSpec. :type: V1AWSElasticBlockStoreVolumeSource @@ -144,7 +162,7 @@ class V1PersistentVolumeSpec(object): def host_path(self): """ Gets the host_path of this V1PersistentVolumeSpec. - a HostPath provisioned by a developer or tester; for develment use only; see http://releases.k8s.io/v1.0.4/docs/volumes.md#hostpath + HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#hostpath :return: The host_path of this V1PersistentVolumeSpec. :rtype: V1HostPathVolumeSource @@ -155,7 +173,7 @@ class V1PersistentVolumeSpec(object): def host_path(self, host_path): """ Sets the host_path of this V1PersistentVolumeSpec. - a HostPath provisioned by a developer or tester; for develment use only; see http://releases.k8s.io/v1.0.4/docs/volumes.md#hostpath + HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#hostpath :param host_path: The host_path of this V1PersistentVolumeSpec. :type: V1HostPathVolumeSource @@ -166,7 +184,7 @@ class V1PersistentVolumeSpec(object): def glusterfs(self): """ Gets the glusterfs of this V1PersistentVolumeSpec. - Glusterfs volume resource provisioned by an admin; see http://releases.k8s.io/v1.0.4/examples/glusterfs/README.md + Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md :return: The glusterfs of this V1PersistentVolumeSpec. :rtype: V1GlusterfsVolumeSource @@ -177,7 +195,7 @@ class V1PersistentVolumeSpec(object): def glusterfs(self, glusterfs): """ Sets the glusterfs of this V1PersistentVolumeSpec. - Glusterfs volume resource provisioned by an admin; see http://releases.k8s.io/v1.0.4/examples/glusterfs/README.md + Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md :param glusterfs: The glusterfs of this V1PersistentVolumeSpec. :type: V1GlusterfsVolumeSource @@ -188,7 +206,7 @@ class V1PersistentVolumeSpec(object): def nfs(self): """ Gets the nfs of this V1PersistentVolumeSpec. - NFS volume resource provisioned by an admin; see http://releases.k8s.io/v1.0.4/docs/volumes.md#nfs + NFS represents an NFS mount on the host. Provisioned by an admin. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs :return: The nfs of this V1PersistentVolumeSpec. :rtype: V1NFSVolumeSource @@ -199,7 +217,7 @@ class V1PersistentVolumeSpec(object): def nfs(self, nfs): """ Sets the nfs of this V1PersistentVolumeSpec. - NFS volume resource provisioned by an admin; see http://releases.k8s.io/v1.0.4/docs/volumes.md#nfs + NFS represents an NFS mount on the host. Provisioned by an admin. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs :param nfs: The nfs of this V1PersistentVolumeSpec. :type: V1NFSVolumeSource @@ -210,7 +228,7 @@ class V1PersistentVolumeSpec(object): def rbd(self): """ Gets the rbd of this V1PersistentVolumeSpec. - rados block volume that will be mounted on the host machine; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md + RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md :return: The rbd of this V1PersistentVolumeSpec. :rtype: V1RBDVolumeSource @@ -221,7 +239,7 @@ class V1PersistentVolumeSpec(object): def rbd(self, rbd): """ Sets the rbd of this V1PersistentVolumeSpec. - rados block volume that will be mounted on the host machine; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md + RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md :param rbd: The rbd of this V1PersistentVolumeSpec. :type: V1RBDVolumeSource @@ -232,7 +250,7 @@ class V1PersistentVolumeSpec(object): def iscsi(self): """ Gets the iscsi of this V1PersistentVolumeSpec. - an iSCSI disk resource provisioned by an admin + ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. :return: The iscsi of this V1PersistentVolumeSpec. :rtype: V1ISCSIVolumeSource @@ -243,18 +261,150 @@ class V1PersistentVolumeSpec(object): def iscsi(self, iscsi): """ Sets the iscsi of this V1PersistentVolumeSpec. - an iSCSI disk resource provisioned by an admin + ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. :param iscsi: The iscsi of this V1PersistentVolumeSpec. :type: V1ISCSIVolumeSource """ self._iscsi = iscsi + @property + def cinder(self): + """ + Gets the cinder of this V1PersistentVolumeSpec. + Cinder represents a cinder volume attached and mounted on kubelets host machine More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md + + :return: The cinder of this V1PersistentVolumeSpec. + :rtype: V1CinderVolumeSource + """ + return self._cinder + + @cinder.setter + def cinder(self, cinder): + """ + Sets the cinder of this V1PersistentVolumeSpec. + Cinder represents a cinder volume attached and mounted on kubelets host machine More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md + + :param cinder: The cinder of this V1PersistentVolumeSpec. + :type: V1CinderVolumeSource + """ + self._cinder = cinder + + @property + def cephfs(self): + """ + Gets the cephfs of this V1PersistentVolumeSpec. + CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + + :return: The cephfs of this V1PersistentVolumeSpec. + :rtype: V1CephFSVolumeSource + """ + return self._cephfs + + @cephfs.setter + def cephfs(self, cephfs): + """ + Sets the cephfs of this V1PersistentVolumeSpec. + CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + + :param cephfs: The cephfs of this V1PersistentVolumeSpec. + :type: V1CephFSVolumeSource + """ + self._cephfs = cephfs + + @property + def fc(self): + """ + Gets the fc of this V1PersistentVolumeSpec. + FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + + :return: The fc of this V1PersistentVolumeSpec. + :rtype: V1FCVolumeSource + """ + return self._fc + + @fc.setter + def fc(self, fc): + """ + Sets the fc of this V1PersistentVolumeSpec. + FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + + :param fc: The fc of this V1PersistentVolumeSpec. + :type: V1FCVolumeSource + """ + self._fc = fc + + @property + def flocker(self): + """ + Gets the flocker of this V1PersistentVolumeSpec. + Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running + + :return: The flocker of this V1PersistentVolumeSpec. + :rtype: V1FlockerVolumeSource + """ + return self._flocker + + @flocker.setter + def flocker(self, flocker): + """ + Sets the flocker of this V1PersistentVolumeSpec. + Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running + + :param flocker: The flocker of this V1PersistentVolumeSpec. + :type: V1FlockerVolumeSource + """ + self._flocker = flocker + + @property + def flex_volume(self): + """ + Gets the flex_volume of this V1PersistentVolumeSpec. + FlexVolume represents a generic volume resource that is provisioned/attached using a exec based plugin. This is an alpha feature and may change in future. + + :return: The flex_volume of this V1PersistentVolumeSpec. + :rtype: V1FlexVolumeSource + """ + return self._flex_volume + + @flex_volume.setter + def flex_volume(self, flex_volume): + """ + Sets the flex_volume of this V1PersistentVolumeSpec. + FlexVolume represents a generic volume resource that is provisioned/attached using a exec based plugin. This is an alpha feature and may change in future. + + :param flex_volume: The flex_volume of this V1PersistentVolumeSpec. + :type: V1FlexVolumeSource + """ + self._flex_volume = flex_volume + + @property + def azure_file(self): + """ + Gets the azure_file of this V1PersistentVolumeSpec. + AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + + :return: The azure_file of this V1PersistentVolumeSpec. + :rtype: V1AzureFileVolumeSource + """ + return self._azure_file + + @azure_file.setter + def azure_file(self, azure_file): + """ + Sets the azure_file of this V1PersistentVolumeSpec. + AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + + :param azure_file: The azure_file of this V1PersistentVolumeSpec. + :type: V1AzureFileVolumeSource + """ + self._azure_file = azure_file + @property def access_modes(self): """ Gets the access_modes of this V1PersistentVolumeSpec. - all ways the volume can be mounted; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#access-modes + AccessModes contains all ways the volume can be mounted. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#access-modes :return: The access_modes of this V1PersistentVolumeSpec. :rtype: list[V1PersistentVolumeAccessMode] @@ -265,7 +415,7 @@ class V1PersistentVolumeSpec(object): def access_modes(self, access_modes): """ Sets the access_modes of this V1PersistentVolumeSpec. - all ways the volume can be mounted; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#access-modes + AccessModes contains all ways the volume can be mounted. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#access-modes :param access_modes: The access_modes of this V1PersistentVolumeSpec. :type: list[V1PersistentVolumeAccessMode] @@ -276,7 +426,7 @@ class V1PersistentVolumeSpec(object): def claim_ref(self): """ Gets the claim_ref of this V1PersistentVolumeSpec. - when bound, a reference to the bound claim; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#binding + ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#binding :return: The claim_ref of this V1PersistentVolumeSpec. :rtype: V1ObjectReference @@ -287,7 +437,7 @@ class V1PersistentVolumeSpec(object): def claim_ref(self, claim_ref): """ Sets the claim_ref of this V1PersistentVolumeSpec. - when bound, a reference to the bound claim; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#binding + ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#binding :param claim_ref: The claim_ref of this V1PersistentVolumeSpec. :type: V1ObjectReference @@ -298,7 +448,7 @@ class V1PersistentVolumeSpec(object): def persistent_volume_reclaim_policy(self): """ Gets the persistent_volume_reclaim_policy of this V1PersistentVolumeSpec. - what happens to a volume when released from its claim; Valid options are Retain (default) and Recycle. Recyling must be supported by the volume plugin underlying this persistent volume. See http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#recycling-policy + What happens to a persistent volume when released from its claim. Valid options are Retain (default) and Recycle. Recyling must be supported by the volume plugin underlying this persistent volume. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#recycling-policy :return: The persistent_volume_reclaim_policy of this V1PersistentVolumeSpec. :rtype: str @@ -309,7 +459,7 @@ class V1PersistentVolumeSpec(object): def persistent_volume_reclaim_policy(self, persistent_volume_reclaim_policy): """ Sets the persistent_volume_reclaim_policy of this V1PersistentVolumeSpec. - what happens to a volume when released from its claim; Valid options are Retain (default) and Recycle. Recyling must be supported by the volume plugin underlying this persistent volume. See http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#recycling-policy + What happens to a persistent volume when released from its claim. Valid options are Retain (default) and Recycle. Recyling must be supported by the volume plugin underlying this persistent volume. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#recycling-policy :param persistent_volume_reclaim_policy: The persistent_volume_reclaim_policy of this V1PersistentVolumeSpec. :type: str diff --git a/k8sclient/client/models/v1_persistent_volume_status.py b/k8sclient/client/models/v1_persistent_volume_status.py index 716e8ea..7f36835 100644 --- a/k8sclient/client/models/v1_persistent_volume_status.py +++ b/k8sclient/client/models/v1_persistent_volume_status.py @@ -54,7 +54,7 @@ class V1PersistentVolumeStatus(object): def phase(self): """ Gets the phase of this V1PersistentVolumeStatus. - the current phase of a persistent volume; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#phase + Phase indicates if a volume is available, bound to a claim, or released by a claim. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#phase :return: The phase of this V1PersistentVolumeStatus. :rtype: str @@ -65,7 +65,7 @@ class V1PersistentVolumeStatus(object): def phase(self, phase): """ Sets the phase of this V1PersistentVolumeStatus. - the current phase of a persistent volume; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#phase + Phase indicates if a volume is available, bound to a claim, or released by a claim. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#phase :param phase: The phase of this V1PersistentVolumeStatus. :type: str @@ -76,7 +76,7 @@ class V1PersistentVolumeStatus(object): def message(self): """ Gets the message of this V1PersistentVolumeStatus. - human-readable message indicating details about why the volume is in this state + A human-readable message indicating details about why the volume is in this state. :return: The message of this V1PersistentVolumeStatus. :rtype: str @@ -87,7 +87,7 @@ class V1PersistentVolumeStatus(object): def message(self, message): """ Sets the message of this V1PersistentVolumeStatus. - human-readable message indicating details about why the volume is in this state + A human-readable message indicating details about why the volume is in this state. :param message: The message of this V1PersistentVolumeStatus. :type: str @@ -98,7 +98,7 @@ class V1PersistentVolumeStatus(object): def reason(self): """ Gets the reason of this V1PersistentVolumeStatus. - (brief) reason the volume is not is not available + Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. :return: The reason of this V1PersistentVolumeStatus. :rtype: str @@ -109,7 +109,7 @@ class V1PersistentVolumeStatus(object): def reason(self, reason): """ Sets the reason of this V1PersistentVolumeStatus. - (brief) reason the volume is not is not available + Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. :param reason: The reason of this V1PersistentVolumeStatus. :type: str diff --git a/k8sclient/client/models/v1_pod.py b/k8sclient/client/models/v1_pod.py index 38290c0..1c07bf2 100644 --- a/k8sclient/client/models/v1_pod.py +++ b/k8sclient/client/models/v1_pod.py @@ -60,7 +60,7 @@ class V1Pod(object): def kind(self): """ Gets the kind of this V1Pod. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1Pod. :rtype: str @@ -71,7 +71,7 @@ class V1Pod(object): def kind(self, kind): """ Sets the kind of this V1Pod. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1Pod. :type: str @@ -82,7 +82,7 @@ class V1Pod(object): def api_version(self): """ Gets the api_version of this V1Pod. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1Pod. :rtype: str @@ -93,7 +93,7 @@ class V1Pod(object): def api_version(self, api_version): """ Sets the api_version of this V1Pod. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1Pod. :type: str @@ -104,7 +104,7 @@ class V1Pod(object): def metadata(self): """ Gets the metadata of this V1Pod. - standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1Pod. :rtype: V1ObjectMeta @@ -115,7 +115,7 @@ class V1Pod(object): def metadata(self, metadata): """ Sets the metadata of this V1Pod. - standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1Pod. :type: V1ObjectMeta @@ -126,7 +126,7 @@ class V1Pod(object): def spec(self): """ Gets the spec of this V1Pod. - specification of the desired behavior of the pod; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + Specification of the desired behavior of the pod. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The spec of this V1Pod. :rtype: V1PodSpec @@ -137,7 +137,7 @@ class V1Pod(object): def spec(self, spec): """ Sets the spec of this V1Pod. - specification of the desired behavior of the pod; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + Specification of the desired behavior of the pod. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param spec: The spec of this V1Pod. :type: V1PodSpec @@ -148,7 +148,7 @@ class V1Pod(object): def status(self): """ Gets the status of this V1Pod. - most recently observed status of the pod; populated by the system, read-only; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The status of this V1Pod. :rtype: V1PodStatus @@ -159,7 +159,7 @@ class V1Pod(object): def status(self, status): """ Sets the status of this V1Pod. - most recently observed status of the pod; populated by the system, read-only; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param status: The status of this V1Pod. :type: V1PodStatus diff --git a/k8sclient/client/models/v1_pod_condition.py b/k8sclient/client/models/v1_pod_condition.py index 284d4f4..d0beacc 100644 --- a/k8sclient/client/models/v1_pod_condition.py +++ b/k8sclient/client/models/v1_pod_condition.py @@ -36,22 +36,34 @@ class V1PodCondition(object): """ self.swagger_types = { 'type': 'str', - 'status': 'str' + 'status': 'str', + 'last_probe_time': 'str', + 'last_transition_time': 'str', + 'reason': 'str', + 'message': 'str' } self.attribute_map = { 'type': 'type', - 'status': 'status' + 'status': 'status', + 'last_probe_time': 'lastProbeTime', + 'last_transition_time': 'lastTransitionTime', + 'reason': 'reason', + 'message': 'message' } self._type = None self._status = None + self._last_probe_time = None + self._last_transition_time = None + self._reason = None + self._message = None @property def type(self): """ Gets the type of this V1PodCondition. - kind of the condition, currently only Ready; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#pod-conditions + Type is the type of the condition. Currently only Ready. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#pod-conditions :return: The type of this V1PodCondition. :rtype: str @@ -62,7 +74,7 @@ class V1PodCondition(object): def type(self, type): """ Sets the type of this V1PodCondition. - kind of the condition, currently only Ready; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#pod-conditions + Type is the type of the condition. Currently only Ready. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#pod-conditions :param type: The type of this V1PodCondition. :type: str @@ -73,7 +85,7 @@ class V1PodCondition(object): def status(self): """ Gets the status of this V1PodCondition. - status of the condition, one of True, False, Unknown; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#pod-conditions + Status is the status of the condition. Can be True, False, Unknown. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#pod-conditions :return: The status of this V1PodCondition. :rtype: str @@ -84,13 +96,101 @@ class V1PodCondition(object): def status(self, status): """ Sets the status of this V1PodCondition. - status of the condition, one of True, False, Unknown; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#pod-conditions + Status is the status of the condition. Can be True, False, Unknown. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#pod-conditions :param status: The status of this V1PodCondition. :type: str """ self._status = status + @property + def last_probe_time(self): + """ + Gets the last_probe_time of this V1PodCondition. + Last time we probed the condition. + + :return: The last_probe_time of this V1PodCondition. + :rtype: str + """ + return self._last_probe_time + + @last_probe_time.setter + def last_probe_time(self, last_probe_time): + """ + Sets the last_probe_time of this V1PodCondition. + Last time we probed the condition. + + :param last_probe_time: The last_probe_time of this V1PodCondition. + :type: str + """ + self._last_probe_time = last_probe_time + + @property + def last_transition_time(self): + """ + Gets the last_transition_time of this V1PodCondition. + Last time the condition transitioned from one status to another. + + :return: The last_transition_time of this V1PodCondition. + :rtype: str + """ + return self._last_transition_time + + @last_transition_time.setter + def last_transition_time(self, last_transition_time): + """ + Sets the last_transition_time of this V1PodCondition. + Last time the condition transitioned from one status to another. + + :param last_transition_time: The last_transition_time of this V1PodCondition. + :type: str + """ + self._last_transition_time = last_transition_time + + @property + def reason(self): + """ + Gets the reason of this V1PodCondition. + Unique, one-word, CamelCase reason for the condition's last transition. + + :return: The reason of this V1PodCondition. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1PodCondition. + Unique, one-word, CamelCase reason for the condition's last transition. + + :param reason: The reason of this V1PodCondition. + :type: str + """ + self._reason = reason + + @property + def message(self): + """ + Gets the message of this V1PodCondition. + Human-readable message indicating details about last transition. + + :return: The message of this V1PodCondition. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1PodCondition. + Human-readable message indicating details about last transition. + + :param message: The message of this V1PodCondition. + :type: str + """ + self._message = message + def to_dict(self): """ Return model properties dict diff --git a/k8sclient/client/models/v1_pod_list.py b/k8sclient/client/models/v1_pod_list.py index 310a685..4731663 100644 --- a/k8sclient/client/models/v1_pod_list.py +++ b/k8sclient/client/models/v1_pod_list.py @@ -37,7 +37,7 @@ class V1PodList(object): self.swagger_types = { 'kind': 'str', 'api_version': 'str', - 'metadata': 'V1ListMeta', + 'metadata': 'UnversionedListMeta', 'items': 'list[V1Pod]' } @@ -57,7 +57,7 @@ class V1PodList(object): def kind(self): """ Gets the kind of this V1PodList. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1PodList. :rtype: str @@ -68,7 +68,7 @@ class V1PodList(object): def kind(self, kind): """ Sets the kind of this V1PodList. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1PodList. :type: str @@ -79,7 +79,7 @@ class V1PodList(object): def api_version(self): """ Gets the api_version of this V1PodList. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1PodList. :rtype: str @@ -90,7 +90,7 @@ class V1PodList(object): def api_version(self, api_version): """ Sets the api_version of this V1PodList. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1PodList. :type: str @@ -101,10 +101,10 @@ class V1PodList(object): def metadata(self): """ Gets the metadata of this V1PodList. - standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1PodList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -112,10 +112,10 @@ class V1PodList(object): def metadata(self, metadata): """ Sets the metadata of this V1PodList. - standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1PodList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata @@ -123,7 +123,7 @@ class V1PodList(object): def items(self): """ Gets the items of this V1PodList. - list of pods; see http://releases.k8s.io/v1.0.4/docs/pods.md + List of pods. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pods.md :return: The items of this V1PodList. :rtype: list[V1Pod] @@ -134,7 +134,7 @@ class V1PodList(object): def items(self, items): """ Sets the items of this V1PodList. - list of pods; see http://releases.k8s.io/v1.0.4/docs/pods.md + List of pods. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pods.md :param items: The items of this V1PodList. :type: list[V1Pod] diff --git a/k8sclient/client/models/v1_pod_security_context.py b/k8sclient/client/models/v1_pod_security_context.py new file mode 100644 index 0000000..b703fe7 --- /dev/null +++ b/k8sclient/client/models/v1_pod_security_context.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1PodSecurityContext(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'se_linux_options': 'V1SELinuxOptions', + 'run_as_user': 'int', + 'run_as_non_root': 'bool', + 'supplemental_groups': 'list[int]', + 'fs_group': 'int' + } + + self.attribute_map = { + 'se_linux_options': 'seLinuxOptions', + 'run_as_user': 'runAsUser', + 'run_as_non_root': 'runAsNonRoot', + 'supplemental_groups': 'supplementalGroups', + 'fs_group': 'fsGroup' + } + + self._se_linux_options = None + self._run_as_user = None + self._run_as_non_root = None + self._supplemental_groups = None + self._fs_group = None + + @property + def se_linux_options(self): + """ + Gets the se_linux_options of this V1PodSecurityContext. + The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + + :return: The se_linux_options of this V1PodSecurityContext. + :rtype: V1SELinuxOptions + """ + return self._se_linux_options + + @se_linux_options.setter + def se_linux_options(self, se_linux_options): + """ + Sets the se_linux_options of this V1PodSecurityContext. + The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + + :param se_linux_options: The se_linux_options of this V1PodSecurityContext. + :type: V1SELinuxOptions + """ + self._se_linux_options = se_linux_options + + @property + def run_as_user(self): + """ + Gets the run_as_user of this V1PodSecurityContext. + 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. + + :return: The run_as_user of this V1PodSecurityContext. + :rtype: int + """ + return self._run_as_user + + @run_as_user.setter + def run_as_user(self, run_as_user): + """ + Sets the run_as_user of this V1PodSecurityContext. + 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. + + :param run_as_user: The run_as_user of this V1PodSecurityContext. + :type: int + """ + self._run_as_user = run_as_user + + @property + def run_as_non_root(self): + """ + Gets the run_as_non_root of this V1PodSecurityContext. + 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. + + :return: The run_as_non_root of this V1PodSecurityContext. + :rtype: bool + """ + return self._run_as_non_root + + @run_as_non_root.setter + def run_as_non_root(self, run_as_non_root): + """ + Sets the run_as_non_root of this V1PodSecurityContext. + 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. + + :param run_as_non_root: The run_as_non_root of this V1PodSecurityContext. + :type: bool + """ + self._run_as_non_root = run_as_non_root + + @property + def supplemental_groups(self): + """ + Gets the supplemental_groups of this V1PodSecurityContext. + 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. + + :return: The supplemental_groups of this V1PodSecurityContext. + :rtype: list[int] + """ + return self._supplemental_groups + + @supplemental_groups.setter + def supplemental_groups(self, supplemental_groups): + """ + Sets the supplemental_groups of this V1PodSecurityContext. + 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. + + :param supplemental_groups: The supplemental_groups of this V1PodSecurityContext. + :type: list[int] + """ + self._supplemental_groups = supplemental_groups + + @property + def fs_group(self): + """ + Gets the fs_group of this V1PodSecurityContext. + 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:\n\n1. 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 + + :return: The fs_group of this V1PodSecurityContext. + :rtype: int + """ + return self._fs_group + + @fs_group.setter + def fs_group(self, fs_group): + """ + Sets the fs_group of this V1PodSecurityContext. + 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:\n\n1. 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 + + :param fs_group: The fs_group of this V1PodSecurityContext. + :type: int + """ + self._fs_group = fs_group + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/k8sclient/client/models/v1_pod_spec.py b/k8sclient/client/models/v1_pod_spec.py index d03ee00..9aa76e6 100644 --- a/k8sclient/client/models/v1_pod_spec.py +++ b/k8sclient/client/models/v1_pod_spec.py @@ -41,11 +41,14 @@ class V1PodSpec(object): 'termination_grace_period_seconds': 'int', 'active_deadline_seconds': 'int', 'dns_policy': 'str', - 'node_selector': 'str', + 'node_selector': 'object', 'service_account_name': 'str', 'service_account': 'str', 'node_name': 'str', 'host_network': 'bool', + 'host_pid': 'bool', + 'host_ipc': 'bool', + 'security_context': 'V1PodSecurityContext', 'image_pull_secrets': 'list[V1LocalObjectReference]' } @@ -61,6 +64,9 @@ class V1PodSpec(object): 'service_account': 'serviceAccount', 'node_name': 'nodeName', 'host_network': 'hostNetwork', + 'host_pid': 'hostPID', + 'host_ipc': 'hostIPC', + 'security_context': 'securityContext', 'image_pull_secrets': 'imagePullSecrets' } @@ -75,13 +81,16 @@ class V1PodSpec(object): self._service_account = None self._node_name = None self._host_network = None + self._host_pid = None + self._host_ipc = None + self._security_context = None self._image_pull_secrets = None @property def volumes(self): """ Gets the volumes of this V1PodSpec. - list of volumes that can be mounted by containers belonging to the pod; see http://releases.k8s.io/v1.0.4/docs/volumes.md + List of volumes that can be mounted by containers belonging to the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md :return: The volumes of this V1PodSpec. :rtype: list[V1Volume] @@ -92,7 +101,7 @@ class V1PodSpec(object): def volumes(self, volumes): """ Sets the volumes of this V1PodSpec. - list of volumes that can be mounted by containers belonging to the pod; see http://releases.k8s.io/v1.0.4/docs/volumes.md + List of volumes that can be mounted by containers belonging to the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md :param volumes: The volumes of this V1PodSpec. :type: list[V1Volume] @@ -103,7 +112,7 @@ class V1PodSpec(object): def containers(self): """ Gets the containers of this V1PodSpec. - list of containers belonging to the pod; cannot be updated; containers cannot currently be added or removed; there must be at least one container in a Pod; see http://releases.k8s.io/v1.0.4/docs/containers.md + List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/containers.md :return: The containers of this V1PodSpec. :rtype: list[V1Container] @@ -114,7 +123,7 @@ class V1PodSpec(object): def containers(self, containers): """ Sets the containers of this V1PodSpec. - list of containers belonging to the pod; cannot be updated; containers cannot currently be added or removed; there must be at least one container in a Pod; see http://releases.k8s.io/v1.0.4/docs/containers.md + List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/containers.md :param containers: The containers of this V1PodSpec. :type: list[V1Container] @@ -125,7 +134,7 @@ class V1PodSpec(object): def restart_policy(self): """ Gets the restart_policy of this V1PodSpec. - restart policy for all containers within the pod; one of Always, OnFailure, Never; defaults to Always; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#restartpolicy + Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#restartpolicy :return: The restart_policy of this V1PodSpec. :rtype: str @@ -136,7 +145,7 @@ class V1PodSpec(object): def restart_policy(self, restart_policy): """ Sets the restart_policy of this V1PodSpec. - restart policy for all containers within the pod; one of Always, OnFailure, Never; defaults to Always; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#restartpolicy + Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#restartpolicy :param restart_policy: The restart_policy of this V1PodSpec. :type: str @@ -147,7 +156,7 @@ class V1PodSpec(object): def termination_grace_period_seconds(self): """ Gets the termination_grace_period_seconds of this V1PodSpec. - 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 not set, 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 + 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. :return: The termination_grace_period_seconds of this V1PodSpec. :rtype: int @@ -158,7 +167,7 @@ class V1PodSpec(object): def termination_grace_period_seconds(self, termination_grace_period_seconds): """ Sets the termination_grace_period_seconds of this V1PodSpec. - 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 not set, 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 + 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. :param termination_grace_period_seconds: The termination_grace_period_seconds of this V1PodSpec. :type: int @@ -169,7 +178,7 @@ class V1PodSpec(object): def active_deadline_seconds(self): """ Gets the active_deadline_seconds of this V1PodSpec. - + Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. :return: The active_deadline_seconds of this V1PodSpec. :rtype: int @@ -180,7 +189,7 @@ class V1PodSpec(object): def active_deadline_seconds(self, active_deadline_seconds): """ Sets the active_deadline_seconds of this V1PodSpec. - + Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. :param active_deadline_seconds: The active_deadline_seconds of this V1PodSpec. :type: int @@ -191,7 +200,7 @@ class V1PodSpec(object): def dns_policy(self): """ Gets the dns_policy of this V1PodSpec. - DNS policy for containers within the pod; one of 'ClusterFirst' or 'Default' + Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. Defaults to \"ClusterFirst\". :return: The dns_policy of this V1PodSpec. :rtype: str @@ -202,7 +211,7 @@ class V1PodSpec(object): def dns_policy(self, dns_policy): """ Sets the dns_policy of this V1PodSpec. - DNS policy for containers within the pod; one of 'ClusterFirst' or 'Default' + Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. Defaults to \"ClusterFirst\". :param dns_policy: The dns_policy of this V1PodSpec. :type: str @@ -213,10 +222,10 @@ class V1PodSpec(object): def node_selector(self): """ Gets the node_selector of this V1PodSpec. - selector which must match a node's labels for the pod to be scheduled on that node; see http://releases.k8s.io/v1.0.4/examples/node-selection/README.md + 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: http://releases.k8s.io/release-1.2/docs/user-guide/node-selection/README.md :return: The node_selector of this V1PodSpec. - :rtype: str + :rtype: object """ return self._node_selector @@ -224,10 +233,10 @@ class V1PodSpec(object): def node_selector(self, node_selector): """ Sets the node_selector of this V1PodSpec. - selector which must match a node's labels for the pod to be scheduled on that node; see http://releases.k8s.io/v1.0.4/examples/node-selection/README.md + 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: http://releases.k8s.io/release-1.2/docs/user-guide/node-selection/README.md :param node_selector: The node_selector of this V1PodSpec. - :type: str + :type: object """ self._node_selector = node_selector @@ -235,7 +244,7 @@ class V1PodSpec(object): def service_account_name(self): """ Gets the service_account_name of this V1PodSpec. - name of the ServiceAccount to use to run this pod; see http://releases.k8s.io/v1.0.4/docs/service_accounts.md + ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: http://releases.k8s.io/release-1.2/docs/design/service_accounts.md :return: The service_account_name of this V1PodSpec. :rtype: str @@ -246,7 +255,7 @@ class V1PodSpec(object): def service_account_name(self, service_account_name): """ Sets the service_account_name of this V1PodSpec. - name of the ServiceAccount to use to run this pod; see http://releases.k8s.io/v1.0.4/docs/service_accounts.md + ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: http://releases.k8s.io/release-1.2/docs/design/service_accounts.md :param service_account_name: The service_account_name of this V1PodSpec. :type: str @@ -257,7 +266,7 @@ class V1PodSpec(object): def service_account(self): """ Gets the service_account of this V1PodSpec. - deprecated; use serviceAccountName instead + DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. :return: The service_account of this V1PodSpec. :rtype: str @@ -268,7 +277,7 @@ class V1PodSpec(object): def service_account(self, service_account): """ Sets the service_account of this V1PodSpec. - deprecated; use serviceAccountName instead + DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. :param service_account: The service_account of this V1PodSpec. :type: str @@ -279,7 +288,7 @@ class V1PodSpec(object): def node_name(self): """ Gets the node_name of this V1PodSpec. - node requested for this pod + 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. :return: The node_name of this V1PodSpec. :rtype: str @@ -290,7 +299,7 @@ class V1PodSpec(object): def node_name(self, node_name): """ Sets the node_name of this V1PodSpec. - node requested for this pod + 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. :param node_name: The node_name of this V1PodSpec. :type: str @@ -301,7 +310,7 @@ class V1PodSpec(object): def host_network(self): """ Gets the host_network of this V1PodSpec. - host networking requested for this pod + 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. :return: The host_network of this V1PodSpec. :rtype: bool @@ -312,18 +321,84 @@ class V1PodSpec(object): def host_network(self, host_network): """ Sets the host_network of this V1PodSpec. - host networking requested for this pod + 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. :param host_network: The host_network of this V1PodSpec. :type: bool """ self._host_network = host_network + @property + def host_pid(self): + """ + Gets the host_pid of this V1PodSpec. + Use the host's pid namespace. Optional: Default to false. + + :return: The host_pid of this V1PodSpec. + :rtype: bool + """ + return self._host_pid + + @host_pid.setter + def host_pid(self, host_pid): + """ + Sets the host_pid of this V1PodSpec. + Use the host's pid namespace. Optional: Default to false. + + :param host_pid: The host_pid of this V1PodSpec. + :type: bool + """ + self._host_pid = host_pid + + @property + def host_ipc(self): + """ + Gets the host_ipc of this V1PodSpec. + Use the host's ipc namespace. Optional: Default to false. + + :return: The host_ipc of this V1PodSpec. + :rtype: bool + """ + return self._host_ipc + + @host_ipc.setter + def host_ipc(self, host_ipc): + """ + Sets the host_ipc of this V1PodSpec. + Use the host's ipc namespace. Optional: Default to false. + + :param host_ipc: The host_ipc of this V1PodSpec. + :type: bool + """ + self._host_ipc = host_ipc + + @property + def security_context(self): + """ + Gets the security_context of this V1PodSpec. + SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + + :return: The security_context of this V1PodSpec. + :rtype: V1PodSecurityContext + """ + return self._security_context + + @security_context.setter + def security_context(self, security_context): + """ + Sets the security_context of this V1PodSpec. + SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + + :param security_context: The security_context of this V1PodSpec. + :type: V1PodSecurityContext + """ + self._security_context = security_context + @property def image_pull_secrets(self): """ Gets the image_pull_secrets of this V1PodSpec. - list of references to secrets in the same namespace available for pulling the container images; see http://releases.k8s.io/v1.0.4/docs/images.md#specifying-imagepullsecrets-on-a-pod + 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: http://releases.k8s.io/release-1.2/docs/user-guide/images.md#specifying-imagepullsecrets-on-a-pod :return: The image_pull_secrets of this V1PodSpec. :rtype: list[V1LocalObjectReference] @@ -334,7 +409,7 @@ class V1PodSpec(object): def image_pull_secrets(self, image_pull_secrets): """ Sets the image_pull_secrets of this V1PodSpec. - list of references to secrets in the same namespace available for pulling the container images; see http://releases.k8s.io/v1.0.4/docs/images.md#specifying-imagepullsecrets-on-a-pod + 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: http://releases.k8s.io/release-1.2/docs/user-guide/images.md#specifying-imagepullsecrets-on-a-pod :param image_pull_secrets: The image_pull_secrets of this V1PodSpec. :type: list[V1LocalObjectReference] diff --git a/k8sclient/client/models/v1_pod_status.py b/k8sclient/client/models/v1_pod_status.py index fbffcff..9f64542 100644 --- a/k8sclient/client/models/v1_pod_status.py +++ b/k8sclient/client/models/v1_pod_status.py @@ -69,7 +69,7 @@ class V1PodStatus(object): def phase(self): """ Gets the phase of this V1PodStatus. - current condition of the pod; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#pod-phase + Current condition of the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#pod-phase :return: The phase of this V1PodStatus. :rtype: str @@ -80,7 +80,7 @@ class V1PodStatus(object): def phase(self, phase): """ Sets the phase of this V1PodStatus. - current condition of the pod; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#pod-phase + Current condition of the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#pod-phase :param phase: The phase of this V1PodStatus. :type: str @@ -91,7 +91,7 @@ class V1PodStatus(object): def conditions(self): """ Gets the conditions of this V1PodStatus. - current service state of pod; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#pod-conditions + Current service state of pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#pod-conditions :return: The conditions of this V1PodStatus. :rtype: list[V1PodCondition] @@ -102,7 +102,7 @@ class V1PodStatus(object): def conditions(self, conditions): """ Sets the conditions of this V1PodStatus. - current service state of pod; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#pod-conditions + Current service state of pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#pod-conditions :param conditions: The conditions of this V1PodStatus. :type: list[V1PodCondition] @@ -113,7 +113,7 @@ class V1PodStatus(object): def message(self): """ Gets the message of this V1PodStatus. - human readable message indicating details about why the pod is in this condition + A human readable message indicating details about why the pod is in this condition. :return: The message of this V1PodStatus. :rtype: str @@ -124,7 +124,7 @@ class V1PodStatus(object): def message(self, message): """ Sets the message of this V1PodStatus. - human readable message indicating details about why the pod is in this condition + A human readable message indicating details about why the pod is in this condition. :param message: The message of this V1PodStatus. :type: str @@ -135,7 +135,7 @@ class V1PodStatus(object): def reason(self): """ Gets the reason of this V1PodStatus. - (brief-CamelCase) reason indicating details about why the pod is in this condition + A brief CamelCase message indicating details about why the pod is in this state. e.g. 'OutOfDisk' :return: The reason of this V1PodStatus. :rtype: str @@ -146,7 +146,7 @@ class V1PodStatus(object): def reason(self, reason): """ Sets the reason of this V1PodStatus. - (brief-CamelCase) reason indicating details about why the pod is in this condition + A brief CamelCase message indicating details about why the pod is in this state. e.g. 'OutOfDisk' :param reason: The reason of this V1PodStatus. :type: str @@ -157,7 +157,7 @@ class V1PodStatus(object): def host_ip(self): """ Gets the host_ip of this V1PodStatus. - IP address of the host to which the pod is assigned; empty if not yet scheduled + IP address of the host to which the pod is assigned. Empty if not yet scheduled. :return: The host_ip of this V1PodStatus. :rtype: str @@ -168,7 +168,7 @@ class V1PodStatus(object): def host_ip(self, host_ip): """ Sets the host_ip of this V1PodStatus. - IP address of the host to which the pod is assigned; empty if not yet scheduled + IP address of the host to which the pod is assigned. Empty if not yet scheduled. :param host_ip: The host_ip of this V1PodStatus. :type: str @@ -179,7 +179,7 @@ class V1PodStatus(object): def pod_ip(self): """ Gets the pod_ip of this V1PodStatus. - IP address allocated to the pod; routable at least within the cluster; empty if not yet allocated + IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. :return: The pod_ip of this V1PodStatus. :rtype: str @@ -190,7 +190,7 @@ class V1PodStatus(object): def pod_ip(self, pod_ip): """ Sets the pod_ip of this V1PodStatus. - IP address allocated to the pod; routable at least within the cluster; empty if not yet allocated + IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. :param pod_ip: The pod_ip of this V1PodStatus. :type: str @@ -201,7 +201,7 @@ class V1PodStatus(object): def start_time(self): """ Gets the start_time of this V1PodStatus. - 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. + 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. :return: The start_time of this V1PodStatus. :rtype: str @@ -212,7 +212,7 @@ class V1PodStatus(object): def start_time(self, start_time): """ Sets the start_time of this V1PodStatus. - 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. + 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. :param start_time: The start_time of this V1PodStatus. :type: str @@ -223,7 +223,7 @@ class V1PodStatus(object): def container_statuses(self): """ Gets the container_statuses of this V1PodStatus. - list of container statuses; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#container-statuses + The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-statuses :return: The container_statuses of this V1PodStatus. :rtype: list[V1ContainerStatus] @@ -234,7 +234,7 @@ class V1PodStatus(object): def container_statuses(self, container_statuses): """ Sets the container_statuses of this V1PodStatus. - list of container statuses; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#container-statuses + The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-statuses :param container_statuses: The container_statuses of this V1PodStatus. :type: list[V1ContainerStatus] diff --git a/k8sclient/client/models/v1_pod_template.py b/k8sclient/client/models/v1_pod_template.py index f8106f7..703511a 100644 --- a/k8sclient/client/models/v1_pod_template.py +++ b/k8sclient/client/models/v1_pod_template.py @@ -57,7 +57,7 @@ class V1PodTemplate(object): def kind(self): """ Gets the kind of this V1PodTemplate. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1PodTemplate. :rtype: str @@ -68,7 +68,7 @@ class V1PodTemplate(object): def kind(self, kind): """ Sets the kind of this V1PodTemplate. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1PodTemplate. :type: str @@ -79,7 +79,7 @@ class V1PodTemplate(object): def api_version(self): """ Gets the api_version of this V1PodTemplate. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1PodTemplate. :rtype: str @@ -90,7 +90,7 @@ class V1PodTemplate(object): def api_version(self, api_version): """ Sets the api_version of this V1PodTemplate. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1PodTemplate. :type: str @@ -101,7 +101,7 @@ class V1PodTemplate(object): def metadata(self): """ Gets the metadata of this V1PodTemplate. - standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1PodTemplate. :rtype: V1ObjectMeta @@ -112,7 +112,7 @@ class V1PodTemplate(object): def metadata(self, metadata): """ Sets the metadata of this V1PodTemplate. - standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1PodTemplate. :type: V1ObjectMeta @@ -123,7 +123,7 @@ class V1PodTemplate(object): def template(self): """ Gets the template of this V1PodTemplate. - the template of the desired behavior of the pod; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + Template defines the pods that will be created from this pod template. http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The template of this V1PodTemplate. :rtype: V1PodTemplateSpec @@ -134,7 +134,7 @@ class V1PodTemplate(object): def template(self, template): """ Sets the template of this V1PodTemplate. - the template of the desired behavior of the pod; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + Template defines the pods that will be created from this pod template. http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param template: The template of this V1PodTemplate. :type: V1PodTemplateSpec diff --git a/k8sclient/client/models/v1_pod_template_list.py b/k8sclient/client/models/v1_pod_template_list.py index a494538..893ab90 100644 --- a/k8sclient/client/models/v1_pod_template_list.py +++ b/k8sclient/client/models/v1_pod_template_list.py @@ -37,7 +37,7 @@ class V1PodTemplateList(object): self.swagger_types = { 'kind': 'str', 'api_version': 'str', - 'metadata': 'V1ListMeta', + 'metadata': 'UnversionedListMeta', 'items': 'list[V1PodTemplate]' } @@ -57,7 +57,7 @@ class V1PodTemplateList(object): def kind(self): """ Gets the kind of this V1PodTemplateList. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1PodTemplateList. :rtype: str @@ -68,7 +68,7 @@ class V1PodTemplateList(object): def kind(self, kind): """ Sets the kind of this V1PodTemplateList. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1PodTemplateList. :type: str @@ -79,7 +79,7 @@ class V1PodTemplateList(object): def api_version(self): """ Gets the api_version of this V1PodTemplateList. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1PodTemplateList. :rtype: str @@ -90,7 +90,7 @@ class V1PodTemplateList(object): def api_version(self, api_version): """ Sets the api_version of this V1PodTemplateList. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1PodTemplateList. :type: str @@ -101,10 +101,10 @@ class V1PodTemplateList(object): def metadata(self): """ Gets the metadata of this V1PodTemplateList. - standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1PodTemplateList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -112,10 +112,10 @@ class V1PodTemplateList(object): def metadata(self, metadata): """ Sets the metadata of this V1PodTemplateList. - standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1PodTemplateList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata @@ -123,7 +123,7 @@ class V1PodTemplateList(object): def items(self): """ Gets the items of this V1PodTemplateList. - list of pod templates + List of pod templates :return: The items of this V1PodTemplateList. :rtype: list[V1PodTemplate] @@ -134,7 +134,7 @@ class V1PodTemplateList(object): def items(self, items): """ Sets the items of this V1PodTemplateList. - list of pod templates + List of pod templates :param items: The items of this V1PodTemplateList. :type: list[V1PodTemplate] diff --git a/k8sclient/client/models/v1_pod_template_spec.py b/k8sclient/client/models/v1_pod_template_spec.py index e526ad5..7184a8a 100644 --- a/k8sclient/client/models/v1_pod_template_spec.py +++ b/k8sclient/client/models/v1_pod_template_spec.py @@ -51,7 +51,7 @@ class V1PodTemplateSpec(object): def metadata(self): """ Gets the metadata of this V1PodTemplateSpec. - standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1PodTemplateSpec. :rtype: V1ObjectMeta @@ -62,7 +62,7 @@ class V1PodTemplateSpec(object): def metadata(self, metadata): """ Sets the metadata of this V1PodTemplateSpec. - standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1PodTemplateSpec. :type: V1ObjectMeta @@ -73,7 +73,7 @@ class V1PodTemplateSpec(object): def spec(self): """ Gets the spec of this V1PodTemplateSpec. - specification of the desired behavior of the pod; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + Specification of the desired behavior of the pod. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The spec of this V1PodTemplateSpec. :rtype: V1PodSpec @@ -84,7 +84,7 @@ class V1PodTemplateSpec(object): def spec(self, spec): """ Sets the spec of this V1PodTemplateSpec. - specification of the desired behavior of the pod; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + Specification of the desired behavior of the pod. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param spec: The spec of this V1PodTemplateSpec. :type: V1PodSpec diff --git a/k8sclient/client/models/v1_probe.py b/k8sclient/client/models/v1_probe.py index db104d6..d14f97f 100644 --- a/k8sclient/client/models/v1_probe.py +++ b/k8sclient/client/models/v1_probe.py @@ -39,7 +39,10 @@ class V1Probe(object): 'http_get': 'V1HTTPGetAction', 'tcp_socket': 'V1TCPSocketAction', 'initial_delay_seconds': 'int', - 'timeout_seconds': 'int' + 'timeout_seconds': 'int', + 'period_seconds': 'int', + 'success_threshold': 'int', + 'failure_threshold': 'int' } self.attribute_map = { @@ -47,7 +50,10 @@ class V1Probe(object): 'http_get': 'httpGet', 'tcp_socket': 'tcpSocket', 'initial_delay_seconds': 'initialDelaySeconds', - 'timeout_seconds': 'timeoutSeconds' + 'timeout_seconds': 'timeoutSeconds', + 'period_seconds': 'periodSeconds', + 'success_threshold': 'successThreshold', + 'failure_threshold': 'failureThreshold' } self.__exec = None @@ -55,12 +61,15 @@ class V1Probe(object): self._tcp_socket = None self._initial_delay_seconds = None self._timeout_seconds = None + self._period_seconds = None + self._success_threshold = None + self._failure_threshold = None @property def _exec(self): """ Gets the _exec of this V1Probe. - exec-based handler + One and only one of the following should be specified. Exec specifies the action to take. :return: The _exec of this V1Probe. :rtype: V1ExecAction @@ -71,7 +80,7 @@ class V1Probe(object): def _exec(self, _exec): """ Sets the _exec of this V1Probe. - exec-based handler + One and only one of the following should be specified. Exec specifies the action to take. :param _exec: The _exec of this V1Probe. :type: V1ExecAction @@ -82,7 +91,7 @@ class V1Probe(object): def http_get(self): """ Gets the http_get of this V1Probe. - HTTP-based handler + HTTPGet specifies the http request to perform. :return: The http_get of this V1Probe. :rtype: V1HTTPGetAction @@ -93,7 +102,7 @@ class V1Probe(object): def http_get(self, http_get): """ Sets the http_get of this V1Probe. - HTTP-based handler + HTTPGet specifies the http request to perform. :param http_get: The http_get of this V1Probe. :type: V1HTTPGetAction @@ -104,7 +113,7 @@ class V1Probe(object): def tcp_socket(self): """ Gets the tcp_socket of this V1Probe. - TCP-based handler; TCP hooks not yet supported + TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported :return: The tcp_socket of this V1Probe. :rtype: V1TCPSocketAction @@ -115,7 +124,7 @@ class V1Probe(object): def tcp_socket(self, tcp_socket): """ Sets the tcp_socket of this V1Probe. - TCP-based handler; TCP hooks not yet supported + TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported :param tcp_socket: The tcp_socket of this V1Probe. :type: V1TCPSocketAction @@ -126,7 +135,7 @@ class V1Probe(object): def initial_delay_seconds(self): """ Gets the initial_delay_seconds of this V1Probe. - number of seconds after the container has started before liveness probes are initiated; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#container-probes + Number of seconds after the container has started before liveness probes are initiated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes :return: The initial_delay_seconds of this V1Probe. :rtype: int @@ -137,7 +146,7 @@ class V1Probe(object): def initial_delay_seconds(self, initial_delay_seconds): """ Sets the initial_delay_seconds of this V1Probe. - number of seconds after the container has started before liveness probes are initiated; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#container-probes + Number of seconds after the container has started before liveness probes are initiated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes :param initial_delay_seconds: The initial_delay_seconds of this V1Probe. :type: int @@ -148,7 +157,7 @@ class V1Probe(object): def timeout_seconds(self): """ Gets the timeout_seconds of this V1Probe. - number of seconds after which liveness probes timeout; defaults to 1 second; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#container-probes + Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes :return: The timeout_seconds of this V1Probe. :rtype: int @@ -159,13 +168,79 @@ class V1Probe(object): def timeout_seconds(self, timeout_seconds): """ Sets the timeout_seconds of this V1Probe. - number of seconds after which liveness probes timeout; defaults to 1 second; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#container-probes + Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes :param timeout_seconds: The timeout_seconds of this V1Probe. :type: int """ self._timeout_seconds = timeout_seconds + @property + def period_seconds(self): + """ + Gets the period_seconds of this V1Probe. + How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + + :return: The period_seconds of this V1Probe. + :rtype: int + """ + return self._period_seconds + + @period_seconds.setter + def period_seconds(self, period_seconds): + """ + Sets the period_seconds of this V1Probe. + How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + + :param period_seconds: The period_seconds of this V1Probe. + :type: int + """ + self._period_seconds = period_seconds + + @property + def success_threshold(self): + """ + Gets the success_threshold of this V1Probe. + Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. + + :return: The success_threshold of this V1Probe. + :rtype: int + """ + return self._success_threshold + + @success_threshold.setter + def success_threshold(self, success_threshold): + """ + Sets the success_threshold of this V1Probe. + Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. + + :param success_threshold: The success_threshold of this V1Probe. + :type: int + """ + self._success_threshold = success_threshold + + @property + def failure_threshold(self): + """ + Gets the failure_threshold of this V1Probe. + Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + + :return: The failure_threshold of this V1Probe. + :rtype: int + """ + return self._failure_threshold + + @failure_threshold.setter + def failure_threshold(self, failure_threshold): + """ + Sets the failure_threshold of this V1Probe. + Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + + :param failure_threshold: The failure_threshold of this V1Probe. + :type: int + """ + self._failure_threshold = failure_threshold + def to_dict(self): """ Return model properties dict diff --git a/k8sclient/client/models/v1_rbd_volume_source.py b/k8sclient/client/models/v1_rbd_volume_source.py index a533b5e..5aa7bc2 100644 --- a/k8sclient/client/models/v1_rbd_volume_source.py +++ b/k8sclient/client/models/v1_rbd_volume_source.py @@ -69,7 +69,7 @@ class V1RBDVolumeSource(object): def monitors(self): """ Gets the monitors of this V1RBDVolumeSource. - a collection of Ceph monitors; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it + A collection of Ceph monitors. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :return: The monitors of this V1RBDVolumeSource. :rtype: list[str] @@ -80,7 +80,7 @@ class V1RBDVolumeSource(object): def monitors(self, monitors): """ Sets the monitors of this V1RBDVolumeSource. - a collection of Ceph monitors; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it + A collection of Ceph monitors. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :param monitors: The monitors of this V1RBDVolumeSource. :type: list[str] @@ -91,7 +91,7 @@ class V1RBDVolumeSource(object): def image(self): """ Gets the image of this V1RBDVolumeSource. - rados image name; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it + The rados image name. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :return: The image of this V1RBDVolumeSource. :rtype: str @@ -102,7 +102,7 @@ class V1RBDVolumeSource(object): def image(self, image): """ Sets the image of this V1RBDVolumeSource. - rados image name; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it + The rados image name. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :param image: The image of this V1RBDVolumeSource. :type: str @@ -113,7 +113,7 @@ class V1RBDVolumeSource(object): def fs_type(self): """ Gets the fs_type of this V1RBDVolumeSource. - file system type to mount, such as ext4, xfs, ntfs; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it + 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: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#rbd :return: The fs_type of this V1RBDVolumeSource. :rtype: str @@ -124,7 +124,7 @@ class V1RBDVolumeSource(object): def fs_type(self, fs_type): """ Sets the fs_type of this V1RBDVolumeSource. - file system type to mount, such as ext4, xfs, ntfs; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it + 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: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#rbd :param fs_type: The fs_type of this V1RBDVolumeSource. :type: str @@ -135,7 +135,7 @@ class V1RBDVolumeSource(object): def pool(self): """ Gets the pool of this V1RBDVolumeSource. - rados pool name; default is rbd; optional; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it + The rados pool name. Default is rbd. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it. :return: The pool of this V1RBDVolumeSource. :rtype: str @@ -146,7 +146,7 @@ class V1RBDVolumeSource(object): def pool(self, pool): """ Sets the pool of this V1RBDVolumeSource. - rados pool name; default is rbd; optional; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it + The rados pool name. Default is rbd. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it. :param pool: The pool of this V1RBDVolumeSource. :type: str @@ -157,7 +157,7 @@ class V1RBDVolumeSource(object): def user(self): """ Gets the user of this V1RBDVolumeSource. - rados user name; default is admin; optional; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it + The rados user name. Default is admin. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :return: The user of this V1RBDVolumeSource. :rtype: str @@ -168,7 +168,7 @@ class V1RBDVolumeSource(object): def user(self, user): """ Sets the user of this V1RBDVolumeSource. - rados user name; default is admin; optional; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it + The rados user name. Default is admin. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :param user: The user of this V1RBDVolumeSource. :type: str @@ -179,7 +179,7 @@ class V1RBDVolumeSource(object): def keyring(self): """ Gets the keyring of this V1RBDVolumeSource. - keyring is the path to key ring for rados user; default is /etc/ceph/keyring; optional; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it + Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :return: The keyring of this V1RBDVolumeSource. :rtype: str @@ -190,7 +190,7 @@ class V1RBDVolumeSource(object): def keyring(self, keyring): """ Sets the keyring of this V1RBDVolumeSource. - keyring is the path to key ring for rados user; default is /etc/ceph/keyring; optional; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it + Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :param keyring: The keyring of this V1RBDVolumeSource. :type: str @@ -201,7 +201,7 @@ class V1RBDVolumeSource(object): def secret_ref(self): """ Gets the secret_ref of this V1RBDVolumeSource. - name of a secret to authenticate the RBD user; if provided overrides keyring; optional; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it + SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is empty. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :return: The secret_ref of this V1RBDVolumeSource. :rtype: V1LocalObjectReference @@ -212,7 +212,7 @@ class V1RBDVolumeSource(object): def secret_ref(self, secret_ref): """ Sets the secret_ref of this V1RBDVolumeSource. - name of a secret to authenticate the RBD user; if provided overrides keyring; optional; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it + SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is empty. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :param secret_ref: The secret_ref of this V1RBDVolumeSource. :type: V1LocalObjectReference @@ -223,7 +223,7 @@ class V1RBDVolumeSource(object): def read_only(self): """ Gets the read_only of this V1RBDVolumeSource. - rbd volume to be mounted with read-only permissions; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it + ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :return: The read_only of this V1RBDVolumeSource. :rtype: bool @@ -234,7 +234,7 @@ class V1RBDVolumeSource(object): def read_only(self, read_only): """ Sets the read_only of this V1RBDVolumeSource. - rbd volume to be mounted with read-only permissions; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it + ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :param read_only: The read_only of this V1RBDVolumeSource. :type: bool diff --git a/k8sclient/client/models/v1_replication_controller.py b/k8sclient/client/models/v1_replication_controller.py index 173ea94..efeef0f 100644 --- a/k8sclient/client/models/v1_replication_controller.py +++ b/k8sclient/client/models/v1_replication_controller.py @@ -60,7 +60,7 @@ class V1ReplicationController(object): def kind(self): """ Gets the kind of this V1ReplicationController. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1ReplicationController. :rtype: str @@ -71,7 +71,7 @@ class V1ReplicationController(object): def kind(self, kind): """ Sets the kind of this V1ReplicationController. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1ReplicationController. :type: str @@ -82,7 +82,7 @@ class V1ReplicationController(object): def api_version(self): """ Gets the api_version of this V1ReplicationController. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1ReplicationController. :rtype: str @@ -93,7 +93,7 @@ class V1ReplicationController(object): def api_version(self, api_version): """ Sets the api_version of this V1ReplicationController. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1ReplicationController. :type: str @@ -104,7 +104,7 @@ class V1ReplicationController(object): def metadata(self): """ Gets the metadata of this V1ReplicationController. - standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1ReplicationController. :rtype: V1ObjectMeta @@ -115,7 +115,7 @@ class V1ReplicationController(object): def metadata(self, metadata): """ Sets the metadata of this V1ReplicationController. - standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1ReplicationController. :type: V1ObjectMeta @@ -126,7 +126,7 @@ class V1ReplicationController(object): def spec(self): """ Gets the spec of this V1ReplicationController. - specification of the desired behavior of the replication controller; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + Spec defines the specification of the desired behavior of the replication controller. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The spec of this V1ReplicationController. :rtype: V1ReplicationControllerSpec @@ -137,7 +137,7 @@ class V1ReplicationController(object): def spec(self, spec): """ Sets the spec of this V1ReplicationController. - specification of the desired behavior of the replication controller; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + Spec defines the specification of the desired behavior of the replication controller. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param spec: The spec of this V1ReplicationController. :type: V1ReplicationControllerSpec @@ -148,7 +148,7 @@ class V1ReplicationController(object): def status(self): """ Gets the status of this V1ReplicationController. - most recently observed status of the replication controller; populated by the system, read-only; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The status of this V1ReplicationController. :rtype: V1ReplicationControllerStatus @@ -159,7 +159,7 @@ class V1ReplicationController(object): def status(self, status): """ Sets the status of this V1ReplicationController. - most recently observed status of the replication controller; populated by the system, read-only; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param status: The status of this V1ReplicationController. :type: V1ReplicationControllerStatus diff --git a/k8sclient/client/models/v1_replication_controller_list.py b/k8sclient/client/models/v1_replication_controller_list.py index 9f8fd00..d2e1930 100644 --- a/k8sclient/client/models/v1_replication_controller_list.py +++ b/k8sclient/client/models/v1_replication_controller_list.py @@ -37,7 +37,7 @@ class V1ReplicationControllerList(object): self.swagger_types = { 'kind': 'str', 'api_version': 'str', - 'metadata': 'V1ListMeta', + 'metadata': 'UnversionedListMeta', 'items': 'list[V1ReplicationController]' } @@ -57,7 +57,7 @@ class V1ReplicationControllerList(object): def kind(self): """ Gets the kind of this V1ReplicationControllerList. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1ReplicationControllerList. :rtype: str @@ -68,7 +68,7 @@ class V1ReplicationControllerList(object): def kind(self, kind): """ Sets the kind of this V1ReplicationControllerList. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1ReplicationControllerList. :type: str @@ -79,7 +79,7 @@ class V1ReplicationControllerList(object): def api_version(self): """ Gets the api_version of this V1ReplicationControllerList. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1ReplicationControllerList. :rtype: str @@ -90,7 +90,7 @@ class V1ReplicationControllerList(object): def api_version(self, api_version): """ Sets the api_version of this V1ReplicationControllerList. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1ReplicationControllerList. :type: str @@ -101,10 +101,10 @@ class V1ReplicationControllerList(object): def metadata(self): """ Gets the metadata of this V1ReplicationControllerList. - standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1ReplicationControllerList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -112,10 +112,10 @@ class V1ReplicationControllerList(object): def metadata(self, metadata): """ Sets the metadata of this V1ReplicationControllerList. - standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1ReplicationControllerList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata @@ -123,7 +123,7 @@ class V1ReplicationControllerList(object): def items(self): """ Gets the items of this V1ReplicationControllerList. - list of replication controllers; see http://releases.k8s.io/v1.0.4/docs/replication-controller.md + List of replication controllers. More info: http://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md :return: The items of this V1ReplicationControllerList. :rtype: list[V1ReplicationController] @@ -134,7 +134,7 @@ class V1ReplicationControllerList(object): def items(self, items): """ Sets the items of this V1ReplicationControllerList. - list of replication controllers; see http://releases.k8s.io/v1.0.4/docs/replication-controller.md + List of replication controllers. More info: http://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md :param items: The items of this V1ReplicationControllerList. :type: list[V1ReplicationController] diff --git a/k8sclient/client/models/v1_replication_controller_spec.py b/k8sclient/client/models/v1_replication_controller_spec.py index ba0b0e5..937efd9 100644 --- a/k8sclient/client/models/v1_replication_controller_spec.py +++ b/k8sclient/client/models/v1_replication_controller_spec.py @@ -36,7 +36,7 @@ class V1ReplicationControllerSpec(object): """ self.swagger_types = { 'replicas': 'int', - 'selector': 'str', + 'selector': 'object', 'template': 'V1PodTemplateSpec' } @@ -54,7 +54,7 @@ class V1ReplicationControllerSpec(object): def replicas(self): """ Gets the replicas of this V1ReplicationControllerSpec. - number of replicas desired; defaults to 1; see http://releases.k8s.io/v1.0.4/docs/replication-controller.md#what-is-a-replication-controller + Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: http://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md#what-is-a-replication-controller :return: The replicas of this V1ReplicationControllerSpec. :rtype: int @@ -65,7 +65,7 @@ class V1ReplicationControllerSpec(object): def replicas(self, replicas): """ Sets the replicas of this V1ReplicationControllerSpec. - number of replicas desired; defaults to 1; see http://releases.k8s.io/v1.0.4/docs/replication-controller.md#what-is-a-replication-controller + Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: http://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md#what-is-a-replication-controller :param replicas: The replicas of this V1ReplicationControllerSpec. :type: int @@ -76,10 +76,10 @@ class V1ReplicationControllerSpec(object): def selector(self): """ Gets the selector of this V1ReplicationControllerSpec. - label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template; see http://releases.k8s.io/v1.0.4/docs/labels.md#label-selectors + Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: http://releases.k8s.io/release-1.2/docs/user-guide/labels.md#label-selectors :return: The selector of this V1ReplicationControllerSpec. - :rtype: str + :rtype: object """ return self._selector @@ -87,10 +87,10 @@ class V1ReplicationControllerSpec(object): def selector(self, selector): """ Sets the selector of this V1ReplicationControllerSpec. - label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template; see http://releases.k8s.io/v1.0.4/docs/labels.md#label-selectors + Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: http://releases.k8s.io/release-1.2/docs/user-guide/labels.md#label-selectors :param selector: The selector of this V1ReplicationControllerSpec. - :type: str + :type: object """ self._selector = selector @@ -98,7 +98,7 @@ class V1ReplicationControllerSpec(object): def template(self): """ Gets the template of this V1ReplicationControllerSpec. - object that describes the pod that will be created if insufficient replicas are detected; takes precendence over templateRef; see http://releases.k8s.io/v1.0.4/docs/replication-controller.md#pod-template + Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: http://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md#pod-template :return: The template of this V1ReplicationControllerSpec. :rtype: V1PodTemplateSpec @@ -109,7 +109,7 @@ class V1ReplicationControllerSpec(object): def template(self, template): """ Sets the template of this V1ReplicationControllerSpec. - object that describes the pod that will be created if insufficient replicas are detected; takes precendence over templateRef; see http://releases.k8s.io/v1.0.4/docs/replication-controller.md#pod-template + Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: http://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md#pod-template :param template: The template of this V1ReplicationControllerSpec. :type: V1PodTemplateSpec diff --git a/k8sclient/client/models/v1_replication_controller_status.py b/k8sclient/client/models/v1_replication_controller_status.py index 3e1e305..c81e387 100644 --- a/k8sclient/client/models/v1_replication_controller_status.py +++ b/k8sclient/client/models/v1_replication_controller_status.py @@ -36,22 +36,25 @@ class V1ReplicationControllerStatus(object): """ self.swagger_types = { 'replicas': 'int', + 'fully_labeled_replicas': 'int', 'observed_generation': 'int' } self.attribute_map = { 'replicas': 'replicas', + 'fully_labeled_replicas': 'fullyLabeledReplicas', 'observed_generation': 'observedGeneration' } self._replicas = None + self._fully_labeled_replicas = None self._observed_generation = None @property def replicas(self): """ Gets the replicas of this V1ReplicationControllerStatus. - most recently oberved number of replicas; see http://releases.k8s.io/v1.0.4/docs/replication-controller.md#what-is-a-replication-controller + Replicas is the most recently oberved number of replicas. More info: http://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md#what-is-a-replication-controller :return: The replicas of this V1ReplicationControllerStatus. :rtype: int @@ -62,18 +65,40 @@ class V1ReplicationControllerStatus(object): def replicas(self, replicas): """ Sets the replicas of this V1ReplicationControllerStatus. - most recently oberved number of replicas; see http://releases.k8s.io/v1.0.4/docs/replication-controller.md#what-is-a-replication-controller + Replicas is the most recently oberved number of replicas. More info: http://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md#what-is-a-replication-controller :param replicas: The replicas of this V1ReplicationControllerStatus. :type: int """ self._replicas = replicas + @property + def fully_labeled_replicas(self): + """ + Gets the fully_labeled_replicas of this V1ReplicationControllerStatus. + The number of pods that have labels matching the labels of the pod template of the replication controller. + + :return: The fully_labeled_replicas of this V1ReplicationControllerStatus. + :rtype: int + """ + return self._fully_labeled_replicas + + @fully_labeled_replicas.setter + def fully_labeled_replicas(self, fully_labeled_replicas): + """ + Sets the fully_labeled_replicas of this V1ReplicationControllerStatus. + The number of pods that have labels matching the labels of the pod template of the replication controller. + + :param fully_labeled_replicas: The fully_labeled_replicas of this V1ReplicationControllerStatus. + :type: int + """ + self._fully_labeled_replicas = fully_labeled_replicas + @property def observed_generation(self): """ Gets the observed_generation of this V1ReplicationControllerStatus. - reflects the generation of the most recently observed replication controller + ObservedGeneration reflects the generation of the most recently observed replication controller. :return: The observed_generation of this V1ReplicationControllerStatus. :rtype: int @@ -84,7 +109,7 @@ class V1ReplicationControllerStatus(object): def observed_generation(self, observed_generation): """ Sets the observed_generation of this V1ReplicationControllerStatus. - reflects the generation of the most recently observed replication controller + ObservedGeneration reflects the generation of the most recently observed replication controller. :param observed_generation: The observed_generation of this V1ReplicationControllerStatus. :type: int diff --git a/k8sclient/client/models/v1_resource_quota.py b/k8sclient/client/models/v1_resource_quota.py index 8496142..4878bb1 100644 --- a/k8sclient/client/models/v1_resource_quota.py +++ b/k8sclient/client/models/v1_resource_quota.py @@ -60,7 +60,7 @@ class V1ResourceQuota(object): def kind(self): """ Gets the kind of this V1ResourceQuota. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1ResourceQuota. :rtype: str @@ -71,7 +71,7 @@ class V1ResourceQuota(object): def kind(self, kind): """ Sets the kind of this V1ResourceQuota. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1ResourceQuota. :type: str @@ -82,7 +82,7 @@ class V1ResourceQuota(object): def api_version(self): """ Gets the api_version of this V1ResourceQuota. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1ResourceQuota. :rtype: str @@ -93,7 +93,7 @@ class V1ResourceQuota(object): def api_version(self, api_version): """ Sets the api_version of this V1ResourceQuota. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1ResourceQuota. :type: str @@ -104,7 +104,7 @@ class V1ResourceQuota(object): def metadata(self): """ Gets the metadata of this V1ResourceQuota. - standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1ResourceQuota. :rtype: V1ObjectMeta @@ -115,7 +115,7 @@ class V1ResourceQuota(object): def metadata(self, metadata): """ Sets the metadata of this V1ResourceQuota. - standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1ResourceQuota. :type: V1ObjectMeta @@ -126,7 +126,7 @@ class V1ResourceQuota(object): def spec(self): """ Gets the spec of this V1ResourceQuota. - spec defines the desired quota; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + Spec defines the desired quota. http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The spec of this V1ResourceQuota. :rtype: V1ResourceQuotaSpec @@ -137,7 +137,7 @@ class V1ResourceQuota(object): def spec(self, spec): """ Sets the spec of this V1ResourceQuota. - spec defines the desired quota; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + Spec defines the desired quota. http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param spec: The spec of this V1ResourceQuota. :type: V1ResourceQuotaSpec @@ -148,7 +148,7 @@ class V1ResourceQuota(object): def status(self): """ Gets the status of this V1ResourceQuota. - status defines the actual enforced quota and current usage; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + Status defines the actual enforced quota and its current usage. http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The status of this V1ResourceQuota. :rtype: V1ResourceQuotaStatus @@ -159,7 +159,7 @@ class V1ResourceQuota(object): def status(self, status): """ Sets the status of this V1ResourceQuota. - status defines the actual enforced quota and current usage; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + Status defines the actual enforced quota and its current usage. http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param status: The status of this V1ResourceQuota. :type: V1ResourceQuotaStatus diff --git a/k8sclient/client/models/v1_resource_quota_list.py b/k8sclient/client/models/v1_resource_quota_list.py index d4154c5..35cd3c2 100644 --- a/k8sclient/client/models/v1_resource_quota_list.py +++ b/k8sclient/client/models/v1_resource_quota_list.py @@ -37,7 +37,7 @@ class V1ResourceQuotaList(object): self.swagger_types = { 'kind': 'str', 'api_version': 'str', - 'metadata': 'V1ListMeta', + 'metadata': 'UnversionedListMeta', 'items': 'list[V1ResourceQuota]' } @@ -57,7 +57,7 @@ class V1ResourceQuotaList(object): def kind(self): """ Gets the kind of this V1ResourceQuotaList. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1ResourceQuotaList. :rtype: str @@ -68,7 +68,7 @@ class V1ResourceQuotaList(object): def kind(self, kind): """ Sets the kind of this V1ResourceQuotaList. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1ResourceQuotaList. :type: str @@ -79,7 +79,7 @@ class V1ResourceQuotaList(object): def api_version(self): """ Gets the api_version of this V1ResourceQuotaList. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1ResourceQuotaList. :rtype: str @@ -90,7 +90,7 @@ class V1ResourceQuotaList(object): def api_version(self, api_version): """ Sets the api_version of this V1ResourceQuotaList. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1ResourceQuotaList. :type: str @@ -101,10 +101,10 @@ class V1ResourceQuotaList(object): def metadata(self): """ Gets the metadata of this V1ResourceQuotaList. - standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1ResourceQuotaList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -112,10 +112,10 @@ class V1ResourceQuotaList(object): def metadata(self, metadata): """ Sets the metadata of this V1ResourceQuotaList. - standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1ResourceQuotaList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata @@ -123,7 +123,7 @@ class V1ResourceQuotaList(object): def items(self): """ Gets the items of this V1ResourceQuotaList. - items is a list of ResourceQuota objects; see http://releases.k8s.io/v1.0.4/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota + Items is a list of ResourceQuota objects. More info: http://releases.k8s.io/release-1.2/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota :return: The items of this V1ResourceQuotaList. :rtype: list[V1ResourceQuota] @@ -134,7 +134,7 @@ class V1ResourceQuotaList(object): def items(self, items): """ Sets the items of this V1ResourceQuotaList. - items is a list of ResourceQuota objects; see http://releases.k8s.io/v1.0.4/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota + Items is a list of ResourceQuota objects. More info: http://releases.k8s.io/release-1.2/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota :param items: The items of this V1ResourceQuotaList. :type: list[V1ResourceQuota] diff --git a/k8sclient/client/models/v1_resource_quota_scope.py b/k8sclient/client/models/v1_resource_quota_scope.py new file mode 100644 index 0000000..39f115c --- /dev/null +++ b/k8sclient/client/models/v1_resource_quota_scope.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1ResourceQuotaScope(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + + } + + self.attribute_map = { + + } + + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/k8sclient/client/models/v1_resource_quota_spec.py b/k8sclient/client/models/v1_resource_quota_spec.py index e003a7a..54e2d5a 100644 --- a/k8sclient/client/models/v1_resource_quota_spec.py +++ b/k8sclient/client/models/v1_resource_quota_spec.py @@ -35,23 +35,26 @@ class V1ResourceQuotaSpec(object): and the value is json key in definition. """ self.swagger_types = { - 'hard': 'str' + 'hard': 'object', + 'scopes': 'list[V1ResourceQuotaScope]' } self.attribute_map = { - 'hard': 'hard' + 'hard': 'hard', + 'scopes': 'scopes' } self._hard = None + self._scopes = None @property def hard(self): """ Gets the hard of this V1ResourceQuotaSpec. - hard is the set of desired hard limits for each named resource; see http://releases.k8s.io/v1.0.4/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota + Hard is the set of desired hard limits for each named resource. More info: http://releases.k8s.io/release-1.2/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota :return: The hard of this V1ResourceQuotaSpec. - :rtype: str + :rtype: object """ return self._hard @@ -59,13 +62,35 @@ class V1ResourceQuotaSpec(object): def hard(self, hard): """ Sets the hard of this V1ResourceQuotaSpec. - hard is the set of desired hard limits for each named resource; see http://releases.k8s.io/v1.0.4/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota + Hard is the set of desired hard limits for each named resource. More info: http://releases.k8s.io/release-1.2/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota :param hard: The hard of this V1ResourceQuotaSpec. - :type: str + :type: object """ self._hard = hard + @property + def scopes(self): + """ + Gets the scopes of this V1ResourceQuotaSpec. + A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. + + :return: The scopes of this V1ResourceQuotaSpec. + :rtype: list[V1ResourceQuotaScope] + """ + return self._scopes + + @scopes.setter + def scopes(self, scopes): + """ + Sets the scopes of this V1ResourceQuotaSpec. + A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. + + :param scopes: The scopes of this V1ResourceQuotaSpec. + :type: list[V1ResourceQuotaScope] + """ + self._scopes = scopes + def to_dict(self): """ Return model properties dict diff --git a/k8sclient/client/models/v1_resource_quota_status.py b/k8sclient/client/models/v1_resource_quota_status.py index 4355d3d..c8d6018 100644 --- a/k8sclient/client/models/v1_resource_quota_status.py +++ b/k8sclient/client/models/v1_resource_quota_status.py @@ -35,8 +35,8 @@ class V1ResourceQuotaStatus(object): and the value is json key in definition. """ self.swagger_types = { - 'hard': 'str', - 'used': 'str' + 'hard': 'object', + 'used': 'object' } self.attribute_map = { @@ -51,10 +51,10 @@ class V1ResourceQuotaStatus(object): def hard(self): """ Gets the hard of this V1ResourceQuotaStatus. - hard is the set of enforced hard limits for each named resource; see http://releases.k8s.io/v1.0.4/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota + Hard is the set of enforced hard limits for each named resource. More info: http://releases.k8s.io/release-1.2/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota :return: The hard of this V1ResourceQuotaStatus. - :rtype: str + :rtype: object """ return self._hard @@ -62,10 +62,10 @@ class V1ResourceQuotaStatus(object): def hard(self, hard): """ Sets the hard of this V1ResourceQuotaStatus. - hard is the set of enforced hard limits for each named resource; see http://releases.k8s.io/v1.0.4/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota + Hard is the set of enforced hard limits for each named resource. More info: http://releases.k8s.io/release-1.2/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota :param hard: The hard of this V1ResourceQuotaStatus. - :type: str + :type: object """ self._hard = hard @@ -73,10 +73,10 @@ class V1ResourceQuotaStatus(object): def used(self): """ Gets the used of this V1ResourceQuotaStatus. - used is the current observed total usage of the resource in the namespace + Used is the current observed total usage of the resource in the namespace. :return: The used of this V1ResourceQuotaStatus. - :rtype: str + :rtype: object """ return self._used @@ -84,10 +84,10 @@ class V1ResourceQuotaStatus(object): def used(self, used): """ Sets the used of this V1ResourceQuotaStatus. - used is the current observed total usage of the resource in the namespace + Used is the current observed total usage of the resource in the namespace. :param used: The used of this V1ResourceQuotaStatus. - :type: str + :type: object """ self._used = used diff --git a/k8sclient/client/models/v1_resource_requirements.py b/k8sclient/client/models/v1_resource_requirements.py index 0751e51..226a25b 100644 --- a/k8sclient/client/models/v1_resource_requirements.py +++ b/k8sclient/client/models/v1_resource_requirements.py @@ -35,8 +35,8 @@ class V1ResourceRequirements(object): and the value is json key in definition. """ self.swagger_types = { - 'limits': 'str', - 'requests': 'str' + 'limits': 'object', + 'requests': 'object' } self.attribute_map = { @@ -51,10 +51,10 @@ class V1ResourceRequirements(object): def limits(self): """ Gets the limits of this V1ResourceRequirements. - Maximum amount of compute resources allowed; see http://releases.k8s.io/v1.0.4/docs/design/resources.md#resource-specifications + Limits describes the maximum amount of compute resources allowed. More info: http://releases.k8s.io/release-1.2/docs/design/resources.md#resource-specifications :return: The limits of this V1ResourceRequirements. - :rtype: str + :rtype: object """ return self._limits @@ -62,10 +62,10 @@ class V1ResourceRequirements(object): def limits(self, limits): """ Sets the limits of this V1ResourceRequirements. - Maximum amount of compute resources allowed; see http://releases.k8s.io/v1.0.4/docs/design/resources.md#resource-specifications + Limits describes the maximum amount of compute resources allowed. More info: http://releases.k8s.io/release-1.2/docs/design/resources.md#resource-specifications :param limits: The limits of this V1ResourceRequirements. - :type: str + :type: object """ self._limits = limits @@ -73,10 +73,10 @@ class V1ResourceRequirements(object): def requests(self): """ Gets the requests of this V1ResourceRequirements. - Minimum amount of resources requested; requests are honored only for persistent volumes as of now; see http://releases.k8s.io/v1.0.4/docs/design/resources.md#resource-specifications + Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: http://releases.k8s.io/release-1.2/docs/design/resources.md#resource-specifications :return: The requests of this V1ResourceRequirements. - :rtype: str + :rtype: object """ return self._requests @@ -84,10 +84,10 @@ class V1ResourceRequirements(object): def requests(self, requests): """ Sets the requests of this V1ResourceRequirements. - Minimum amount of resources requested; requests are honored only for persistent volumes as of now; see http://releases.k8s.io/v1.0.4/docs/design/resources.md#resource-specifications + Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: http://releases.k8s.io/release-1.2/docs/design/resources.md#resource-specifications :param requests: The requests of this V1ResourceRequirements. - :type: str + :type: object """ self._requests = requests diff --git a/k8sclient/client/models/v1_scale.py b/k8sclient/client/models/v1_scale.py new file mode 100644 index 0000000..cda42a3 --- /dev/null +++ b/k8sclient/client/models/v1_scale.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1Scale(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'api_version': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1ScaleSpec', + 'status': 'V1ScaleStatus' + } + + self.attribute_map = { + 'kind': 'kind', + 'api_version': 'apiVersion', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._kind = None + self._api_version = None + self._metadata = None + self._spec = None + self._status = None + + @property + def kind(self): + """ + Gets the kind of this V1Scale. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1Scale. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1Scale. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1Scale. + :type: str + """ + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1Scale. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1Scale. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1Scale. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1Scale. + :type: str + """ + self._api_version = api_version + + @property + def metadata(self): + """ + Gets the metadata of this V1Scale. + Standard object metadata; More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata. + + :return: The metadata of this V1Scale. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1Scale. + Standard object metadata; More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata. + + :param metadata: The metadata of this V1Scale. + :type: V1ObjectMeta + """ + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1Scale. + defines the behavior of the scale. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status. + + :return: The spec of this V1Scale. + :rtype: V1ScaleSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1Scale. + defines the behavior of the scale. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status. + + :param spec: The spec of this V1Scale. + :type: V1ScaleSpec + """ + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1Scale. + current status of the scale. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status. Read-only. + + :return: The status of this V1Scale. + :rtype: V1ScaleStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1Scale. + current status of the scale. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status. Read-only. + + :param status: The status of this V1Scale. + :type: V1ScaleStatus + """ + self._status = status + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/k8sclient/client/models/v1_scale_spec.py b/k8sclient/client/models/v1_scale_spec.py new file mode 100644 index 0000000..a10cef7 --- /dev/null +++ b/k8sclient/client/models/v1_scale_spec.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1ScaleSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'replicas': 'int' + } + + self.attribute_map = { + 'replicas': 'replicas' + } + + self._replicas = None + + @property + def replicas(self): + """ + Gets the replicas of this V1ScaleSpec. + desired number of instances for the scaled object. + + :return: The replicas of this V1ScaleSpec. + :rtype: int + """ + return self._replicas + + @replicas.setter + def replicas(self, replicas): + """ + Sets the replicas of this V1ScaleSpec. + desired number of instances for the scaled object. + + :param replicas: The replicas of this V1ScaleSpec. + :type: int + """ + self._replicas = replicas + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/k8sclient/client/models/v1_scale_status.py b/k8sclient/client/models/v1_scale_status.py new file mode 100644 index 0000000..76aef45 --- /dev/null +++ b/k8sclient/client/models/v1_scale_status.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1ScaleStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'replicas': 'int', + 'selector': 'str' + } + + self.attribute_map = { + 'replicas': 'replicas', + 'selector': 'selector' + } + + self._replicas = None + self._selector = None + + @property + def replicas(self): + """ + Gets the replicas of this V1ScaleStatus. + actual number of observed instances of the scaled object. + + :return: The replicas of this V1ScaleStatus. + :rtype: int + """ + return self._replicas + + @replicas.setter + def replicas(self, replicas): + """ + Sets the replicas of this V1ScaleStatus. + actual number of observed instances of the scaled object. + + :param replicas: The replicas of this V1ScaleStatus. + :type: int + """ + self._replicas = replicas + + @property + def selector(self): + """ + Gets the selector of this V1ScaleStatus. + label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: http://releases.k8s.io/release-1.2/docs/user-guide/labels.md#label-selectors + + :return: The selector of this V1ScaleStatus. + :rtype: str + """ + return self._selector + + @selector.setter + def selector(self, selector): + """ + Sets the selector of this V1ScaleStatus. + label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: http://releases.k8s.io/release-1.2/docs/user-guide/labels.md#label-selectors + + :param selector: The selector of this V1ScaleStatus. + :type: str + """ + self._selector = selector + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/k8sclient/client/models/v1_se_linux_options.py b/k8sclient/client/models/v1_se_linux_options.py index e661e77..da64f42 100644 --- a/k8sclient/client/models/v1_se_linux_options.py +++ b/k8sclient/client/models/v1_se_linux_options.py @@ -57,7 +57,7 @@ class V1SELinuxOptions(object): def user(self): """ Gets the user of this V1SELinuxOptions. - the user label to apply to the container; see http://releases.k8s.io/v1.0.4/docs/labels.md + User is a SELinux user label that applies to the container. :return: The user of this V1SELinuxOptions. :rtype: str @@ -68,7 +68,7 @@ class V1SELinuxOptions(object): def user(self, user): """ Sets the user of this V1SELinuxOptions. - the user label to apply to the container; see http://releases.k8s.io/v1.0.4/docs/labels.md + User is a SELinux user label that applies to the container. :param user: The user of this V1SELinuxOptions. :type: str @@ -79,7 +79,7 @@ class V1SELinuxOptions(object): def role(self): """ Gets the role of this V1SELinuxOptions. - the role label to apply to the container; see http://releases.k8s.io/v1.0.4/docs/labels.md + Role is a SELinux role label that applies to the container. :return: The role of this V1SELinuxOptions. :rtype: str @@ -90,7 +90,7 @@ class V1SELinuxOptions(object): def role(self, role): """ Sets the role of this V1SELinuxOptions. - the role label to apply to the container; see http://releases.k8s.io/v1.0.4/docs/labels.md + Role is a SELinux role label that applies to the container. :param role: The role of this V1SELinuxOptions. :type: str @@ -101,7 +101,7 @@ class V1SELinuxOptions(object): def type(self): """ Gets the type of this V1SELinuxOptions. - the type label to apply to the container; see http://releases.k8s.io/v1.0.4/docs/labels.md + Type is a SELinux type label that applies to the container. :return: The type of this V1SELinuxOptions. :rtype: str @@ -112,7 +112,7 @@ class V1SELinuxOptions(object): def type(self, type): """ Sets the type of this V1SELinuxOptions. - the type label to apply to the container; see http://releases.k8s.io/v1.0.4/docs/labels.md + Type is a SELinux type label that applies to the container. :param type: The type of this V1SELinuxOptions. :type: str @@ -123,7 +123,7 @@ class V1SELinuxOptions(object): def level(self): """ Gets the level of this V1SELinuxOptions. - the level label to apply to the container; see http://releases.k8s.io/v1.0.4/docs/labels.md + Level is SELinux level label that applies to the container. :return: The level of this V1SELinuxOptions. :rtype: str @@ -134,7 +134,7 @@ class V1SELinuxOptions(object): def level(self, level): """ Sets the level of this V1SELinuxOptions. - the level label to apply to the container; see http://releases.k8s.io/v1.0.4/docs/labels.md + Level is SELinux level label that applies to the container. :param level: The level of this V1SELinuxOptions. :type: str diff --git a/k8sclient/client/models/v1_secret.py b/k8sclient/client/models/v1_secret.py index f3d3cf8..4e21381 100644 --- a/k8sclient/client/models/v1_secret.py +++ b/k8sclient/client/models/v1_secret.py @@ -38,7 +38,7 @@ class V1Secret(object): 'kind': 'str', 'api_version': 'str', 'metadata': 'V1ObjectMeta', - 'data': 'str', + 'data': 'object', 'type': 'str' } @@ -60,7 +60,7 @@ class V1Secret(object): def kind(self): """ Gets the kind of this V1Secret. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1Secret. :rtype: str @@ -71,7 +71,7 @@ class V1Secret(object): def kind(self, kind): """ Sets the kind of this V1Secret. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1Secret. :type: str @@ -82,7 +82,7 @@ class V1Secret(object): def api_version(self): """ Gets the api_version of this V1Secret. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1Secret. :rtype: str @@ -93,7 +93,7 @@ class V1Secret(object): def api_version(self, api_version): """ Sets the api_version of this V1Secret. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1Secret. :type: str @@ -104,7 +104,7 @@ class V1Secret(object): def metadata(self): """ Gets the metadata of this V1Secret. - standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1Secret. :rtype: V1ObjectMeta @@ -115,7 +115,7 @@ class V1Secret(object): def metadata(self, metadata): """ Sets the metadata of this V1Secret. - standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1Secret. :type: V1ObjectMeta @@ -126,10 +126,10 @@ class V1Secret(object): def data(self): """ Gets the data of this V1Secret. - data contains the secret data. Each key must be a valid DNS_SUBDOMAIN or leading dot followed by valid DNS_SUBDOMAIN. Each value must be a base64 encoded string as described in https://tools.ietf.org/html/rfc4648#section-4 + Data contains the secret data. Each key must be a valid DNS_SUBDOMAIN or leading dot followed by valid DNS_SUBDOMAIN. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 :return: The data of this V1Secret. - :rtype: str + :rtype: object """ return self._data @@ -137,10 +137,10 @@ class V1Secret(object): def data(self, data): """ Sets the data of this V1Secret. - data contains the secret data. Each key must be a valid DNS_SUBDOMAIN or leading dot followed by valid DNS_SUBDOMAIN. Each value must be a base64 encoded string as described in https://tools.ietf.org/html/rfc4648#section-4 + Data contains the secret data. Each key must be a valid DNS_SUBDOMAIN or leading dot followed by valid DNS_SUBDOMAIN. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 :param data: The data of this V1Secret. - :type: str + :type: object """ self._data = data @@ -148,7 +148,7 @@ class V1Secret(object): def type(self): """ Gets the type of this V1Secret. - type facilitates programmatic handling of secret data + Used to facilitate programmatic handling of secret data. :return: The type of this V1Secret. :rtype: str @@ -159,7 +159,7 @@ class V1Secret(object): def type(self, type): """ Sets the type of this V1Secret. - type facilitates programmatic handling of secret data + Used to facilitate programmatic handling of secret data. :param type: The type of this V1Secret. :type: str diff --git a/k8sclient/client/models/v1_secret_key_selector.py b/k8sclient/client/models/v1_secret_key_selector.py new file mode 100644 index 0000000..b9f0c13 --- /dev/null +++ b/k8sclient/client/models/v1_secret_key_selector.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1SecretKeySelector(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'name': 'str', + 'key': 'str' + } + + self.attribute_map = { + 'name': 'name', + 'key': 'key' + } + + self._name = None + self._key = None + + @property + def name(self): + """ + Gets the name of this V1SecretKeySelector. + Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names + + :return: The name of this V1SecretKeySelector. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1SecretKeySelector. + Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names + + :param name: The name of this V1SecretKeySelector. + :type: str + """ + self._name = name + + @property + def key(self): + """ + Gets the key of this V1SecretKeySelector. + The key of the secret to select from. Must be a valid secret key. + + :return: The key of this V1SecretKeySelector. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """ + Sets the key of this V1SecretKeySelector. + The key of the secret to select from. Must be a valid secret key. + + :param key: The key of this V1SecretKeySelector. + :type: str + """ + self._key = key + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/k8sclient/client/models/v1_secret_list.py b/k8sclient/client/models/v1_secret_list.py index 0fd43f1..4e0ba23 100644 --- a/k8sclient/client/models/v1_secret_list.py +++ b/k8sclient/client/models/v1_secret_list.py @@ -37,7 +37,7 @@ class V1SecretList(object): self.swagger_types = { 'kind': 'str', 'api_version': 'str', - 'metadata': 'V1ListMeta', + 'metadata': 'UnversionedListMeta', 'items': 'list[V1Secret]' } @@ -57,7 +57,7 @@ class V1SecretList(object): def kind(self): """ Gets the kind of this V1SecretList. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1SecretList. :rtype: str @@ -68,7 +68,7 @@ class V1SecretList(object): def kind(self, kind): """ Sets the kind of this V1SecretList. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1SecretList. :type: str @@ -79,7 +79,7 @@ class V1SecretList(object): def api_version(self): """ Gets the api_version of this V1SecretList. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1SecretList. :rtype: str @@ -90,7 +90,7 @@ class V1SecretList(object): def api_version(self, api_version): """ Sets the api_version of this V1SecretList. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1SecretList. :type: str @@ -101,10 +101,10 @@ class V1SecretList(object): def metadata(self): """ Gets the metadata of this V1SecretList. - standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1SecretList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -112,10 +112,10 @@ class V1SecretList(object): def metadata(self, metadata): """ Sets the metadata of this V1SecretList. - standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1SecretList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata @@ -123,7 +123,7 @@ class V1SecretList(object): def items(self): """ Gets the items of this V1SecretList. - items is a list of secret objects; see http://releases.k8s.io/v1.0.4/docs/secrets.md + Items is a list of secret objects. More info: http://releases.k8s.io/release-1.2/docs/user-guide/secrets.md :return: The items of this V1SecretList. :rtype: list[V1Secret] @@ -134,7 +134,7 @@ class V1SecretList(object): def items(self, items): """ Sets the items of this V1SecretList. - items is a list of secret objects; see http://releases.k8s.io/v1.0.4/docs/secrets.md + Items is a list of secret objects. More info: http://releases.k8s.io/release-1.2/docs/user-guide/secrets.md :param items: The items of this V1SecretList. :type: list[V1Secret] diff --git a/k8sclient/client/models/v1_secret_volume_source.py b/k8sclient/client/models/v1_secret_volume_source.py index 67c5d24..8d060ca 100644 --- a/k8sclient/client/models/v1_secret_volume_source.py +++ b/k8sclient/client/models/v1_secret_volume_source.py @@ -48,7 +48,7 @@ class V1SecretVolumeSource(object): def secret_name(self): """ Gets the secret_name of this V1SecretVolumeSource. - secretName is the name of a secret in the pod's namespace; see http://releases.k8s.io/v1.0.4/docs/volumes.md#secrets + Name of the secret in the pod's namespace to use. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#secrets :return: The secret_name of this V1SecretVolumeSource. :rtype: str @@ -59,7 +59,7 @@ class V1SecretVolumeSource(object): def secret_name(self, secret_name): """ Sets the secret_name of this V1SecretVolumeSource. - secretName is the name of a secret in the pod's namespace; see http://releases.k8s.io/v1.0.4/docs/volumes.md#secrets + Name of the secret in the pod's namespace to use. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#secrets :param secret_name: The secret_name of this V1SecretVolumeSource. :type: str diff --git a/k8sclient/client/models/v1_security_context.py b/k8sclient/client/models/v1_security_context.py index a0dc3fe..284fa4c 100644 --- a/k8sclient/client/models/v1_security_context.py +++ b/k8sclient/client/models/v1_security_context.py @@ -38,26 +38,32 @@ class V1SecurityContext(object): 'capabilities': 'V1Capabilities', 'privileged': 'bool', 'se_linux_options': 'V1SELinuxOptions', - 'run_as_user': 'int' + 'run_as_user': 'int', + 'run_as_non_root': 'bool', + 'read_only_root_filesystem': 'bool' } self.attribute_map = { 'capabilities': 'capabilities', 'privileged': 'privileged', 'se_linux_options': 'seLinuxOptions', - 'run_as_user': 'runAsUser' + 'run_as_user': 'runAsUser', + 'run_as_non_root': 'runAsNonRoot', + 'read_only_root_filesystem': 'readOnlyRootFilesystem' } self._capabilities = None self._privileged = None self._se_linux_options = None self._run_as_user = None + self._run_as_non_root = None + self._read_only_root_filesystem = None @property def capabilities(self): """ Gets the capabilities of this V1SecurityContext. - the linux capabilites that should be added or removed; see http://releases.k8s.io/v1.0.4/docs/design/security_context.md#security-context + The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. :return: The capabilities of this V1SecurityContext. :rtype: V1Capabilities @@ -68,7 +74,7 @@ class V1SecurityContext(object): def capabilities(self, capabilities): """ Sets the capabilities of this V1SecurityContext. - the linux capabilites that should be added or removed; see http://releases.k8s.io/v1.0.4/docs/design/security_context.md#security-context + The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. :param capabilities: The capabilities of this V1SecurityContext. :type: V1Capabilities @@ -79,7 +85,7 @@ class V1SecurityContext(object): def privileged(self): """ Gets the privileged of this V1SecurityContext. - run the container in privileged mode; see http://releases.k8s.io/v1.0.4/docs/design/security_context.md#security-context + Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. :return: The privileged of this V1SecurityContext. :rtype: bool @@ -90,7 +96,7 @@ class V1SecurityContext(object): def privileged(self, privileged): """ Sets the privileged of this V1SecurityContext. - run the container in privileged mode; see http://releases.k8s.io/v1.0.4/docs/design/security_context.md#security-context + Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. :param privileged: The privileged of this V1SecurityContext. :type: bool @@ -101,7 +107,7 @@ class V1SecurityContext(object): def se_linux_options(self): """ Gets the se_linux_options of this V1SecurityContext. - options that control the SELinux labels applied; see http://releases.k8s.io/v1.0.4/docs/design/security_context.md#security-context + The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. :return: The se_linux_options of this V1SecurityContext. :rtype: V1SELinuxOptions @@ -112,7 +118,7 @@ class V1SecurityContext(object): def se_linux_options(self, se_linux_options): """ Sets the se_linux_options of this V1SecurityContext. - options that control the SELinux labels applied; see http://releases.k8s.io/v1.0.4/docs/design/security_context.md#security-context + The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. :param se_linux_options: The se_linux_options of this V1SecurityContext. :type: V1SELinuxOptions @@ -123,7 +129,7 @@ class V1SecurityContext(object): def run_as_user(self): """ Gets the run_as_user of this V1SecurityContext. - the user id that runs the first process in the container; see http://releases.k8s.io/v1.0.4/docs/design/security_context.md#security-context + 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. :return: The run_as_user of this V1SecurityContext. :rtype: int @@ -134,13 +140,57 @@ class V1SecurityContext(object): def run_as_user(self, run_as_user): """ Sets the run_as_user of this V1SecurityContext. - the user id that runs the first process in the container; see http://releases.k8s.io/v1.0.4/docs/design/security_context.md#security-context + 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. :param run_as_user: The run_as_user of this V1SecurityContext. :type: int """ self._run_as_user = run_as_user + @property + def run_as_non_root(self): + """ + Gets the run_as_non_root of this V1SecurityContext. + 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. + + :return: The run_as_non_root of this V1SecurityContext. + :rtype: bool + """ + return self._run_as_non_root + + @run_as_non_root.setter + def run_as_non_root(self, run_as_non_root): + """ + Sets the run_as_non_root of this V1SecurityContext. + 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. + + :param run_as_non_root: The run_as_non_root of this V1SecurityContext. + :type: bool + """ + self._run_as_non_root = run_as_non_root + + @property + def read_only_root_filesystem(self): + """ + Gets the read_only_root_filesystem of this V1SecurityContext. + Whether this container has a read-only root filesystem. Default is false. + + :return: The read_only_root_filesystem of this V1SecurityContext. + :rtype: bool + """ + return self._read_only_root_filesystem + + @read_only_root_filesystem.setter + def read_only_root_filesystem(self, read_only_root_filesystem): + """ + Sets the read_only_root_filesystem of this V1SecurityContext. + Whether this container has a read-only root filesystem. Default is false. + + :param read_only_root_filesystem: The read_only_root_filesystem of this V1SecurityContext. + :type: bool + """ + self._read_only_root_filesystem = read_only_root_filesystem + def to_dict(self): """ Return model properties dict diff --git a/k8sclient/client/models/v1_service.py b/k8sclient/client/models/v1_service.py index b0ddff0..a6dca82 100644 --- a/k8sclient/client/models/v1_service.py +++ b/k8sclient/client/models/v1_service.py @@ -60,7 +60,7 @@ class V1Service(object): def kind(self): """ Gets the kind of this V1Service. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1Service. :rtype: str @@ -71,7 +71,7 @@ class V1Service(object): def kind(self, kind): """ Sets the kind of this V1Service. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1Service. :type: str @@ -82,7 +82,7 @@ class V1Service(object): def api_version(self): """ Gets the api_version of this V1Service. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1Service. :rtype: str @@ -93,7 +93,7 @@ class V1Service(object): def api_version(self, api_version): """ Sets the api_version of this V1Service. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1Service. :type: str @@ -104,7 +104,7 @@ class V1Service(object): def metadata(self): """ Gets the metadata of this V1Service. - standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1Service. :rtype: V1ObjectMeta @@ -115,7 +115,7 @@ class V1Service(object): def metadata(self, metadata): """ Sets the metadata of this V1Service. - standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1Service. :type: V1ObjectMeta @@ -126,7 +126,7 @@ class V1Service(object): def spec(self): """ Gets the spec of this V1Service. - specification of the desired behavior of the service; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + Spec defines the behavior of a service. http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The spec of this V1Service. :rtype: V1ServiceSpec @@ -137,7 +137,7 @@ class V1Service(object): def spec(self, spec): """ Sets the spec of this V1Service. - specification of the desired behavior of the service; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + Spec defines the behavior of a service. http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param spec: The spec of this V1Service. :type: V1ServiceSpec @@ -148,7 +148,7 @@ class V1Service(object): def status(self): """ Gets the status of this V1Service. - most recently observed status of the service; populated by the system, read-only; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + Most recently observed status of the service. Populated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The status of this V1Service. :rtype: V1ServiceStatus @@ -159,7 +159,7 @@ class V1Service(object): def status(self, status): """ Sets the status of this V1Service. - most recently observed status of the service; populated by the system, read-only; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + Most recently observed status of the service. Populated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param status: The status of this V1Service. :type: V1ServiceStatus diff --git a/k8sclient/client/models/v1_service_account.py b/k8sclient/client/models/v1_service_account.py index b4cb57c..2049ecc 100644 --- a/k8sclient/client/models/v1_service_account.py +++ b/k8sclient/client/models/v1_service_account.py @@ -60,7 +60,7 @@ class V1ServiceAccount(object): def kind(self): """ Gets the kind of this V1ServiceAccount. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1ServiceAccount. :rtype: str @@ -71,7 +71,7 @@ class V1ServiceAccount(object): def kind(self, kind): """ Sets the kind of this V1ServiceAccount. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1ServiceAccount. :type: str @@ -82,7 +82,7 @@ class V1ServiceAccount(object): def api_version(self): """ Gets the api_version of this V1ServiceAccount. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1ServiceAccount. :rtype: str @@ -93,7 +93,7 @@ class V1ServiceAccount(object): def api_version(self, api_version): """ Sets the api_version of this V1ServiceAccount. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1ServiceAccount. :type: str @@ -104,7 +104,7 @@ class V1ServiceAccount(object): def metadata(self): """ Gets the metadata of this V1ServiceAccount. - standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1ServiceAccount. :rtype: V1ObjectMeta @@ -115,7 +115,7 @@ class V1ServiceAccount(object): def metadata(self, metadata): """ Sets the metadata of this V1ServiceAccount. - standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1ServiceAccount. :type: V1ObjectMeta @@ -126,7 +126,7 @@ class V1ServiceAccount(object): def secrets(self): """ Gets the secrets of this V1ServiceAccount. - list of secrets that can be used by pods running as this service account; see http://releases.k8s.io/v1.0.4/docs/secrets.md + Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: http://releases.k8s.io/release-1.2/docs/user-guide/secrets.md :return: The secrets of this V1ServiceAccount. :rtype: list[V1ObjectReference] @@ -137,7 +137,7 @@ class V1ServiceAccount(object): def secrets(self, secrets): """ Sets the secrets of this V1ServiceAccount. - list of secrets that can be used by pods running as this service account; see http://releases.k8s.io/v1.0.4/docs/secrets.md + Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: http://releases.k8s.io/release-1.2/docs/user-guide/secrets.md :param secrets: The secrets of this V1ServiceAccount. :type: list[V1ObjectReference] @@ -148,7 +148,7 @@ class V1ServiceAccount(object): def image_pull_secrets(self): """ Gets the image_pull_secrets of this V1ServiceAccount. - list of references to secrets in the same namespace available for pulling container images; see http://releases.k8s.io/v1.0.4/docs/secrets.md#manually-specifying-an-imagepullsecret + ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: http://releases.k8s.io/release-1.2/docs/user-guide/secrets.md#manually-specifying-an-imagepullsecret :return: The image_pull_secrets of this V1ServiceAccount. :rtype: list[V1LocalObjectReference] @@ -159,7 +159,7 @@ class V1ServiceAccount(object): def image_pull_secrets(self, image_pull_secrets): """ Sets the image_pull_secrets of this V1ServiceAccount. - list of references to secrets in the same namespace available for pulling container images; see http://releases.k8s.io/v1.0.4/docs/secrets.md#manually-specifying-an-imagepullsecret + ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: http://releases.k8s.io/release-1.2/docs/user-guide/secrets.md#manually-specifying-an-imagepullsecret :param image_pull_secrets: The image_pull_secrets of this V1ServiceAccount. :type: list[V1LocalObjectReference] diff --git a/k8sclient/client/models/v1_service_account_list.py b/k8sclient/client/models/v1_service_account_list.py index 200b759..9675d63 100644 --- a/k8sclient/client/models/v1_service_account_list.py +++ b/k8sclient/client/models/v1_service_account_list.py @@ -37,7 +37,7 @@ class V1ServiceAccountList(object): self.swagger_types = { 'kind': 'str', 'api_version': 'str', - 'metadata': 'V1ListMeta', + 'metadata': 'UnversionedListMeta', 'items': 'list[V1ServiceAccount]' } @@ -57,7 +57,7 @@ class V1ServiceAccountList(object): def kind(self): """ Gets the kind of this V1ServiceAccountList. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1ServiceAccountList. :rtype: str @@ -68,7 +68,7 @@ class V1ServiceAccountList(object): def kind(self, kind): """ Sets the kind of this V1ServiceAccountList. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1ServiceAccountList. :type: str @@ -79,7 +79,7 @@ class V1ServiceAccountList(object): def api_version(self): """ Gets the api_version of this V1ServiceAccountList. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1ServiceAccountList. :rtype: str @@ -90,7 +90,7 @@ class V1ServiceAccountList(object): def api_version(self, api_version): """ Sets the api_version of this V1ServiceAccountList. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1ServiceAccountList. :type: str @@ -101,10 +101,10 @@ class V1ServiceAccountList(object): def metadata(self): """ Gets the metadata of this V1ServiceAccountList. - standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1ServiceAccountList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -112,10 +112,10 @@ class V1ServiceAccountList(object): def metadata(self, metadata): """ Sets the metadata of this V1ServiceAccountList. - standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1ServiceAccountList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata @@ -123,7 +123,7 @@ class V1ServiceAccountList(object): def items(self): """ Gets the items of this V1ServiceAccountList. - list of ServiceAccounts; see http://releases.k8s.io/v1.0.4/docs/service_accounts.md#service-accounts + List of ServiceAccounts. More info: http://releases.k8s.io/release-1.2/docs/design/service_accounts.md#service-accounts :return: The items of this V1ServiceAccountList. :rtype: list[V1ServiceAccount] @@ -134,7 +134,7 @@ class V1ServiceAccountList(object): def items(self, items): """ Sets the items of this V1ServiceAccountList. - list of ServiceAccounts; see http://releases.k8s.io/v1.0.4/docs/service_accounts.md#service-accounts + List of ServiceAccounts. More info: http://releases.k8s.io/release-1.2/docs/design/service_accounts.md#service-accounts :param items: The items of this V1ServiceAccountList. :type: list[V1ServiceAccount] diff --git a/k8sclient/client/models/v1_service_list.py b/k8sclient/client/models/v1_service_list.py index 792902d..aca66c1 100644 --- a/k8sclient/client/models/v1_service_list.py +++ b/k8sclient/client/models/v1_service_list.py @@ -37,7 +37,7 @@ class V1ServiceList(object): self.swagger_types = { 'kind': 'str', 'api_version': 'str', - 'metadata': 'V1ListMeta', + 'metadata': 'UnversionedListMeta', 'items': 'list[V1Service]' } @@ -57,7 +57,7 @@ class V1ServiceList(object): def kind(self): """ Gets the kind of this V1ServiceList. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1ServiceList. :rtype: str @@ -68,7 +68,7 @@ class V1ServiceList(object): def kind(self, kind): """ Sets the kind of this V1ServiceList. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1ServiceList. :type: str @@ -79,7 +79,7 @@ class V1ServiceList(object): def api_version(self): """ Gets the api_version of this V1ServiceList. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1ServiceList. :rtype: str @@ -90,7 +90,7 @@ class V1ServiceList(object): def api_version(self, api_version): """ Sets the api_version of this V1ServiceList. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1ServiceList. :type: str @@ -101,10 +101,10 @@ class V1ServiceList(object): def metadata(self): """ Gets the metadata of this V1ServiceList. - standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1ServiceList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -112,10 +112,10 @@ class V1ServiceList(object): def metadata(self, metadata): """ Sets the metadata of this V1ServiceList. - standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1ServiceList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata @@ -123,7 +123,7 @@ class V1ServiceList(object): def items(self): """ Gets the items of this V1ServiceList. - list of services + List of services :return: The items of this V1ServiceList. :rtype: list[V1Service] @@ -134,7 +134,7 @@ class V1ServiceList(object): def items(self, items): """ Sets the items of this V1ServiceList. - list of services + List of services :param items: The items of this V1ServiceList. :type: list[V1Service] diff --git a/k8sclient/client/models/v1_service_port.py b/k8sclient/client/models/v1_service_port.py index fc7d96a..b52c993 100644 --- a/k8sclient/client/models/v1_service_port.py +++ b/k8sclient/client/models/v1_service_port.py @@ -60,7 +60,7 @@ class V1ServicePort(object): def name(self): """ Gets the name of this V1ServicePort. - the name of this port; optional if only one port is defined + The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. This maps to the 'Name' field in EndpointPort objects. Optional if only one ServicePort is defined on this service. :return: The name of this V1ServicePort. :rtype: str @@ -71,7 +71,7 @@ class V1ServicePort(object): def name(self, name): """ Sets the name of this V1ServicePort. - the name of this port; optional if only one port is defined + The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. This maps to the 'Name' field in EndpointPort objects. Optional if only one ServicePort is defined on this service. :param name: The name of this V1ServicePort. :type: str @@ -82,7 +82,7 @@ class V1ServicePort(object): def protocol(self): """ Gets the protocol of this V1ServicePort. - the protocol used by this port; must be UDP or TCP; TCP if unspecified + The IP protocol for this port. Supports \"TCP\" and \"UDP\". Default is TCP. :return: The protocol of this V1ServicePort. :rtype: str @@ -93,7 +93,7 @@ class V1ServicePort(object): def protocol(self, protocol): """ Sets the protocol of this V1ServicePort. - the protocol used by this port; must be UDP or TCP; TCP if unspecified + The IP protocol for this port. Supports \"TCP\" and \"UDP\". Default is TCP. :param protocol: The protocol of this V1ServicePort. :type: str @@ -104,7 +104,7 @@ class V1ServicePort(object): def port(self): """ Gets the port of this V1ServicePort. - the port number that is exposed + The port that will be exposed by this service. :return: The port of this V1ServicePort. :rtype: int @@ -115,7 +115,7 @@ class V1ServicePort(object): def port(self, port): """ Sets the port of this V1ServicePort. - the port number that is exposed + The port that will be exposed by this service. :param port: The port of this V1ServicePort. :type: int @@ -126,7 +126,7 @@ class V1ServicePort(object): def target_port(self): """ Gets the target_port of this V1ServicePort. - number or name of the port to access on the pods targeted by the service; defaults to the service port; number must be in the range 1 to 65535; name must be an IANA_SVC_NAME; see http://releases.k8s.io/v1.0.4/docs/services.md#defining-a-service + Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#defining-a-service :return: The target_port of this V1ServicePort. :rtype: str @@ -137,7 +137,7 @@ class V1ServicePort(object): def target_port(self, target_port): """ Sets the target_port of this V1ServicePort. - number or name of the port to access on the pods targeted by the service; defaults to the service port; number must be in the range 1 to 65535; name must be an IANA_SVC_NAME; see http://releases.k8s.io/v1.0.4/docs/services.md#defining-a-service + Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#defining-a-service :param target_port: The target_port of this V1ServicePort. :type: str @@ -148,7 +148,7 @@ class V1ServicePort(object): def node_port(self): """ Gets the node_port of this V1ServicePort. - 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; see http://releases.k8s.io/v1.0.4/docs/services.md#type--nodeport + 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: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#type--nodeport :return: The node_port of this V1ServicePort. :rtype: int @@ -159,7 +159,7 @@ class V1ServicePort(object): def node_port(self, node_port): """ Sets the node_port of this V1ServicePort. - 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; see http://releases.k8s.io/v1.0.4/docs/services.md#type--nodeport + 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: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#type--nodeport :param node_port: The node_port of this V1ServicePort. :type: int diff --git a/k8sclient/client/models/v1_service_spec.py b/k8sclient/client/models/v1_service_spec.py index 1bbcf45..77faea5 100644 --- a/k8sclient/client/models/v1_service_spec.py +++ b/k8sclient/client/models/v1_service_spec.py @@ -36,11 +36,13 @@ class V1ServiceSpec(object): """ self.swagger_types = { 'ports': 'list[V1ServicePort]', - 'selector': 'str', + 'selector': 'object', 'cluster_ip': 'str', 'type': 'str', + 'external_i_ps': 'list[str]', 'deprecated_public_i_ps': 'list[str]', - 'session_affinity': 'str' + 'session_affinity': 'str', + 'load_balancer_ip': 'str' } self.attribute_map = { @@ -48,22 +50,26 @@ class V1ServiceSpec(object): 'selector': 'selector', 'cluster_ip': 'clusterIP', 'type': 'type', + 'external_i_ps': 'externalIPs', 'deprecated_public_i_ps': 'deprecatedPublicIPs', - 'session_affinity': 'sessionAffinity' + 'session_affinity': 'sessionAffinity', + 'load_balancer_ip': 'loadBalancerIP' } self._ports = None self._selector = None self._cluster_ip = None self._type = None + self._external_i_ps = None self._deprecated_public_i_ps = None self._session_affinity = None + self._load_balancer_ip = None @property def ports(self): """ Gets the ports of this V1ServiceSpec. - ports exposed by the service; see http://releases.k8s.io/v1.0.4/docs/services.md#virtual-ips-and-service-proxies + The list of ports that are exposed by this service. More info: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#virtual-ips-and-service-proxies :return: The ports of this V1ServiceSpec. :rtype: list[V1ServicePort] @@ -74,7 +80,7 @@ class V1ServiceSpec(object): def ports(self, ports): """ Sets the ports of this V1ServiceSpec. - ports exposed by the service; see http://releases.k8s.io/v1.0.4/docs/services.md#virtual-ips-and-service-proxies + The list of ports that are exposed by this service. More info: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#virtual-ips-and-service-proxies :param ports: The ports of this V1ServiceSpec. :type: list[V1ServicePort] @@ -85,10 +91,10 @@ class V1ServiceSpec(object): def selector(self): """ Gets the selector of this V1ServiceSpec. - label keys and values that must match in order to receive traffic for this service; if empty, all pods are selected, if not specified, endpoints must be manually specified; see http://releases.k8s.io/v1.0.4/docs/services.md#overview + This service will route traffic to pods having labels matching this selector. Label keys and values that must match in order to receive traffic for this service. If empty, all pods are selected, if not specified, endpoints must be manually specified. More info: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#overview :return: The selector of this V1ServiceSpec. - :rtype: str + :rtype: object """ return self._selector @@ -96,10 +102,10 @@ class V1ServiceSpec(object): def selector(self, selector): """ Sets the selector of this V1ServiceSpec. - label keys and values that must match in order to receive traffic for this service; if empty, all pods are selected, if not specified, endpoints must be manually specified; see http://releases.k8s.io/v1.0.4/docs/services.md#overview + This service will route traffic to pods having labels matching this selector. Label keys and values that must match in order to receive traffic for this service. If empty, all pods are selected, if not specified, endpoints must be manually specified. More info: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#overview :param selector: The selector of this V1ServiceSpec. - :type: str + :type: object """ self._selector = selector @@ -107,7 +113,7 @@ class V1ServiceSpec(object): def cluster_ip(self): """ Gets the cluster_ip of this V1ServiceSpec. - IP address of the service; usually assigned by the system; if specified, it will be allocated to the service if unused or else creation of the service will fail; cannot be updated; 'None' can be specified for a headless service when proxying is not required; see http://releases.k8s.io/v1.0.4/docs/services.md#virtual-ips-and-service-proxies + ClusterIP is usually assigned by the master and is the IP address of the service. If specified, it will be allocated to the service if it is unused or else creation of the service will fail. Valid values are None, empty string (\"\"), or a valid IP address. 'None' can be specified for a headless service when proxying is not required. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#virtual-ips-and-service-proxies :return: The cluster_ip of this V1ServiceSpec. :rtype: str @@ -118,7 +124,7 @@ class V1ServiceSpec(object): def cluster_ip(self, cluster_ip): """ Sets the cluster_ip of this V1ServiceSpec. - IP address of the service; usually assigned by the system; if specified, it will be allocated to the service if unused or else creation of the service will fail; cannot be updated; 'None' can be specified for a headless service when proxying is not required; see http://releases.k8s.io/v1.0.4/docs/services.md#virtual-ips-and-service-proxies + ClusterIP is usually assigned by the master and is the IP address of the service. If specified, it will be allocated to the service if it is unused or else creation of the service will fail. Valid values are None, empty string (\"\"), or a valid IP address. 'None' can be specified for a headless service when proxying is not required. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#virtual-ips-and-service-proxies :param cluster_ip: The cluster_ip of this V1ServiceSpec. :type: str @@ -129,7 +135,7 @@ class V1ServiceSpec(object): def type(self): """ Gets the type of this V1ServiceSpec. - type of this service; must be ClusterIP, NodePort, or LoadBalancer; defaults to ClusterIP; see http://releases.k8s.io/v1.0.4/docs/services.md#external-services + Type of exposed service. Must be ClusterIP, NodePort, or LoadBalancer. Defaults to ClusterIP. More info: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#external-services :return: The type of this V1ServiceSpec. :rtype: str @@ -140,18 +146,40 @@ class V1ServiceSpec(object): def type(self, type): """ Sets the type of this V1ServiceSpec. - type of this service; must be ClusterIP, NodePort, or LoadBalancer; defaults to ClusterIP; see http://releases.k8s.io/v1.0.4/docs/services.md#external-services + Type of exposed service. Must be ClusterIP, NodePort, or LoadBalancer. Defaults to ClusterIP. More info: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#external-services :param type: The type of this V1ServiceSpec. :type: str """ self._type = type + @property + def external_i_ps(self): + """ + Gets the external_i_ps of this V1ServiceSpec. + 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. A previous form of this functionality exists as the deprecatedPublicIPs field. When using this field, callers should also clear the deprecatedPublicIPs field. + + :return: The external_i_ps of this V1ServiceSpec. + :rtype: list[str] + """ + return self._external_i_ps + + @external_i_ps.setter + def external_i_ps(self, external_i_ps): + """ + Sets the external_i_ps of this V1ServiceSpec. + 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. A previous form of this functionality exists as the deprecatedPublicIPs field. When using this field, callers should also clear the deprecatedPublicIPs field. + + :param external_i_ps: The external_i_ps of this V1ServiceSpec. + :type: list[str] + """ + self._external_i_ps = external_i_ps + @property def deprecated_public_i_ps(self): """ Gets the deprecated_public_i_ps of this V1ServiceSpec. - deprecated. externally visible IPs (e.g. load balancers) that should be proxied to this service + deprecatedPublicIPs is deprecated and replaced by the externalIPs field with almost the exact same semantics. This field is retained in the v1 API for compatibility until at least 8/20/2016. It will be removed from any new API revisions. If both deprecatedPublicIPs *and* externalIPs are set, deprecatedPublicIPs is used. :return: The deprecated_public_i_ps of this V1ServiceSpec. :rtype: list[str] @@ -162,7 +190,7 @@ class V1ServiceSpec(object): def deprecated_public_i_ps(self, deprecated_public_i_ps): """ Sets the deprecated_public_i_ps of this V1ServiceSpec. - deprecated. externally visible IPs (e.g. load balancers) that should be proxied to this service + deprecatedPublicIPs is deprecated and replaced by the externalIPs field with almost the exact same semantics. This field is retained in the v1 API for compatibility until at least 8/20/2016. It will be removed from any new API revisions. If both deprecatedPublicIPs *and* externalIPs are set, deprecatedPublicIPs is used. :param deprecated_public_i_ps: The deprecated_public_i_ps of this V1ServiceSpec. :type: list[str] @@ -173,7 +201,7 @@ class V1ServiceSpec(object): def session_affinity(self): """ Gets the session_affinity of this V1ServiceSpec. - enable client IP based session affinity; must be ClientIP or None; defaults to None; see http://releases.k8s.io/v1.0.4/docs/services.md#virtual-ips-and-service-proxies + Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#virtual-ips-and-service-proxies :return: The session_affinity of this V1ServiceSpec. :rtype: str @@ -184,13 +212,35 @@ class V1ServiceSpec(object): def session_affinity(self, session_affinity): """ Sets the session_affinity of this V1ServiceSpec. - enable client IP based session affinity; must be ClientIP or None; defaults to None; see http://releases.k8s.io/v1.0.4/docs/services.md#virtual-ips-and-service-proxies + Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#virtual-ips-and-service-proxies :param session_affinity: The session_affinity of this V1ServiceSpec. :type: str """ self._session_affinity = session_affinity + @property + def load_balancer_ip(self): + """ + Gets the load_balancer_ip of this V1ServiceSpec. + 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. + + :return: The load_balancer_ip of this V1ServiceSpec. + :rtype: str + """ + return self._load_balancer_ip + + @load_balancer_ip.setter + def load_balancer_ip(self, load_balancer_ip): + """ + Sets the load_balancer_ip of this V1ServiceSpec. + 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. + + :param load_balancer_ip: The load_balancer_ip of this V1ServiceSpec. + :type: str + """ + self._load_balancer_ip = load_balancer_ip + def to_dict(self): """ Return model properties dict diff --git a/k8sclient/client/models/v1_service_status.py b/k8sclient/client/models/v1_service_status.py index 85ce4c1..07346d2 100644 --- a/k8sclient/client/models/v1_service_status.py +++ b/k8sclient/client/models/v1_service_status.py @@ -48,7 +48,7 @@ class V1ServiceStatus(object): def load_balancer(self): """ Gets the load_balancer of this V1ServiceStatus. - status of load-balancer + LoadBalancer contains the current status of the load-balancer, if one is present. :return: The load_balancer of this V1ServiceStatus. :rtype: V1LoadBalancerStatus @@ -59,7 +59,7 @@ class V1ServiceStatus(object): def load_balancer(self, load_balancer): """ Sets the load_balancer of this V1ServiceStatus. - status of load-balancer + LoadBalancer contains the current status of the load-balancer, if one is present. :param load_balancer: The load_balancer of this V1ServiceStatus. :type: V1LoadBalancerStatus diff --git a/k8sclient/client/models/v1_status.py b/k8sclient/client/models/v1_status.py deleted file mode 100644 index 02ab6a2..0000000 --- a/k8sclient/client/models/v1_status.py +++ /dev/null @@ -1,274 +0,0 @@ -# coding: utf-8 - -""" -Copyright 2015 SmartBear Software - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -""" - -from pprint import pformat -from six import iteritems - - -class V1Status(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self): - """ - Swagger model - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'kind': 'str', - 'api_version': 'str', - 'metadata': 'V1ListMeta', - 'status': 'str', - 'message': 'str', - 'reason': 'str', - 'details': 'V1StatusDetails', - 'code': 'int' - } - - self.attribute_map = { - 'kind': 'kind', - 'api_version': 'apiVersion', - 'metadata': 'metadata', - 'status': 'status', - 'message': 'message', - 'reason': 'reason', - 'details': 'details', - 'code': 'code' - } - - self._kind = None - self._api_version = None - self._metadata = None - self._status = None - self._message = None - self._reason = None - self._details = None - self._code = None - - @property - def kind(self): - """ - Gets the kind of this V1Status. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds - - :return: The kind of this V1Status. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this V1Status. - kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds - - :param kind: The kind of this V1Status. - :type: str - """ - self._kind = kind - - @property - def api_version(self): - """ - Gets the api_version of this V1Status. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources - - :return: The api_version of this V1Status. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this V1Status. - version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources - - :param api_version: The api_version of this V1Status. - :type: str - """ - self._api_version = api_version - - @property - def metadata(self): - """ - Gets the metadata of this V1Status. - standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata - - :return: The metadata of this V1Status. - :rtype: V1ListMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this V1Status. - standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata - - :param metadata: The metadata of this V1Status. - :type: V1ListMeta - """ - self._metadata = metadata - - @property - def status(self): - """ - Gets the status of this V1Status. - status of the operation; either Success, or Failure; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status - - :return: The status of this V1Status. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this V1Status. - status of the operation; either Success, or Failure; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status - - :param status: The status of this V1Status. - :type: str - """ - self._status = status - - @property - def message(self): - """ - Gets the message of this V1Status. - human-readable description of the status of this operation - - :return: The message of this V1Status. - :rtype: str - """ - return self._message - - @message.setter - def message(self, message): - """ - Sets the message of this V1Status. - human-readable description of the status of this operation - - :param message: The message of this V1Status. - :type: str - """ - self._message = message - - @property - def reason(self): - """ - Gets the reason of this V1Status. - machine-readable description of why this operation is in the 'Failure' status; if this value is empty there is no information available; a reason clarifies an HTTP status code but does not override it - - :return: The reason of this V1Status. - :rtype: str - """ - return self._reason - - @reason.setter - def reason(self, reason): - """ - Sets the reason of this V1Status. - machine-readable description of why this operation is in the 'Failure' status; if this value is empty there is no information available; a reason clarifies an HTTP status code but does not override it - - :param reason: The reason of this V1Status. - :type: str - """ - self._reason = reason - - @property - def details(self): - """ - Gets the details of this V1Status. - extended data associated with the reason; each reason may define its own extended details; this field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type - - :return: The details of this V1Status. - :rtype: V1StatusDetails - """ - return self._details - - @details.setter - def details(self, details): - """ - Sets the details of this V1Status. - extended data associated with the reason; each reason may define its own extended details; this field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type - - :param details: The details of this V1Status. - :type: V1StatusDetails - """ - self._details = details - - @property - def code(self): - """ - Gets the code of this V1Status. - suggested HTTP return code for this status; 0 if not set - - :return: The code of this V1Status. - :rtype: int - """ - return self._code - - @code.setter - def code(self, code): - """ - Sets the code of this V1Status. - suggested HTTP return code for this status; 0 if not set - - :param code: The code of this V1Status. - :type: int - """ - self._code = code - - def to_dict(self): - """ - Return model properties dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - else: - result[attr] = value - - return result - - def to_str(self): - """ - Return model properties str - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() diff --git a/k8sclient/client/models/v1_tcp_socket_action.py b/k8sclient/client/models/v1_tcp_socket_action.py index af1c580..1efd5cd 100644 --- a/k8sclient/client/models/v1_tcp_socket_action.py +++ b/k8sclient/client/models/v1_tcp_socket_action.py @@ -48,7 +48,7 @@ class V1TCPSocketAction(object): def port(self): """ Gets the port of this V1TCPSocketAction. - number of name of the port to access on the container; number must be in the range 1 to 65535; name must be an IANA_SVC_NAME + Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. :return: The port of this V1TCPSocketAction. :rtype: str @@ -59,7 +59,7 @@ class V1TCPSocketAction(object): def port(self, port): """ Sets the port of this V1TCPSocketAction. - number of name of the port to access on the container; number must be in the range 1 to 65535; name must be an IANA_SVC_NAME + Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. :param port: The port of this V1TCPSocketAction. :type: str diff --git a/k8sclient/client/models/v1_volume.py b/k8sclient/client/models/v1_volume.py index 40f5595..de49ef2 100644 --- a/k8sclient/client/models/v1_volume.py +++ b/k8sclient/client/models/v1_volume.py @@ -46,7 +46,15 @@ class V1Volume(object): 'iscsi': 'V1ISCSIVolumeSource', 'glusterfs': 'V1GlusterfsVolumeSource', 'persistent_volume_claim': 'V1PersistentVolumeClaimVolumeSource', - 'rbd': 'V1RBDVolumeSource' + 'rbd': 'V1RBDVolumeSource', + 'flex_volume': 'V1FlexVolumeSource', + 'cinder': 'V1CinderVolumeSource', + 'cephfs': 'V1CephFSVolumeSource', + 'flocker': 'V1FlockerVolumeSource', + 'downward_api': 'V1DownwardAPIVolumeSource', + 'fc': 'V1FCVolumeSource', + 'azure_file': 'V1AzureFileVolumeSource', + 'config_map': 'V1ConfigMapVolumeSource' } self.attribute_map = { @@ -61,7 +69,15 @@ class V1Volume(object): 'iscsi': 'iscsi', 'glusterfs': 'glusterfs', 'persistent_volume_claim': 'persistentVolumeClaim', - 'rbd': 'rbd' + 'rbd': 'rbd', + 'flex_volume': 'flexVolume', + 'cinder': 'cinder', + 'cephfs': 'cephfs', + 'flocker': 'flocker', + 'downward_api': 'downwardAPI', + 'fc': 'fc', + 'azure_file': 'azureFile', + 'config_map': 'configMap' } self._name = None @@ -76,12 +92,20 @@ class V1Volume(object): self._glusterfs = None self._persistent_volume_claim = None self._rbd = None + self._flex_volume = None + self._cinder = None + self._cephfs = None + self._flocker = None + self._downward_api = None + self._fc = None + self._azure_file = None + self._config_map = None @property def name(self): """ Gets the name of this V1Volume. - volume name; must be a DNS_LABEL and unique within the pod; see http://releases.k8s.io/v1.0.4/docs/identifiers.md#names + Volume's name. Must be a DNS_LABEL and unique within the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :return: The name of this V1Volume. :rtype: str @@ -92,7 +116,7 @@ class V1Volume(object): def name(self, name): """ Sets the name of this V1Volume. - volume name; must be a DNS_LABEL and unique within the pod; see http://releases.k8s.io/v1.0.4/docs/identifiers.md#names + Volume's name. Must be a DNS_LABEL and unique within the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :param name: The name of this V1Volume. :type: str @@ -103,7 +127,7 @@ class V1Volume(object): def host_path(self): """ Gets the host_path of this V1Volume. - pre-existing host file or directory; generally for privileged system daemons or other agents tied to the host; see http://releases.k8s.io/v1.0.4/docs/volumes.md#hostpath + HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#hostpath :return: The host_path of this V1Volume. :rtype: V1HostPathVolumeSource @@ -114,7 +138,7 @@ class V1Volume(object): def host_path(self, host_path): """ Sets the host_path of this V1Volume. - pre-existing host file or directory; generally for privileged system daemons or other agents tied to the host; see http://releases.k8s.io/v1.0.4/docs/volumes.md#hostpath + HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#hostpath :param host_path: The host_path of this V1Volume. :type: V1HostPathVolumeSource @@ -125,7 +149,7 @@ class V1Volume(object): def empty_dir(self): """ Gets the empty_dir of this V1Volume. - temporary directory that shares a pod's lifetime; see http://releases.k8s.io/v1.0.4/docs/volumes.md#emptydir + EmptyDir represents a temporary directory that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#emptydir :return: The empty_dir of this V1Volume. :rtype: V1EmptyDirVolumeSource @@ -136,7 +160,7 @@ class V1Volume(object): def empty_dir(self, empty_dir): """ Sets the empty_dir of this V1Volume. - temporary directory that shares a pod's lifetime; see http://releases.k8s.io/v1.0.4/docs/volumes.md#emptydir + EmptyDir represents a temporary directory that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#emptydir :param empty_dir: The empty_dir of this V1Volume. :type: V1EmptyDirVolumeSource @@ -147,7 +171,7 @@ class V1Volume(object): def gce_persistent_disk(self): """ Gets the gce_persistent_disk of this V1Volume. - GCE disk resource attached to the host machine on demand; see http://releases.k8s.io/v1.0.4/docs/volumes.md#gcepersistentdisk + GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :return: The gce_persistent_disk of this V1Volume. :rtype: V1GCEPersistentDiskVolumeSource @@ -158,7 +182,7 @@ class V1Volume(object): def gce_persistent_disk(self, gce_persistent_disk): """ Sets the gce_persistent_disk of this V1Volume. - GCE disk resource attached to the host machine on demand; see http://releases.k8s.io/v1.0.4/docs/volumes.md#gcepersistentdisk + GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :param gce_persistent_disk: The gce_persistent_disk of this V1Volume. :type: V1GCEPersistentDiskVolumeSource @@ -169,7 +193,7 @@ class V1Volume(object): def aws_elastic_block_store(self): """ Gets the aws_elastic_block_store of this V1Volume. - AWS disk resource attached to the host machine on demand; see http://releases.k8s.io/v1.0.4/docs/volumes.md#awselasticblockstore + AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore :return: The aws_elastic_block_store of this V1Volume. :rtype: V1AWSElasticBlockStoreVolumeSource @@ -180,7 +204,7 @@ class V1Volume(object): def aws_elastic_block_store(self, aws_elastic_block_store): """ Sets the aws_elastic_block_store of this V1Volume. - AWS disk resource attached to the host machine on demand; see http://releases.k8s.io/v1.0.4/docs/volumes.md#awselasticblockstore + AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore :param aws_elastic_block_store: The aws_elastic_block_store of this V1Volume. :type: V1AWSElasticBlockStoreVolumeSource @@ -191,7 +215,7 @@ class V1Volume(object): def git_repo(self): """ Gets the git_repo of this V1Volume. - git repository at a particular revision + GitRepo represents a git repository at a particular revision. :return: The git_repo of this V1Volume. :rtype: V1GitRepoVolumeSource @@ -202,7 +226,7 @@ class V1Volume(object): def git_repo(self, git_repo): """ Sets the git_repo of this V1Volume. - git repository at a particular revision + GitRepo represents a git repository at a particular revision. :param git_repo: The git_repo of this V1Volume. :type: V1GitRepoVolumeSource @@ -213,7 +237,7 @@ class V1Volume(object): def secret(self): """ Gets the secret of this V1Volume. - secret to populate volume; see http://releases.k8s.io/v1.0.4/docs/volumes.md#secrets + Secret represents a secret that should populate this volume. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#secrets :return: The secret of this V1Volume. :rtype: V1SecretVolumeSource @@ -224,7 +248,7 @@ class V1Volume(object): def secret(self, secret): """ Sets the secret of this V1Volume. - secret to populate volume; see http://releases.k8s.io/v1.0.4/docs/volumes.md#secrets + Secret represents a secret that should populate this volume. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#secrets :param secret: The secret of this V1Volume. :type: V1SecretVolumeSource @@ -235,7 +259,7 @@ class V1Volume(object): def nfs(self): """ Gets the nfs of this V1Volume. - NFS volume that will be mounted in the host machine; see http://releases.k8s.io/v1.0.4/docs/volumes.md#nfs + NFS represents an NFS mount on the host that shares a pod's lifetime More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs :return: The nfs of this V1Volume. :rtype: V1NFSVolumeSource @@ -246,7 +270,7 @@ class V1Volume(object): def nfs(self, nfs): """ Sets the nfs of this V1Volume. - NFS volume that will be mounted in the host machine; see http://releases.k8s.io/v1.0.4/docs/volumes.md#nfs + NFS represents an NFS mount on the host that shares a pod's lifetime More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs :param nfs: The nfs of this V1Volume. :type: V1NFSVolumeSource @@ -257,7 +281,7 @@ class V1Volume(object): def iscsi(self): """ Gets the iscsi of this V1Volume. - iSCSI disk attached to host machine on demand; see http://releases.k8s.io/v1.0.4/examples/iscsi/README.md + ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/release-1.2/examples/iscsi/README.md :return: The iscsi of this V1Volume. :rtype: V1ISCSIVolumeSource @@ -268,7 +292,7 @@ class V1Volume(object): def iscsi(self, iscsi): """ Sets the iscsi of this V1Volume. - iSCSI disk attached to host machine on demand; see http://releases.k8s.io/v1.0.4/examples/iscsi/README.md + ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/release-1.2/examples/iscsi/README.md :param iscsi: The iscsi of this V1Volume. :type: V1ISCSIVolumeSource @@ -279,7 +303,7 @@ class V1Volume(object): def glusterfs(self): """ Gets the glusterfs of this V1Volume. - Glusterfs volume that will be mounted on the host machine; see http://releases.k8s.io/v1.0.4/examples/glusterfs/README.md + Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md :return: The glusterfs of this V1Volume. :rtype: V1GlusterfsVolumeSource @@ -290,7 +314,7 @@ class V1Volume(object): def glusterfs(self, glusterfs): """ Sets the glusterfs of this V1Volume. - Glusterfs volume that will be mounted on the host machine; see http://releases.k8s.io/v1.0.4/examples/glusterfs/README.md + Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md :param glusterfs: The glusterfs of this V1Volume. :type: V1GlusterfsVolumeSource @@ -301,7 +325,7 @@ class V1Volume(object): def persistent_volume_claim(self): """ Gets the persistent_volume_claim of this V1Volume. - a reference to a PersistentVolumeClaim in the same namespace; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistentvolumeclaims + PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims :return: The persistent_volume_claim of this V1Volume. :rtype: V1PersistentVolumeClaimVolumeSource @@ -312,7 +336,7 @@ class V1Volume(object): def persistent_volume_claim(self, persistent_volume_claim): """ Sets the persistent_volume_claim of this V1Volume. - a reference to a PersistentVolumeClaim in the same namespace; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistentvolumeclaims + PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims :param persistent_volume_claim: The persistent_volume_claim of this V1Volume. :type: V1PersistentVolumeClaimVolumeSource @@ -323,7 +347,7 @@ class V1Volume(object): def rbd(self): """ Gets the rbd of this V1Volume. - rados block volume that will be mounted on the host machine; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md + RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md :return: The rbd of this V1Volume. :rtype: V1RBDVolumeSource @@ -334,13 +358,189 @@ class V1Volume(object): def rbd(self, rbd): """ Sets the rbd of this V1Volume. - rados block volume that will be mounted on the host machine; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md + RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md :param rbd: The rbd of this V1Volume. :type: V1RBDVolumeSource """ self._rbd = rbd + @property + def flex_volume(self): + """ + Gets the flex_volume of this V1Volume. + FlexVolume represents a generic volume resource that is provisioned/attached using a exec based plugin. This is an alpha feature and may change in future. + + :return: The flex_volume of this V1Volume. + :rtype: V1FlexVolumeSource + """ + return self._flex_volume + + @flex_volume.setter + def flex_volume(self, flex_volume): + """ + Sets the flex_volume of this V1Volume. + FlexVolume represents a generic volume resource that is provisioned/attached using a exec based plugin. This is an alpha feature and may change in future. + + :param flex_volume: The flex_volume of this V1Volume. + :type: V1FlexVolumeSource + """ + self._flex_volume = flex_volume + + @property + def cinder(self): + """ + Gets the cinder of this V1Volume. + Cinder represents a cinder volume attached and mounted on kubelets host machine More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md + + :return: The cinder of this V1Volume. + :rtype: V1CinderVolumeSource + """ + return self._cinder + + @cinder.setter + def cinder(self, cinder): + """ + Sets the cinder of this V1Volume. + Cinder represents a cinder volume attached and mounted on kubelets host machine More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md + + :param cinder: The cinder of this V1Volume. + :type: V1CinderVolumeSource + """ + self._cinder = cinder + + @property + def cephfs(self): + """ + Gets the cephfs of this V1Volume. + CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + + :return: The cephfs of this V1Volume. + :rtype: V1CephFSVolumeSource + """ + return self._cephfs + + @cephfs.setter + def cephfs(self, cephfs): + """ + Sets the cephfs of this V1Volume. + CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + + :param cephfs: The cephfs of this V1Volume. + :type: V1CephFSVolumeSource + """ + self._cephfs = cephfs + + @property + def flocker(self): + """ + Gets the flocker of this V1Volume. + Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + + :return: The flocker of this V1Volume. + :rtype: V1FlockerVolumeSource + """ + return self._flocker + + @flocker.setter + def flocker(self, flocker): + """ + Sets the flocker of this V1Volume. + Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + + :param flocker: The flocker of this V1Volume. + :type: V1FlockerVolumeSource + """ + self._flocker = flocker + + @property + def downward_api(self): + """ + Gets the downward_api of this V1Volume. + DownwardAPI represents downward API about the pod that should populate this volume + + :return: The downward_api of this V1Volume. + :rtype: V1DownwardAPIVolumeSource + """ + return self._downward_api + + @downward_api.setter + def downward_api(self, downward_api): + """ + Sets the downward_api of this V1Volume. + DownwardAPI represents downward API about the pod that should populate this volume + + :param downward_api: The downward_api of this V1Volume. + :type: V1DownwardAPIVolumeSource + """ + self._downward_api = downward_api + + @property + def fc(self): + """ + Gets the fc of this V1Volume. + FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + + :return: The fc of this V1Volume. + :rtype: V1FCVolumeSource + """ + return self._fc + + @fc.setter + def fc(self, fc): + """ + Sets the fc of this V1Volume. + FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + + :param fc: The fc of this V1Volume. + :type: V1FCVolumeSource + """ + self._fc = fc + + @property + def azure_file(self): + """ + Gets the azure_file of this V1Volume. + AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + + :return: The azure_file of this V1Volume. + :rtype: V1AzureFileVolumeSource + """ + return self._azure_file + + @azure_file.setter + def azure_file(self, azure_file): + """ + Sets the azure_file of this V1Volume. + AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + + :param azure_file: The azure_file of this V1Volume. + :type: V1AzureFileVolumeSource + """ + self._azure_file = azure_file + + @property + def config_map(self): + """ + Gets the config_map of this V1Volume. + ConfigMap represents a configMap that should populate this volume + + :return: The config_map of this V1Volume. + :rtype: V1ConfigMapVolumeSource + """ + return self._config_map + + @config_map.setter + def config_map(self, config_map): + """ + Sets the config_map of this V1Volume. + ConfigMap represents a configMap that should populate this volume + + :param config_map: The config_map of this V1Volume. + :type: V1ConfigMapVolumeSource + """ + self._config_map = config_map + def to_dict(self): """ Return model properties dict diff --git a/k8sclient/client/models/v1_volume_mount.py b/k8sclient/client/models/v1_volume_mount.py index 9276c2b..f4b2707 100644 --- a/k8sclient/client/models/v1_volume_mount.py +++ b/k8sclient/client/models/v1_volume_mount.py @@ -54,7 +54,7 @@ class V1VolumeMount(object): def name(self): """ Gets the name of this V1VolumeMount. - name of the volume to mount + This must match the Name of a Volume. :return: The name of this V1VolumeMount. :rtype: str @@ -65,7 +65,7 @@ class V1VolumeMount(object): def name(self, name): """ Sets the name of this V1VolumeMount. - name of the volume to mount + This must match the Name of a Volume. :param name: The name of this V1VolumeMount. :type: str @@ -76,7 +76,7 @@ class V1VolumeMount(object): def read_only(self): """ Gets the read_only of this V1VolumeMount. - mounted read-only if true, read-write otherwise (false or unspecified) + Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. :return: The read_only of this V1VolumeMount. :rtype: bool @@ -87,7 +87,7 @@ class V1VolumeMount(object): def read_only(self, read_only): """ Sets the read_only of this V1VolumeMount. - mounted read-only if true, read-write otherwise (false or unspecified) + Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. :param read_only: The read_only of this V1VolumeMount. :type: bool @@ -98,7 +98,7 @@ class V1VolumeMount(object): def mount_path(self): """ Gets the mount_path of this V1VolumeMount. - path within the container at which the volume should be mounted + Path within the container at which the volume should be mounted. Must not contain ':'. :return: The mount_path of this V1VolumeMount. :rtype: str @@ -109,7 +109,7 @@ class V1VolumeMount(object): def mount_path(self, mount_path): """ Sets the mount_path of this V1VolumeMount. - path within the container at which the volume should be mounted + Path within the container at which the volume should be mounted. Must not contain ':'. :param mount_path: The mount_path of this V1VolumeMount. :type: str diff --git a/k8sclient/client/rest.py b/k8sclient/client/rest.py index 310b3b9..e5725a8 100644 --- a/k8sclient/client/rest.py +++ b/k8sclient/client/rest.py @@ -73,8 +73,8 @@ class RESTClientObject(object): self.pool_manager = urllib3.PoolManager( num_pools=pools_size ) - - # Note(suro-patz): Changing the behavior to accept security param + + # NOTE(dims): Changing the behavior to accept security param if ca_certs is None: ca_certs = '/etc/ssl/certs/ca-certificates.crt' self.ssl_pool_manager = urllib3.PoolManager( @@ -232,52 +232,56 @@ class ApiException(Exception): class RESTClient(object): """ - A class with methods to perform JSON requests. + A class with all class methods to perform JSON requests. """ - def __init__(self, key_file=None, cert_file=None, ca_certs=None): - self.IMPL = RESTClientObject(key_file=key_file, - cert_file=cert_file, - ca_certs=ca_certs) + IMPL = RESTClientObject() - def request(self, *n, **kw): + @classmethod + def request(cls, *n, **kw): """ Perform a REST request and parse the response. """ - return self.IMPL.request(*n, **kw) + return cls.IMPL.request(*n, **kw) - def GET(self, *n, **kw): + @classmethod + def GET(cls, *n, **kw): """ Perform a GET request using `RESTClient.request()`. """ - return self.IMPL.GET(*n, **kw) + return cls.IMPL.GET(*n, **kw) - def HEAD(self, *n, **kw): + @classmethod + def HEAD(cls, *n, **kw): """ Perform a HEAD request using `RESTClient.request()`. """ - return self.IMPL.GET(*n, **kw) + return cls.IMPL.GET(*n, **kw) - def POST(self, *n, **kw): + @classmethod + def POST(cls, *n, **kw): """ Perform a POST request using `RESTClient.request()` """ - return self.IMPL.POST(*n, **kw) + return cls.IMPL.POST(*n, **kw) - def PUT(self, *n, **kw): + @classmethod + def PUT(cls, *n, **kw): """ Perform a PUT request using `RESTClient.request()` """ - return self.IMPL.PUT(*n, **kw) + return cls.IMPL.PUT(*n, **kw) - def PATCH(self, *n, **kw): + @classmethod + def PATCH(cls, *n, **kw): """ Perform a PATCH request using `RESTClient.request()` """ - return self.IMPL.PATCH(*n, **kw) + return cls.IMPL.PATCH(*n, **kw) - def DELETE(self, *n, **kw): + @classmethod + def DELETE(cls, *n, **kw): """ Perform a DELETE request using `RESTClient.request()` """ - return self.IMPL.DELETE(*n, **kw) + return cls.IMPL.DELETE(*n, **kw) diff --git a/k8sclient/templates/v1.json b/k8sclient/templates/v1.json index 182c0ff..abd219d 100644 --- a/k8sclient/templates/v1.json +++ b/k8sclient/templates/v1.json @@ -1,12 +1,12 @@ { "swaggerVersion": "1.2", "apiVersion": "v1", - "basePath": "https://127.0.0.1:6443", + "basePath": "https://10.10.10.10:443", "resourcePath": "/api/v1", "apis": [ { "path": "/api/v1/namespaces/{namespace}/bindings", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.Binding", @@ -47,60 +47,18 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { - "path": "/api/v1/bindings", - "description": "API at /api/v1 version v1", - "operations": [ - { - "type": "v1.Binding", - "method": "POST", - "summary": "create a Binding", - "nickname": "createBinding", - "parameters": [ - { - "type": "string", - "paramType": "query", - "name": "pretty", - "description": "If 'true', then the output is pretty printed.", - "required": false, - "allowMultiple": false - }, - { - "type": "v1.Binding", - "paramType": "body", - "name": "body", - "description": "", - "required": true, - "allowMultiple": false - } - ], - "responseMessages": [ - { - "code": 200, - "message": "OK", - "responseModel": "v1.Binding" - } - ], - "produces": [ - "application/json" - ], - "consumes": [ - "application/json" - ] - } - ] - }, - { - "path": "/api/v1/namespaces/{namespace}/componentstatuses", - "description": "API at /api/v1 version v1", + "path": "/api/v1/componentstatuses", + "description": "API at /api/v1", "operations": [ { "type": "v1.ComponentStatusList", @@ -120,7 +78,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -128,7 +86,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -136,7 +94,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -144,16 +102,16 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { - "type": "string", - "paramType": "path", - "name": "namespace", - "description": "object name and auth scope, such as for teams and projects", - "required": true, + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", + "required": false, "allowMultiple": false } ], @@ -165,17 +123,18 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { - "path": "/api/v1/namespaces/{namespace}/componentstatuses/{name}", - "description": "API at /api/v1 version v1", + "path": "/api/v1/componentstatuses/{name}", + "description": "API at /api/v1", "operations": [ { "type": "v1.ComponentStatus", @@ -191,14 +150,6 @@ "required": false, "allowMultiple": false }, - { - "type": "string", - "paramType": "path", - "name": "namespace", - "description": "object name and auth scope, such as for teams and projects", - "required": true, - "allowMultiple": false - }, { "type": "string", "paramType": "path", @@ -216,23 +167,24 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { - "path": "/api/v1/componentstatuses", - "description": "API at /api/v1 version v1", + "path": "/api/v1/namespaces/{namespace}/configmaps", + "description": "API at /api/v1", "operations": [ { - "type": "v1.ComponentStatusList", + "type": "v1.ConfigMapList", "method": "GET", - "summary": "list objects of kind ComponentStatus", - "nickname": "listComponentStatus", + "summary": "list or watch objects of kind ConfigMap", + "nickname": "listNamespacedConfigMap", "parameters": [ { "type": "string", @@ -246,7 +198,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -254,7 +206,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -262,7 +214,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -270,7 +222,629 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.ConfigMapList" + } + ], + "produces": [ + "application/json", + "application/yaml" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "v1.ConfigMap", + "method": "POST", + "summary": "create a ConfigMap", + "nickname": "createNamespacedConfigMap", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.ConfigMap", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.ConfigMap" + } + ], + "produces": [ + "application/json", + "application/yaml" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "unversioned.Status", + "method": "DELETE", + "summary": "delete collection of ConfigMap", + "nickname": "deletecollectionNamespacedConfigMap", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "unversioned.Status" + } + ], + "produces": [ + "application/json", + "application/yaml" + ], + "consumes": [ + "*/*" + ] + } + ] + }, + { + "path": "/api/v1/watch/namespaces/{namespace}/configmaps", + "description": "API at /api/v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch individual changes to a list of ConfigMap", + "nickname": "watchNamespacedConfigMapList", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "*/*" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/configmaps/{name}", + "description": "API at /api/v1", + "operations": [ + { + "type": "v1.ConfigMap", + "method": "GET", + "summary": "read the specified ConfigMap", + "nickname": "readNamespacedConfigMap", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "export", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "exact", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the ConfigMap", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.ConfigMap" + } + ], + "produces": [ + "application/json", + "application/yaml" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "v1.ConfigMap", + "method": "PUT", + "summary": "replace the specified ConfigMap", + "nickname": "replaceNamespacedConfigMap", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.ConfigMap", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the ConfigMap", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.ConfigMap" + } + ], + "produces": [ + "application/json", + "application/yaml" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "v1.ConfigMap", + "method": "PATCH", + "summary": "partially update the specified ConfigMap", + "nickname": "patchNamespacedConfigMap", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "unversioned.Patch", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the ConfigMap", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.ConfigMap" + } + ], + "produces": [ + "application/json", + "application/yaml" + ], + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ] + }, + { + "type": "unversioned.Status", + "method": "DELETE", + "summary": "delete a ConfigMap", + "nickname": "deleteNamespacedConfigMap", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.DeleteOptions", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the ConfigMap", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "unversioned.Status" + } + ], + "produces": [ + "application/json", + "application/yaml" + ], + "consumes": [ + "*/*" + ] + } + ] + }, + { + "path": "/api/v1/watch/namespaces/{namespace}/configmaps/{name}", + "description": "API at /api/v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch changes to an object of kind ConfigMap", + "nickname": "watchNamespacedConfigMap", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the ConfigMap", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "*/*" + ] + } + ] + }, + { + "path": "/api/v1/configmaps", + "description": "API at /api/v1", + "operations": [ + { + "type": "v1.ConfigMapList", + "method": "GET", + "summary": "list or watch objects of kind ConfigMap", + "nickname": "listConfigMap", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } @@ -279,21 +853,97 @@ { "code": 200, "message": "OK", - "responseModel": "v1.ComponentStatusList" + "responseModel": "v1.ConfigMapList" + } + ], + "produces": [ + "application/json", + "application/yaml" + ], + "consumes": [ + "*/*" + ] + } + ] + }, + { + "path": "/api/v1/watch/configmaps", + "description": "API at /api/v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch individual changes to a list of ConfigMap", + "nickname": "watchConfigMapList", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/endpoints", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.EndpointsList", @@ -313,7 +963,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -321,7 +971,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -329,7 +979,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -337,7 +987,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, @@ -358,10 +1016,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -403,17 +1062,96 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" + ] + }, + { + "type": "unversioned.Status", + "method": "DELETE", + "summary": "delete collection of Endpoints", + "nickname": "deletecollectionNamespacedEndpoints", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "unversioned.Status" + } + ], + "produces": [ + "application/json", + "application/yaml" + ], + "consumes": [ + "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/endpoints", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -433,7 +1171,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -441,7 +1179,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -449,7 +1187,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -457,7 +1195,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, @@ -481,14 +1227,14 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/endpoints/{name}", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.Endpoints", @@ -504,6 +1250,22 @@ "required": false, "allowMultiple": false }, + { + "type": "boolean", + "paramType": "query", + "name": "export", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "exact", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "required": false, + "allowMultiple": false + }, { "type": "string", "paramType": "path", @@ -529,10 +1291,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -582,10 +1345,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -603,7 +1367,7 @@ "allowMultiple": false }, { - "type": "api.Patch", + "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", @@ -635,7 +1399,8 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ "application/json-patch+json", @@ -644,7 +1409,7 @@ ] }, { - "type": "v1.Status", + "type": "unversioned.Status", "method": "DELETE", "summary": "delete a Endpoints", "nickname": "deleteNamespacedEndpoints", @@ -686,21 +1451,22 @@ { "code": 200, "message": "OK", - "responseModel": "v1.Status" + "responseModel": "unversioned.Status" } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/endpoints/{name}", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -720,7 +1486,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -728,7 +1494,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -736,7 +1502,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -744,7 +1510,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, @@ -776,14 +1550,14 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/endpoints", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.EndpointsList", @@ -803,7 +1577,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -811,7 +1585,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -819,7 +1593,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -827,7 +1601,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } @@ -840,54 +1622,18 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" - ] - }, - { - "type": "v1.Endpoints", - "method": "POST", - "summary": "create a Endpoints", - "nickname": "createEndpoints", - "parameters": [ - { - "type": "string", - "paramType": "query", - "name": "pretty", - "description": "If 'true', then the output is pretty printed.", - "required": false, - "allowMultiple": false - }, - { - "type": "v1.Endpoints", - "paramType": "body", - "name": "body", - "description": "", - "required": true, - "allowMultiple": false - } - ], - "responseMessages": [ - { - "code": 200, - "message": "OK", - "responseModel": "v1.Endpoints" - } - ], - "produces": [ - "application/json" - ], - "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/watch/endpoints", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -907,7 +1653,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -915,7 +1661,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -923,7 +1669,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -931,7 +1677,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } @@ -947,14 +1701,14 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/events", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.EventList", @@ -974,7 +1728,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -982,7 +1736,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -990,7 +1744,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -998,7 +1752,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, @@ -1019,10 +1781,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -1064,17 +1827,96 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" + ] + }, + { + "type": "unversioned.Status", + "method": "DELETE", + "summary": "delete collection of Event", + "nickname": "deletecollectionNamespacedEvent", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "unversioned.Status" + } + ], + "produces": [ + "application/json", + "application/yaml" + ], + "consumes": [ + "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/events", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -1094,7 +1936,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -1102,7 +1944,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -1110,7 +1952,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -1118,7 +1960,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, @@ -1142,14 +1992,14 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/events/{name}", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.Event", @@ -1165,6 +2015,22 @@ "required": false, "allowMultiple": false }, + { + "type": "boolean", + "paramType": "query", + "name": "export", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "exact", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "required": false, + "allowMultiple": false + }, { "type": "string", "paramType": "path", @@ -1190,10 +2056,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -1243,10 +2110,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -1264,7 +2132,7 @@ "allowMultiple": false }, { - "type": "api.Patch", + "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", @@ -1296,7 +2164,8 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ "application/json-patch+json", @@ -1305,7 +2174,7 @@ ] }, { - "type": "v1.Status", + "type": "unversioned.Status", "method": "DELETE", "summary": "delete a Event", "nickname": "deleteNamespacedEvent", @@ -1318,6 +2187,14 @@ "required": false, "allowMultiple": false }, + { + "type": "v1.DeleteOptions", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, { "type": "string", "paramType": "path", @@ -1339,21 +2216,22 @@ { "code": 200, "message": "OK", - "responseModel": "v1.Status" + "responseModel": "unversioned.Status" } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/events/{name}", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -1373,7 +2251,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -1381,7 +2259,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -1389,7 +2267,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -1397,7 +2275,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, @@ -1429,14 +2315,14 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/events", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.EventList", @@ -1456,7 +2342,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -1464,7 +2350,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -1472,7 +2358,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -1480,7 +2366,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } @@ -1493,54 +2387,18 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" - ] - }, - { - "type": "v1.Event", - "method": "POST", - "summary": "create a Event", - "nickname": "createEvent", - "parameters": [ - { - "type": "string", - "paramType": "query", - "name": "pretty", - "description": "If 'true', then the output is pretty printed.", - "required": false, - "allowMultiple": false - }, - { - "type": "v1.Event", - "paramType": "body", - "name": "body", - "description": "", - "required": true, - "allowMultiple": false - } - ], - "responseMessages": [ - { - "code": 200, - "message": "OK", - "responseModel": "v1.Event" - } - ], - "produces": [ - "application/json" - ], - "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/watch/events", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -1560,7 +2418,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -1568,7 +2426,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -1576,7 +2434,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -1584,7 +2442,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } @@ -1600,14 +2466,14 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/limitranges", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.LimitRangeList", @@ -1627,7 +2493,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -1635,7 +2501,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -1643,7 +2509,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -1651,7 +2517,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, @@ -1672,10 +2546,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -1717,17 +2592,96 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" + ] + }, + { + "type": "unversioned.Status", + "method": "DELETE", + "summary": "delete collection of LimitRange", + "nickname": "deletecollectionNamespacedLimitRange", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "unversioned.Status" + } + ], + "produces": [ + "application/json", + "application/yaml" + ], + "consumes": [ + "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/limitranges", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -1747,7 +2701,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -1755,7 +2709,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -1763,7 +2717,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -1771,7 +2725,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, @@ -1795,14 +2757,14 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/limitranges/{name}", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.LimitRange", @@ -1818,6 +2780,22 @@ "required": false, "allowMultiple": false }, + { + "type": "boolean", + "paramType": "query", + "name": "export", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "exact", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "required": false, + "allowMultiple": false + }, { "type": "string", "paramType": "path", @@ -1843,10 +2821,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -1896,10 +2875,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -1917,7 +2897,7 @@ "allowMultiple": false }, { - "type": "api.Patch", + "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", @@ -1949,7 +2929,8 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ "application/json-patch+json", @@ -1958,7 +2939,7 @@ ] }, { - "type": "v1.Status", + "type": "unversioned.Status", "method": "DELETE", "summary": "delete a LimitRange", "nickname": "deleteNamespacedLimitRange", @@ -1971,6 +2952,14 @@ "required": false, "allowMultiple": false }, + { + "type": "v1.DeleteOptions", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, { "type": "string", "paramType": "path", @@ -1992,21 +2981,22 @@ { "code": 200, "message": "OK", - "responseModel": "v1.Status" + "responseModel": "unversioned.Status" } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/limitranges/{name}", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -2026,7 +3016,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -2034,7 +3024,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -2042,7 +3032,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -2050,7 +3040,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, @@ -2082,14 +3080,14 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/limitranges", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.LimitRangeList", @@ -2109,7 +3107,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -2117,7 +3115,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -2125,7 +3123,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -2133,7 +3131,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } @@ -2146,54 +3152,18 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" - ] - }, - { - "type": "v1.LimitRange", - "method": "POST", - "summary": "create a LimitRange", - "nickname": "createLimitRange", - "parameters": [ - { - "type": "string", - "paramType": "query", - "name": "pretty", - "description": "If 'true', then the output is pretty printed.", - "required": false, - "allowMultiple": false - }, - { - "type": "v1.LimitRange", - "paramType": "body", - "name": "body", - "description": "", - "required": true, - "allowMultiple": false - } - ], - "responseMessages": [ - { - "code": 200, - "message": "OK", - "responseModel": "v1.LimitRange" - } - ], - "produces": [ - "application/json" - ], - "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/watch/limitranges", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -2213,7 +3183,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -2221,7 +3191,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -2229,7 +3199,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -2237,7 +3207,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } @@ -2253,14 +3231,14 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/namespaces", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.NamespaceList", @@ -2280,7 +3258,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -2288,7 +3266,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -2296,7 +3274,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -2304,7 +3282,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } @@ -2317,10 +3303,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -2354,17 +3341,88 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" + ] + }, + { + "type": "unversioned.Status", + "method": "DELETE", + "summary": "delete collection of Namespace", + "nickname": "deletecollectionNamespacedNamespace", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "unversioned.Status" + } + ], + "produces": [ + "application/json", + "application/yaml" + ], + "consumes": [ + "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -2384,7 +3442,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -2392,7 +3450,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -2400,7 +3458,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -2408,7 +3466,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } @@ -2424,14 +3490,14 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/namespaces/{name}", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.Namespace", @@ -2447,6 +3513,22 @@ "required": false, "allowMultiple": false }, + { + "type": "boolean", + "paramType": "query", + "name": "export", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "exact", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "required": false, + "allowMultiple": false + }, { "type": "string", "paramType": "path", @@ -2464,10 +3546,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -2509,10 +3592,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -2530,7 +3614,7 @@ "allowMultiple": false }, { - "type": "api.Patch", + "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", @@ -2554,7 +3638,8 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ "application/json-patch+json", @@ -2563,7 +3648,7 @@ ] }, { - "type": "v1.Status", + "type": "unversioned.Status", "method": "DELETE", "summary": "delete a Namespace", "nickname": "deleteNamespacedNamespace", @@ -2597,21 +3682,22 @@ { "code": 200, "message": "OK", - "responseModel": "v1.Status" + "responseModel": "unversioned.Status" } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{name}", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -2631,7 +3717,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -2639,7 +3725,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -2647,7 +3733,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -2655,7 +3741,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, @@ -2679,14 +3773,14 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/namespaces/{name}/finalize", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.Namespace", @@ -2727,17 +3821,18 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/namespaces/{name}/status", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.Namespace", @@ -2778,17 +3873,18 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/nodes", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.NodeList", @@ -2808,7 +3904,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -2816,7 +3912,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -2824,7 +3920,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -2832,7 +3928,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } @@ -2845,10 +3949,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -2882,17 +3987,88 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" + ] + }, + { + "type": "unversioned.Status", + "method": "DELETE", + "summary": "delete collection of Node", + "nickname": "deletecollectionNamespacedNode", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "unversioned.Status" + } + ], + "produces": [ + "application/json", + "application/yaml" + ], + "consumes": [ + "*/*" ] } ] }, { "path": "/api/v1/watch/nodes", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -2912,7 +4088,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -2920,7 +4096,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -2928,7 +4104,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -2936,7 +4112,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } @@ -2952,14 +4136,14 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/nodes/{name}", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.Node", @@ -2975,6 +4159,22 @@ "required": false, "allowMultiple": false }, + { + "type": "boolean", + "paramType": "query", + "name": "export", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "exact", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "required": false, + "allowMultiple": false + }, { "type": "string", "paramType": "path", @@ -2992,10 +4192,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -3037,10 +4238,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -3058,7 +4260,7 @@ "allowMultiple": false }, { - "type": "api.Patch", + "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", @@ -3082,7 +4284,8 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ "application/json-patch+json", @@ -3091,7 +4294,7 @@ ] }, { - "type": "v1.Status", + "type": "unversioned.Status", "method": "DELETE", "summary": "delete a Node", "nickname": "deleteNamespacedNode", @@ -3125,21 +4328,22 @@ { "code": 200, "message": "OK", - "responseModel": "v1.Status" + "responseModel": "unversioned.Status" } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/watch/nodes/{name}", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -3159,7 +4363,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -3167,7 +4371,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -3175,7 +4379,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -3183,7 +4387,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, @@ -3207,14 +4419,200 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" + ] + } + ] + }, + { + "path": "/api/v1/proxy/nodes/{name}/{path}", + "description": "API at /api/v1", + "operations": [ + { + "type": "string", + "method": "GET", + "summary": "proxy GET requests to Node", + "nickname": "proxyGETNamespacedNode", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Node", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "path", + "description": "path to the resource", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "PUT", + "summary": "proxy PUT requests to Node", + "nickname": "proxyPUTNamespacedNode", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Node", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "path", + "description": "path to the resource", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "POST", + "summary": "proxy POST requests to Node", + "nickname": "proxyPOSTNamespacedNode", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Node", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "path", + "description": "path to the resource", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "DELETE", + "summary": "proxy DELETE requests to Node", + "nickname": "proxyDELETENamespacedNode", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Node", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "path", + "description": "path to the resource", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "HEAD", + "summary": "proxy HEAD requests to Node", + "nickname": "proxyHEADNamespacedNode", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Node", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "path", + "description": "path to the resource", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "OPTIONS", + "summary": "proxy OPTIONS requests to Node", + "nickname": "proxyOPTIONSNamespacedNode", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Node", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "path", + "description": "path to the resource", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" ] } ] }, { "path": "/api/v1/proxy/nodes/{name}", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "string", @@ -3232,10 +4630,10 @@ } ], "produces": [ - "application/json" + "*/*" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -3254,10 +4652,10 @@ } ], "produces": [ - "application/json" + "*/*" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -3276,10 +4674,10 @@ } ], "produces": [ - "application/json" + "*/*" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -3298,10 +4696,10 @@ } ], "produces": [ - "application/json" + "*/*" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -3320,10 +4718,10 @@ } ], "produces": [ - "application/json" + "*/*" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -3342,17 +4740,437 @@ } ], "produces": [ - "application/json" + "*/*" ], "consumes": [ - "application/json" + "*/*" + ] + } + ] + }, + { + "path": "/api/v1/nodes/{name}/proxy", + "description": "API at /api/v1", + "operations": [ + { + "type": "string", + "method": "GET", + "summary": "connect GET requests to proxy of Node", + "nickname": "connectGetNamespacedNodeProxy", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "path", + "description": "Path is the URL path to use for the current proxy request to node.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Node", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "POST", + "summary": "connect POST requests to proxy of Node", + "nickname": "connectPostNamespacedNodeProxy", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "path", + "description": "Path is the URL path to use for the current proxy request to node.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Node", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "PUT", + "summary": "connect PUT requests to proxy of Node", + "nickname": "connectPutNamespacedNodeProxy", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "path", + "description": "Path is the URL path to use for the current proxy request to node.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Node", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "DELETE", + "summary": "connect DELETE requests to proxy of Node", + "nickname": "connectDeleteNamespacedNodeProxy", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "path", + "description": "Path is the URL path to use for the current proxy request to node.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Node", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "HEAD", + "summary": "connect HEAD requests to proxy of Node", + "nickname": "connectHeadNamespacedNodeProxy", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "path", + "description": "Path is the URL path to use for the current proxy request to node.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Node", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "OPTIONS", + "summary": "connect OPTIONS requests to proxy of Node", + "nickname": "connectOptionsNamespacedNodeProxy", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "path", + "description": "Path is the URL path to use for the current proxy request to node.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Node", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + } + ] + }, + { + "path": "/api/v1/nodes/{name}/proxy/{path}", + "description": "API at /api/v1", + "operations": [ + { + "type": "string", + "method": "GET", + "summary": "connect GET requests to proxy of Node", + "nickname": "connectGetNamespacedNodeProxy", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "path", + "description": "Path is the URL path to use for the current proxy request to node.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Node", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "path", + "description": "path to the resource", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "POST", + "summary": "connect POST requests to proxy of Node", + "nickname": "connectPostNamespacedNodeProxy", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "path", + "description": "Path is the URL path to use for the current proxy request to node.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Node", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "path", + "description": "path to the resource", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "PUT", + "summary": "connect PUT requests to proxy of Node", + "nickname": "connectPutNamespacedNodeProxy", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "path", + "description": "Path is the URL path to use for the current proxy request to node.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Node", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "path", + "description": "path to the resource", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "DELETE", + "summary": "connect DELETE requests to proxy of Node", + "nickname": "connectDeleteNamespacedNodeProxy", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "path", + "description": "Path is the URL path to use for the current proxy request to node.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Node", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "path", + "description": "path to the resource", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "HEAD", + "summary": "connect HEAD requests to proxy of Node", + "nickname": "connectHeadNamespacedNodeProxy", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "path", + "description": "Path is the URL path to use for the current proxy request to node.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Node", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "path", + "description": "path to the resource", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "OPTIONS", + "summary": "connect OPTIONS requests to proxy of Node", + "nickname": "connectOptionsNamespacedNodeProxy", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "path", + "description": "Path is the URL path to use for the current proxy request to node.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Node", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "path", + "description": "path to the resource", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" ] } ] }, { "path": "/api/v1/nodes/{name}/status", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.Node", @@ -3393,17 +5211,18 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/persistentvolumeclaims", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.PersistentVolumeClaimList", @@ -3423,7 +5242,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -3431,7 +5250,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -3439,7 +5258,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -3447,7 +5266,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, @@ -3468,10 +5295,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -3513,17 +5341,96 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" + ] + }, + { + "type": "unversioned.Status", + "method": "DELETE", + "summary": "delete collection of PersistentVolumeClaim", + "nickname": "deletecollectionNamespacedPersistentVolumeClaim", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "unversioned.Status" + } + ], + "produces": [ + "application/json", + "application/yaml" + ], + "consumes": [ + "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -3543,7 +5450,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -3551,7 +5458,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -3559,7 +5466,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -3567,7 +5474,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, @@ -3591,14 +5506,14 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.PersistentVolumeClaim", @@ -3614,6 +5529,22 @@ "required": false, "allowMultiple": false }, + { + "type": "boolean", + "paramType": "query", + "name": "export", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "exact", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "required": false, + "allowMultiple": false + }, { "type": "string", "paramType": "path", @@ -3639,10 +5570,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -3692,10 +5624,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -3713,7 +5646,7 @@ "allowMultiple": false }, { - "type": "api.Patch", + "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", @@ -3745,7 +5678,8 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ "application/json-patch+json", @@ -3754,7 +5688,7 @@ ] }, { - "type": "v1.Status", + "type": "unversioned.Status", "method": "DELETE", "summary": "delete a PersistentVolumeClaim", "nickname": "deleteNamespacedPersistentVolumeClaim", @@ -3796,21 +5730,22 @@ { "code": 200, "message": "OK", - "responseModel": "v1.Status" + "responseModel": "unversioned.Status" } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims/{name}", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -3830,7 +5765,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -3838,7 +5773,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -3846,7 +5781,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -3854,7 +5789,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, @@ -3886,14 +5829,14 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/persistentvolumeclaims", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.PersistentVolumeClaimList", @@ -3913,7 +5856,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -3921,7 +5864,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -3929,7 +5872,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -3937,7 +5880,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } @@ -3950,54 +5901,18 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" - ] - }, - { - "type": "v1.PersistentVolumeClaim", - "method": "POST", - "summary": "create a PersistentVolumeClaim", - "nickname": "createPersistentVolumeClaim", - "parameters": [ - { - "type": "string", - "paramType": "query", - "name": "pretty", - "description": "If 'true', then the output is pretty printed.", - "required": false, - "allowMultiple": false - }, - { - "type": "v1.PersistentVolumeClaim", - "paramType": "body", - "name": "body", - "description": "", - "required": true, - "allowMultiple": false - } - ], - "responseMessages": [ - { - "code": 200, - "message": "OK", - "responseModel": "v1.PersistentVolumeClaim" - } - ], - "produces": [ - "application/json" - ], - "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/watch/persistentvolumeclaims", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -4017,7 +5932,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -4025,7 +5940,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -4033,7 +5948,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -4041,7 +5956,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } @@ -4057,14 +5980,14 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.PersistentVolumeClaim", @@ -4113,17 +6036,18 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/persistentvolumes", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.PersistentVolumeList", @@ -4143,7 +6067,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -4151,7 +6075,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -4159,7 +6083,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -4167,7 +6091,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } @@ -4180,10 +6112,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -4217,17 +6150,88 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" + ] + }, + { + "type": "unversioned.Status", + "method": "DELETE", + "summary": "delete collection of PersistentVolume", + "nickname": "deletecollectionNamespacedPersistentVolume", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "unversioned.Status" + } + ], + "produces": [ + "application/json", + "application/yaml" + ], + "consumes": [ + "*/*" ] } ] }, { "path": "/api/v1/watch/persistentvolumes", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -4247,7 +6251,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -4255,7 +6259,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -4263,7 +6267,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -4271,7 +6275,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } @@ -4287,14 +6299,14 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/persistentvolumes/{name}", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.PersistentVolume", @@ -4310,6 +6322,22 @@ "required": false, "allowMultiple": false }, + { + "type": "boolean", + "paramType": "query", + "name": "export", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "exact", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "required": false, + "allowMultiple": false + }, { "type": "string", "paramType": "path", @@ -4327,10 +6355,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -4372,10 +6401,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -4393,7 +6423,7 @@ "allowMultiple": false }, { - "type": "api.Patch", + "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", @@ -4417,7 +6447,8 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ "application/json-patch+json", @@ -4426,7 +6457,7 @@ ] }, { - "type": "v1.Status", + "type": "unversioned.Status", "method": "DELETE", "summary": "delete a PersistentVolume", "nickname": "deleteNamespacedPersistentVolume", @@ -4460,21 +6491,22 @@ { "code": 200, "message": "OK", - "responseModel": "v1.Status" + "responseModel": "unversioned.Status" } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/watch/persistentvolumes/{name}", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -4494,7 +6526,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -4502,7 +6534,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -4510,7 +6542,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -4518,7 +6550,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, @@ -4542,14 +6582,14 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/persistentvolumes/{name}/status", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.PersistentVolume", @@ -4590,17 +6630,18 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/pods", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.PodList", @@ -4620,7 +6661,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -4628,7 +6669,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -4636,7 +6677,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -4644,7 +6685,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, @@ -4665,10 +6714,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -4710,17 +6760,96 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" + ] + }, + { + "type": "unversioned.Status", + "method": "DELETE", + "summary": "delete collection of Pod", + "nickname": "deletecollectionNamespacedPod", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "unversioned.Status" + } + ], + "produces": [ + "application/json", + "application/yaml" + ], + "consumes": [ + "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/pods", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -4740,7 +6869,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -4748,7 +6877,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -4756,7 +6885,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -4764,7 +6893,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, @@ -4788,14 +6925,14 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/pods/{name}", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.Pod", @@ -4811,6 +6948,22 @@ "required": false, "allowMultiple": false }, + { + "type": "boolean", + "paramType": "query", + "name": "export", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "exact", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "required": false, + "allowMultiple": false + }, { "type": "string", "paramType": "path", @@ -4836,10 +6989,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -4889,10 +7043,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -4910,7 +7065,7 @@ "allowMultiple": false }, { - "type": "api.Patch", + "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", @@ -4942,7 +7097,8 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ "application/json-patch+json", @@ -4951,7 +7107,7 @@ ] }, { - "type": "v1.Status", + "type": "unversioned.Status", "method": "DELETE", "summary": "delete a Pod", "nickname": "deleteNamespacedPod", @@ -4993,21 +7149,22 @@ { "code": 200, "message": "OK", - "responseModel": "v1.Status" + "responseModel": "unversioned.Status" } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/pods/{name}", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -5027,7 +7184,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -5035,7 +7192,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -5043,7 +7200,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -5051,7 +7208,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, @@ -5083,14 +7248,248 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" + ] + } + ] + }, + { + "path": "/api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}", + "description": "API at /api/v1", + "operations": [ + { + "type": "string", + "method": "GET", + "summary": "proxy GET requests to Pod", + "nickname": "proxyGETNamespacedPod", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Pod", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "path", + "description": "path to the resource", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "PUT", + "summary": "proxy PUT requests to Pod", + "nickname": "proxyPUTNamespacedPod", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Pod", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "path", + "description": "path to the resource", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "POST", + "summary": "proxy POST requests to Pod", + "nickname": "proxyPOSTNamespacedPod", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Pod", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "path", + "description": "path to the resource", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "DELETE", + "summary": "proxy DELETE requests to Pod", + "nickname": "proxyDELETENamespacedPod", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Pod", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "path", + "description": "path to the resource", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "HEAD", + "summary": "proxy HEAD requests to Pod", + "nickname": "proxyHEADNamespacedPod", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Pod", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "path", + "description": "path to the resource", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "OPTIONS", + "summary": "proxy OPTIONS requests to Pod", + "nickname": "proxyOPTIONSNamespacedPod", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Pod", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "path", + "description": "path to the resource", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" ] } ] }, { "path": "/api/v1/proxy/namespaces/{namespace}/pods/{name}", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "string", @@ -5116,10 +7515,10 @@ } ], "produces": [ - "application/json" + "*/*" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -5146,10 +7545,10 @@ } ], "produces": [ - "application/json" + "*/*" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -5176,10 +7575,10 @@ } ], "produces": [ - "application/json" + "*/*" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -5206,10 +7605,10 @@ } ], "produces": [ - "application/json" + "*/*" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -5236,10 +7635,10 @@ } ], "produces": [ - "application/json" + "*/*" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -5266,17 +7665,17 @@ } ], "produces": [ - "application/json" + "*/*" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/pods", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.PodList", @@ -5296,7 +7695,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -5304,7 +7703,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -5312,7 +7711,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -5320,7 +7719,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } @@ -5333,54 +7740,18 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" - ] - }, - { - "type": "v1.Pod", - "method": "POST", - "summary": "create a Pod", - "nickname": "createPod", - "parameters": [ - { - "type": "string", - "paramType": "query", - "name": "pretty", - "description": "If 'true', then the output is pretty printed.", - "required": false, - "allowMultiple": false - }, - { - "type": "v1.Pod", - "paramType": "body", - "name": "body", - "description": "", - "required": true, - "allowMultiple": false - } - ], - "responseMessages": [ - { - "code": 200, - "message": "OK", - "responseModel": "v1.Pod" - } - ], - "produces": [ - "application/json" - ], - "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/watch/pods", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -5400,7 +7771,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -5408,7 +7779,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -5416,7 +7787,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -5424,7 +7795,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } @@ -5440,14 +7819,160 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/pods/{name}/attach", + "description": "API at /api/v1", + "operations": [ + { + "type": "string", + "method": "GET", + "summary": "connect GET requests to attach of Pod", + "nickname": "connectGetNamespacedPodAttach", + "parameters": [ + { + "type": "boolean", + "paramType": "query", + "name": "stdin", + "description": "Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "stdout", + "description": "Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "stderr", + "description": "Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "tty", + "description": "TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "container", + "description": "The container in which to execute the command. Defaults to only container if there is only one container in the pod.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Pod", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "POST", + "summary": "connect POST requests to attach of Pod", + "nickname": "connectPostNamespacedPodAttach", + "parameters": [ + { + "type": "boolean", + "paramType": "query", + "name": "stdin", + "description": "Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "stdout", + "description": "Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "stderr", + "description": "Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "tty", + "description": "TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "container", + "description": "The container in which to execute the command. Defaults to only container if there is only one container in the pod.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Pod", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/pods/{name}/binding", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.Binding", @@ -5496,17 +8021,18 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/pods/{name}/exec", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "string", @@ -5514,6 +8040,54 @@ "summary": "connect GET requests to exec of Pod", "nickname": "connectGetNamespacedPodExec", "parameters": [ + { + "type": "boolean", + "paramType": "query", + "name": "stdin", + "description": "Redirect the standard input stream of the pod for this call. Defaults to false.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "stdout", + "description": "Redirect the standard output stream of the pod for this call. Defaults to true.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "stderr", + "description": "Redirect the standard error stream of the pod for this call. Defaults to true.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "tty", + "description": "TTY if true indicates that a tty will be allocated for the exec call. Defaults to false.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "container", + "description": "Container in which to execute the command. Defaults to only container if there is only one container in the pod.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "command", + "description": "Command is the remote command to execute. argv array. Not executed within a shell.", + "required": false, + "allowMultiple": false + }, { "type": "string", "paramType": "path", @@ -5532,10 +8106,10 @@ } ], "produces": [ - "application/json" + "*/*" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -5544,6 +8118,54 @@ "summary": "connect POST requests to exec of Pod", "nickname": "connectPostNamespacedPodExec", "parameters": [ + { + "type": "boolean", + "paramType": "query", + "name": "stdin", + "description": "Redirect the standard input stream of the pod for this call. Defaults to false.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "stdout", + "description": "Redirect the standard output stream of the pod for this call. Defaults to true.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "stderr", + "description": "Redirect the standard error stream of the pod for this call. Defaults to true.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "tty", + "description": "TTY if true indicates that a tty will be allocated for the exec call. Defaults to false.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "container", + "description": "Container in which to execute the command. Defaults to only container if there is only one container in the pod.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "command", + "description": "Command is the remote command to execute. argv array. Not executed within a shell.", + "required": false, + "allowMultiple": false + }, { "type": "string", "paramType": "path", @@ -5562,17 +8184,17 @@ } ], "produces": [ - "application/json" + "*/*" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/pods/{name}/log", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.Pod", @@ -5588,6 +8210,70 @@ "required": false, "allowMultiple": false }, + { + "type": "string", + "paramType": "query", + "name": "container", + "description": "The container for which to stream logs. Defaults to only container if there is one container in the pod.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "follow", + "description": "Follow the log stream of the pod. Defaults to false.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "previous", + "description": "Return previous terminated container logs. Defaults to false.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "sinceSeconds", + "description": "A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "sinceTime", + "description": "An RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "timestamps", + "description": "If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "tailLines", + "description": "If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "limitBytes", + "description": "If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit.", + "required": false, + "allowMultiple": false + }, { "type": "string", "paramType": "path", @@ -5613,17 +8299,18 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/pods/{name}/portforward", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "string", @@ -5649,10 +8336,10 @@ } ], "produces": [ - "application/json" + "*/*" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -5679,17 +8366,17 @@ } ], "produces": [ - "application/json" + "*/*" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/pods/{name}/proxy", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "string", @@ -5697,6 +8384,14 @@ "summary": "connect GET requests to proxy of Pod", "nickname": "connectGetNamespacedPodProxy", "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "path", + "description": "Path is the URL path to use for the current proxy request to pod.", + "required": false, + "allowMultiple": false + }, { "type": "string", "paramType": "path", @@ -5715,10 +8410,10 @@ } ], "produces": [ - "application/json" + "*/*" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -5727,6 +8422,14 @@ "summary": "connect POST requests to proxy of Pod", "nickname": "connectPostNamespacedPodProxy", "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "path", + "description": "Path is the URL path to use for the current proxy request to pod.", + "required": false, + "allowMultiple": false + }, { "type": "string", "paramType": "path", @@ -5745,10 +8448,10 @@ } ], "produces": [ - "application/json" + "*/*" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -5757,6 +8460,14 @@ "summary": "connect PUT requests to proxy of Pod", "nickname": "connectPutNamespacedPodProxy", "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "path", + "description": "Path is the URL path to use for the current proxy request to pod.", + "required": false, + "allowMultiple": false + }, { "type": "string", "paramType": "path", @@ -5775,10 +8486,10 @@ } ], "produces": [ - "application/json" + "*/*" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -5787,6 +8498,14 @@ "summary": "connect DELETE requests to proxy of Pod", "nickname": "connectDeleteNamespacedPodProxy", "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "path", + "description": "Path is the URL path to use for the current proxy request to pod.", + "required": false, + "allowMultiple": false + }, { "type": "string", "paramType": "path", @@ -5805,10 +8524,10 @@ } ], "produces": [ - "application/json" + "*/*" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -5817,6 +8536,14 @@ "summary": "connect HEAD requests to proxy of Pod", "nickname": "connectHeadNamespacedPodProxy", "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "path", + "description": "Path is the URL path to use for the current proxy request to pod.", + "required": false, + "allowMultiple": false + }, { "type": "string", "paramType": "path", @@ -5835,10 +8562,10 @@ } ], "produces": [ - "application/json" + "*/*" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -5847,6 +8574,14 @@ "summary": "connect OPTIONS requests to proxy of Pod", "nickname": "connectOptionsNamespacedPodProxy", "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "path", + "description": "Path is the URL path to use for the current proxy request to pod.", + "required": false, + "allowMultiple": false + }, { "type": "string", "paramType": "path", @@ -5865,17 +8600,299 @@ } ], "produces": [ - "application/json" + "*/*" ], "consumes": [ - "application/json" + "*/*" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}", + "description": "API at /api/v1", + "operations": [ + { + "type": "string", + "method": "GET", + "summary": "connect GET requests to proxy of Pod", + "nickname": "connectGetNamespacedPodProxy", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "path", + "description": "Path is the URL path to use for the current proxy request to pod.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Pod", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "path", + "description": "path to the resource", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "POST", + "summary": "connect POST requests to proxy of Pod", + "nickname": "connectPostNamespacedPodProxy", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "path", + "description": "Path is the URL path to use for the current proxy request to pod.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Pod", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "path", + "description": "path to the resource", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "PUT", + "summary": "connect PUT requests to proxy of Pod", + "nickname": "connectPutNamespacedPodProxy", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "path", + "description": "Path is the URL path to use for the current proxy request to pod.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Pod", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "path", + "description": "path to the resource", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "DELETE", + "summary": "connect DELETE requests to proxy of Pod", + "nickname": "connectDeleteNamespacedPodProxy", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "path", + "description": "Path is the URL path to use for the current proxy request to pod.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Pod", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "path", + "description": "path to the resource", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "HEAD", + "summary": "connect HEAD requests to proxy of Pod", + "nickname": "connectHeadNamespacedPodProxy", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "path", + "description": "Path is the URL path to use for the current proxy request to pod.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Pod", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "path", + "description": "path to the resource", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "OPTIONS", + "summary": "connect OPTIONS requests to proxy of Pod", + "nickname": "connectOptionsNamespacedPodProxy", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "path", + "description": "Path is the URL path to use for the current proxy request to pod.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Pod", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "path", + "description": "path to the resource", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/pods/{name}/status", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.Pod", @@ -5924,17 +8941,18 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/podtemplates", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.PodTemplateList", @@ -5954,7 +8972,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -5962,7 +8980,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -5970,7 +8988,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -5978,7 +8996,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, @@ -5999,10 +9025,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -6044,17 +9071,96 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" + ] + }, + { + "type": "unversioned.Status", + "method": "DELETE", + "summary": "delete collection of PodTemplate", + "nickname": "deletecollectionNamespacedPodTemplate", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "unversioned.Status" + } + ], + "produces": [ + "application/json", + "application/yaml" + ], + "consumes": [ + "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/podtemplates", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -6074,7 +9180,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -6082,7 +9188,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -6090,7 +9196,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -6098,7 +9204,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, @@ -6122,14 +9236,14 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/podtemplates/{name}", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.PodTemplate", @@ -6145,6 +9259,22 @@ "required": false, "allowMultiple": false }, + { + "type": "boolean", + "paramType": "query", + "name": "export", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "exact", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "required": false, + "allowMultiple": false + }, { "type": "string", "paramType": "path", @@ -6170,10 +9300,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -6223,10 +9354,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -6244,7 +9376,7 @@ "allowMultiple": false }, { - "type": "api.Patch", + "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", @@ -6276,7 +9408,8 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ "application/json-patch+json", @@ -6285,7 +9418,7 @@ ] }, { - "type": "v1.Status", + "type": "unversioned.Status", "method": "DELETE", "summary": "delete a PodTemplate", "nickname": "deleteNamespacedPodTemplate", @@ -6327,21 +9460,22 @@ { "code": 200, "message": "OK", - "responseModel": "v1.Status" + "responseModel": "unversioned.Status" } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/podtemplates/{name}", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -6361,7 +9495,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -6369,7 +9503,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -6377,7 +9511,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -6385,7 +9519,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, @@ -6417,14 +9559,14 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/podtemplates", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.PodTemplateList", @@ -6444,7 +9586,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -6452,7 +9594,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -6460,7 +9602,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -6468,7 +9610,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } @@ -6481,54 +9631,18 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" - ] - }, - { - "type": "v1.PodTemplate", - "method": "POST", - "summary": "create a PodTemplate", - "nickname": "createPodTemplate", - "parameters": [ - { - "type": "string", - "paramType": "query", - "name": "pretty", - "description": "If 'true', then the output is pretty printed.", - "required": false, - "allowMultiple": false - }, - { - "type": "v1.PodTemplate", - "paramType": "body", - "name": "body", - "description": "", - "required": true, - "allowMultiple": false - } - ], - "responseMessages": [ - { - "code": 200, - "message": "OK", - "responseModel": "v1.PodTemplate" - } - ], - "produces": [ - "application/json" - ], - "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/watch/podtemplates", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -6548,7 +9662,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -6556,7 +9670,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -6564,7 +9678,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -6572,7 +9686,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } @@ -6588,14 +9710,14 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/replicationcontrollers", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.ReplicationControllerList", @@ -6615,7 +9737,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -6623,7 +9745,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -6631,7 +9753,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -6639,7 +9761,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, @@ -6660,10 +9790,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -6705,17 +9836,96 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" + ] + }, + { + "type": "unversioned.Status", + "method": "DELETE", + "summary": "delete collection of ReplicationController", + "nickname": "deletecollectionNamespacedReplicationController", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "unversioned.Status" + } + ], + "produces": [ + "application/json", + "application/yaml" + ], + "consumes": [ + "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/replicationcontrollers", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -6735,7 +9945,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -6743,7 +9953,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -6751,7 +9961,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -6759,7 +9969,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, @@ -6783,14 +10001,14 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.ReplicationController", @@ -6806,6 +10024,22 @@ "required": false, "allowMultiple": false }, + { + "type": "boolean", + "paramType": "query", + "name": "export", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "exact", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "required": false, + "allowMultiple": false + }, { "type": "string", "paramType": "path", @@ -6831,10 +10065,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -6884,10 +10119,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -6905,7 +10141,7 @@ "allowMultiple": false }, { - "type": "api.Patch", + "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", @@ -6937,7 +10173,8 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ "application/json-patch+json", @@ -6946,7 +10183,7 @@ ] }, { - "type": "v1.Status", + "type": "unversioned.Status", "method": "DELETE", "summary": "delete a ReplicationController", "nickname": "deleteNamespacedReplicationController", @@ -6988,21 +10225,22 @@ { "code": 200, "message": "OK", - "responseModel": "v1.Status" + "responseModel": "unversioned.Status" } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/replicationcontrollers/{name}", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -7022,7 +10260,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -7030,7 +10268,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -7038,7 +10276,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -7046,7 +10284,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, @@ -7078,14 +10324,14 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/replicationcontrollers", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.ReplicationControllerList", @@ -7105,7 +10351,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -7113,7 +10359,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -7121,7 +10367,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -7129,7 +10375,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } @@ -7142,54 +10396,18 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" - ] - }, - { - "type": "v1.ReplicationController", - "method": "POST", - "summary": "create a ReplicationController", - "nickname": "createReplicationController", - "parameters": [ - { - "type": "string", - "paramType": "query", - "name": "pretty", - "description": "If 'true', then the output is pretty printed.", - "required": false, - "allowMultiple": false - }, - { - "type": "v1.ReplicationController", - "paramType": "body", - "name": "body", - "description": "", - "required": true, - "allowMultiple": false - } - ], - "responseMessages": [ - { - "code": 200, - "message": "OK", - "responseModel": "v1.ReplicationController" - } - ], - "produces": [ - "application/json" - ], - "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/watch/replicationcontrollers", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -7209,7 +10427,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -7217,7 +10435,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -7225,7 +10443,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -7233,7 +10451,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } @@ -7249,14 +10475,236 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale", + "description": "API at /api/v1", + "operations": [ + { + "type": "v1.Scale", + "method": "GET", + "summary": "read scale of the specified Scale", + "nickname": "readNamespacedScaleScale", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Scale", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Scale" + } + ], + "produces": [ + "application/json", + "application/yaml" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "v1.Scale", + "method": "PUT", + "summary": "replace scale of the specified Scale", + "nickname": "replaceNamespacedScaleScale", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.Scale", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Scale", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Scale" + } + ], + "produces": [ + "application/json", + "application/yaml" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "v1.Scale", + "method": "PATCH", + "summary": "partially update scale of the specified Scale", + "nickname": "patchNamespacedScaleScale", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "unversioned.Patch", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Scale", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Scale" + } + ], + "produces": [ + "application/json", + "application/yaml" + ], + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status", + "description": "API at /api/v1", + "operations": [ + { + "type": "v1.ReplicationController", + "method": "PUT", + "summary": "replace status of the specified ReplicationController", + "nickname": "replaceNamespacedReplicationControllerStatus", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.ReplicationController", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the ReplicationController", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.ReplicationController" + } + ], + "produces": [ + "application/json", + "application/yaml" + ], + "consumes": [ + "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/resourcequotas", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.ResourceQuotaList", @@ -7276,7 +10724,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -7284,7 +10732,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -7292,7 +10740,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -7300,7 +10748,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, @@ -7321,10 +10777,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -7366,17 +10823,96 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" + ] + }, + { + "type": "unversioned.Status", + "method": "DELETE", + "summary": "delete collection of ResourceQuota", + "nickname": "deletecollectionNamespacedResourceQuota", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "unversioned.Status" + } + ], + "produces": [ + "application/json", + "application/yaml" + ], + "consumes": [ + "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/resourcequotas", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -7396,7 +10932,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -7404,7 +10940,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -7412,7 +10948,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -7420,7 +10956,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, @@ -7444,14 +10988,14 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/resourcequotas/{name}", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.ResourceQuota", @@ -7467,6 +11011,22 @@ "required": false, "allowMultiple": false }, + { + "type": "boolean", + "paramType": "query", + "name": "export", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "exact", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "required": false, + "allowMultiple": false + }, { "type": "string", "paramType": "path", @@ -7492,10 +11052,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -7545,10 +11106,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -7566,7 +11128,7 @@ "allowMultiple": false }, { - "type": "api.Patch", + "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", @@ -7598,7 +11160,8 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ "application/json-patch+json", @@ -7607,7 +11170,7 @@ ] }, { - "type": "v1.Status", + "type": "unversioned.Status", "method": "DELETE", "summary": "delete a ResourceQuota", "nickname": "deleteNamespacedResourceQuota", @@ -7649,21 +11212,22 @@ { "code": 200, "message": "OK", - "responseModel": "v1.Status" + "responseModel": "unversioned.Status" } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/resourcequotas/{name}", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -7683,7 +11247,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -7691,7 +11255,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -7699,7 +11263,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -7707,7 +11271,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, @@ -7739,14 +11311,14 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/resourcequotas", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.ResourceQuotaList", @@ -7766,7 +11338,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -7774,7 +11346,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -7782,7 +11354,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -7790,7 +11362,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } @@ -7803,54 +11383,18 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" - ] - }, - { - "type": "v1.ResourceQuota", - "method": "POST", - "summary": "create a ResourceQuota", - "nickname": "createResourceQuota", - "parameters": [ - { - "type": "string", - "paramType": "query", - "name": "pretty", - "description": "If 'true', then the output is pretty printed.", - "required": false, - "allowMultiple": false - }, - { - "type": "v1.ResourceQuota", - "paramType": "body", - "name": "body", - "description": "", - "required": true, - "allowMultiple": false - } - ], - "responseMessages": [ - { - "code": 200, - "message": "OK", - "responseModel": "v1.ResourceQuota" - } - ], - "produces": [ - "application/json" - ], - "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/watch/resourcequotas", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -7870,7 +11414,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -7878,7 +11422,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -7886,7 +11430,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -7894,7 +11438,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } @@ -7910,14 +11462,14 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/resourcequotas/{name}/status", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.ResourceQuota", @@ -7966,17 +11518,18 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/secrets", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.SecretList", @@ -7996,7 +11549,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -8004,7 +11557,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -8012,7 +11565,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -8020,7 +11573,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, @@ -8041,10 +11602,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -8086,17 +11648,96 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" + ] + }, + { + "type": "unversioned.Status", + "method": "DELETE", + "summary": "delete collection of Secret", + "nickname": "deletecollectionNamespacedSecret", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "unversioned.Status" + } + ], + "produces": [ + "application/json", + "application/yaml" + ], + "consumes": [ + "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/secrets", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -8116,7 +11757,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -8124,7 +11765,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -8132,7 +11773,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -8140,7 +11781,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, @@ -8164,14 +11813,14 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/secrets/{name}", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.Secret", @@ -8187,6 +11836,22 @@ "required": false, "allowMultiple": false }, + { + "type": "boolean", + "paramType": "query", + "name": "export", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "exact", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "required": false, + "allowMultiple": false + }, { "type": "string", "paramType": "path", @@ -8212,10 +11877,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -8265,10 +11931,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -8286,7 +11953,7 @@ "allowMultiple": false }, { - "type": "api.Patch", + "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", @@ -8318,7 +11985,8 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ "application/json-patch+json", @@ -8327,7 +11995,7 @@ ] }, { - "type": "v1.Status", + "type": "unversioned.Status", "method": "DELETE", "summary": "delete a Secret", "nickname": "deleteNamespacedSecret", @@ -8369,21 +12037,22 @@ { "code": 200, "message": "OK", - "responseModel": "v1.Status" + "responseModel": "unversioned.Status" } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/secrets/{name}", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -8403,7 +12072,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -8411,7 +12080,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -8419,7 +12088,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -8427,7 +12096,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, @@ -8459,14 +12136,14 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/secrets", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.SecretList", @@ -8486,7 +12163,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -8494,7 +12171,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -8502,7 +12179,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -8510,7 +12187,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } @@ -8523,54 +12208,18 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" - ] - }, - { - "type": "v1.Secret", - "method": "POST", - "summary": "create a Secret", - "nickname": "createSecret", - "parameters": [ - { - "type": "string", - "paramType": "query", - "name": "pretty", - "description": "If 'true', then the output is pretty printed.", - "required": false, - "allowMultiple": false - }, - { - "type": "v1.Secret", - "paramType": "body", - "name": "body", - "description": "", - "required": true, - "allowMultiple": false - } - ], - "responseMessages": [ - { - "code": 200, - "message": "OK", - "responseModel": "v1.Secret" - } - ], - "produces": [ - "application/json" - ], - "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/watch/secrets", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -8590,7 +12239,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -8598,7 +12247,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -8606,7 +12255,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -8614,7 +12263,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } @@ -8630,14 +12287,14 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/serviceaccounts", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.ServiceAccountList", @@ -8657,7 +12314,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -8665,7 +12322,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -8673,7 +12330,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -8681,7 +12338,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, @@ -8702,10 +12367,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -8747,17 +12413,96 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" + ] + }, + { + "type": "unversioned.Status", + "method": "DELETE", + "summary": "delete collection of ServiceAccount", + "nickname": "deletecollectionNamespacedServiceAccount", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "unversioned.Status" + } + ], + "produces": [ + "application/json", + "application/yaml" + ], + "consumes": [ + "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/serviceaccounts", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -8777,7 +12522,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -8785,7 +12530,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -8793,7 +12538,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -8801,7 +12546,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, @@ -8825,14 +12578,14 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/serviceaccounts/{name}", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.ServiceAccount", @@ -8848,6 +12601,22 @@ "required": false, "allowMultiple": false }, + { + "type": "boolean", + "paramType": "query", + "name": "export", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "exact", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "required": false, + "allowMultiple": false + }, { "type": "string", "paramType": "path", @@ -8873,10 +12642,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -8926,10 +12696,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -8947,7 +12718,7 @@ "allowMultiple": false }, { - "type": "api.Patch", + "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", @@ -8979,7 +12750,8 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ "application/json-patch+json", @@ -8988,7 +12760,7 @@ ] }, { - "type": "v1.Status", + "type": "unversioned.Status", "method": "DELETE", "summary": "delete a ServiceAccount", "nickname": "deleteNamespacedServiceAccount", @@ -9030,21 +12802,22 @@ { "code": 200, "message": "OK", - "responseModel": "v1.Status" + "responseModel": "unversioned.Status" } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/serviceaccounts/{name}", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -9064,7 +12837,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -9072,7 +12845,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -9080,7 +12853,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -9088,7 +12861,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, @@ -9120,14 +12901,14 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/serviceaccounts", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.ServiceAccountList", @@ -9147,7 +12928,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -9155,7 +12936,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -9163,7 +12944,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -9171,7 +12952,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } @@ -9184,54 +12973,18 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" - ] - }, - { - "type": "v1.ServiceAccount", - "method": "POST", - "summary": "create a ServiceAccount", - "nickname": "createServiceAccount", - "parameters": [ - { - "type": "string", - "paramType": "query", - "name": "pretty", - "description": "If 'true', then the output is pretty printed.", - "required": false, - "allowMultiple": false - }, - { - "type": "v1.ServiceAccount", - "paramType": "body", - "name": "body", - "description": "", - "required": true, - "allowMultiple": false - } - ], - "responseMessages": [ - { - "code": 200, - "message": "OK", - "responseModel": "v1.ServiceAccount" - } - ], - "produces": [ - "application/json" - ], - "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/watch/serviceaccounts", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -9251,7 +13004,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -9259,7 +13012,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -9267,7 +13020,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -9275,7 +13028,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } @@ -9291,14 +13052,14 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/services", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.ServiceList", @@ -9318,7 +13079,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -9326,7 +13087,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -9334,7 +13095,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -9342,7 +13103,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, @@ -9363,10 +13132,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -9408,17 +13178,18 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/services", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -9438,7 +13209,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -9446,7 +13217,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -9454,7 +13225,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -9462,7 +13233,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, @@ -9486,14 +13265,14 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/services/{name}", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.Service", @@ -9509,6 +13288,22 @@ "required": false, "allowMultiple": false }, + { + "type": "boolean", + "paramType": "query", + "name": "export", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "exact", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "required": false, + "allowMultiple": false + }, { "type": "string", "paramType": "path", @@ -9534,10 +13329,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -9587,10 +13383,11 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -9608,7 +13405,7 @@ "allowMultiple": false }, { - "type": "api.Patch", + "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", @@ -9640,7 +13437,8 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ "application/json-patch+json", @@ -9649,7 +13447,7 @@ ] }, { - "type": "v1.Status", + "type": "unversioned.Status", "method": "DELETE", "summary": "delete a Service", "nickname": "deleteNamespacedService", @@ -9683,21 +13481,22 @@ { "code": 200, "message": "OK", - "responseModel": "v1.Status" + "responseModel": "unversioned.Status" } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/services/{name}", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -9717,7 +13516,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -9725,7 +13524,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -9733,7 +13532,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -9741,7 +13540,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, @@ -9773,14 +13580,248 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" + ] + } + ] + }, + { + "path": "/api/v1/proxy/namespaces/{namespace}/services/{name}/{path}", + "description": "API at /api/v1", + "operations": [ + { + "type": "string", + "method": "GET", + "summary": "proxy GET requests to Service", + "nickname": "proxyGETNamespacedService", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Service", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "path", + "description": "path to the resource", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "PUT", + "summary": "proxy PUT requests to Service", + "nickname": "proxyPUTNamespacedService", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Service", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "path", + "description": "path to the resource", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "POST", + "summary": "proxy POST requests to Service", + "nickname": "proxyPOSTNamespacedService", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Service", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "path", + "description": "path to the resource", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "DELETE", + "summary": "proxy DELETE requests to Service", + "nickname": "proxyDELETENamespacedService", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Service", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "path", + "description": "path to the resource", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "HEAD", + "summary": "proxy HEAD requests to Service", + "nickname": "proxyHEADNamespacedService", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Service", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "path", + "description": "path to the resource", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "OPTIONS", + "summary": "proxy OPTIONS requests to Service", + "nickname": "proxyOPTIONSNamespacedService", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Service", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "path", + "description": "path to the resource", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" ] } ] }, { "path": "/api/v1/proxy/namespaces/{namespace}/services/{name}", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "string", @@ -9806,10 +13847,10 @@ } ], "produces": [ - "application/json" + "*/*" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -9836,10 +13877,10 @@ } ], "produces": [ - "application/json" + "*/*" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -9866,10 +13907,10 @@ } ], "produces": [ - "application/json" + "*/*" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -9896,10 +13937,10 @@ } ], "produces": [ - "application/json" + "*/*" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -9926,10 +13967,10 @@ } ], "produces": [ - "application/json" + "*/*" ], "consumes": [ - "application/json" + "*/*" ] }, { @@ -9956,17 +13997,17 @@ } ], "produces": [ - "application/json" + "*/*" ], "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/services", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "v1.ServiceList", @@ -9986,7 +14027,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -9994,7 +14035,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -10002,7 +14043,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -10010,7 +14051,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } @@ -10023,54 +14072,18 @@ } ], "produces": [ - "application/json" + "application/json", + "application/yaml" ], "consumes": [ - "application/json" - ] - }, - { - "type": "v1.Service", - "method": "POST", - "summary": "create a Service", - "nickname": "createService", - "parameters": [ - { - "type": "string", - "paramType": "query", - "name": "pretty", - "description": "If 'true', then the output is pretty printed.", - "required": false, - "allowMultiple": false - }, - { - "type": "v1.Service", - "paramType": "body", - "name": "body", - "description": "", - "required": true, - "allowMultiple": false - } - ], - "responseMessages": [ - { - "code": 200, - "message": "OK", - "responseModel": "v1.Service" - } - ], - "produces": [ - "application/json" - ], - "consumes": [ - "application/json" + "*/*" ] } ] }, { "path": "/api/v1/watch/services", - "description": "API at /api/v1 version v1", + "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", @@ -10090,7 +14103,7 @@ "type": "string", "paramType": "query", "name": "labelSelector", - "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -10098,7 +14111,7 @@ "type": "string", "paramType": "query", "name": "fieldSelector", - "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, @@ -10106,7 +14119,7 @@ "type": "boolean", "paramType": "query", "name": "watch", - "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, @@ -10114,7 +14127,15 @@ "type": "string", "paramType": "query", "name": "resourceVersion", - "description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "integer", + "paramType": "query", + "name": "timeoutSeconds", + "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } @@ -10130,7 +14151,604 @@ "application/json" ], "consumes": [ - "application/json" + "*/*" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/services/{name}/proxy", + "description": "API at /api/v1", + "operations": [ + { + "type": "string", + "method": "GET", + "summary": "connect GET requests to proxy of Service", + "nickname": "connectGetNamespacedServiceProxy", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "path", + "description": "Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Service", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "POST", + "summary": "connect POST requests to proxy of Service", + "nickname": "connectPostNamespacedServiceProxy", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "path", + "description": "Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Service", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "PUT", + "summary": "connect PUT requests to proxy of Service", + "nickname": "connectPutNamespacedServiceProxy", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "path", + "description": "Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Service", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "DELETE", + "summary": "connect DELETE requests to proxy of Service", + "nickname": "connectDeleteNamespacedServiceProxy", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "path", + "description": "Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Service", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "HEAD", + "summary": "connect HEAD requests to proxy of Service", + "nickname": "connectHeadNamespacedServiceProxy", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "path", + "description": "Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Service", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "OPTIONS", + "summary": "connect OPTIONS requests to proxy of Service", + "nickname": "connectOptionsNamespacedServiceProxy", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "path", + "description": "Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Service", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}", + "description": "API at /api/v1", + "operations": [ + { + "type": "string", + "method": "GET", + "summary": "connect GET requests to proxy of Service", + "nickname": "connectGetNamespacedServiceProxy", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "path", + "description": "Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Service", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "path", + "description": "path to the resource", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "POST", + "summary": "connect POST requests to proxy of Service", + "nickname": "connectPostNamespacedServiceProxy", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "path", + "description": "Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Service", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "path", + "description": "path to the resource", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "PUT", + "summary": "connect PUT requests to proxy of Service", + "nickname": "connectPutNamespacedServiceProxy", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "path", + "description": "Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Service", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "path", + "description": "path to the resource", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "DELETE", + "summary": "connect DELETE requests to proxy of Service", + "nickname": "connectDeleteNamespacedServiceProxy", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "path", + "description": "Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Service", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "path", + "description": "path to the resource", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "HEAD", + "summary": "connect HEAD requests to proxy of Service", + "nickname": "connectHeadNamespacedServiceProxy", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "path", + "description": "Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Service", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "path", + "description": "path to the resource", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "string", + "method": "OPTIONS", + "summary": "connect OPTIONS requests to proxy of Service", + "nickname": "connectOptionsNamespacedServiceProxy", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "path", + "description": "Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Service", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "path", + "description": "path to the resource", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "*/*" + ], + "consumes": [ + "*/*" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/services/{name}/status", + "description": "API at /api/v1", + "operations": [ + { + "type": "v1.Service", + "method": "PUT", + "summary": "replace status of the specified Service", + "nickname": "replaceNamespacedServiceStatus", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.Service", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Service", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Service" + } + ], + "produces": [ + "application/json", + "application/yaml" + ], + "consumes": [ + "*/*" + ] + } + ] + }, + { + "path": "/api/v1", + "description": "API at /api/v1", + "operations": [ + { + "type": "void", + "method": "GET", + "summary": "get available resources", + "nickname": "getAPIResources", + "parameters": [], + "produces": [ + "application/json", + "application/yaml" + ], + "consumes": [ + "application/json", + "application/yaml" ] } ] @@ -10139,177 +14757,189 @@ "models": { "v1.Binding": { "id": "v1.Binding", + "description": "Binding ties one object to another. For example, a pod is bound to a node by a scheduler.", "required": [ "target" ], "properties": { "kind": { "type": "string", - "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", - "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", - "description": "standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "target": { "$ref": "v1.ObjectReference", - "description": "an object to bind to" + "description": "The target object that you want to bind to the standard object." } } }, "v1.ObjectMeta": { "id": "v1.ObjectMeta", + "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", "properties": { "name": { "type": "string", - "description": "string that identifies an object. Must be unique within a namespace; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/identifiers.md#names" + "description": "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://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names" }, "generateName": { "type": "string", - "description": "an optional prefix to use to generate a unique name; has the same validation rules as name; optional, and is applied only name if is not specified; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#idempotency" + "description": "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.\n\nIf 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).\n\nApplied only if Name is not specified. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#idempotency" }, "namespace": { "type": "string", - "description": "namespace of the object; must be a DNS_LABEL; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/namespaces.md" + "description": "Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/namespaces.md" }, "selfLink": { "type": "string", - "description": "URL for the object; populated by the system, read-only" + "description": "SelfLink is a URL representing this object. Populated by the system. Read-only." }, "uid": { "type": "string", - "description": "unique UUID across space and time; populated by the system; read-only; see http://releases.k8s.io/v1.0.4/docs/identifiers.md#uids" + "description": "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#uids" }, "resourceVersion": { "type": "string", - "description": "string that identifies the internal version of this object that can be used by clients to determine when objects have changed; populated by the system, read-only; value must be treated as opaque by clients and passed unmodified back to the server: http://releases.k8s.io/v1.0.4/docs/api-conventions.md#concurrency-control-and-consistency" + "description": "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.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#concurrency-control-and-consistency" }, "generation": { "type": "integer", "format": "int64", - "description": "a sequence number representing a specific generation of the desired state; populated by the system; read-only" + "description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only." }, "creationTimestamp": { "type": "string", - "description": "RFC 3339 date and time at which the object was created; populated by the system, read-only; null for lists; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + "description": "CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "deletionTimestamp": { "type": "string", - "description": "RFC 3339 date and time at which the object will be deleted; populated by the system when a graceful deletion is requested, read-only; if not set, graceful deletion of the object has not been requested; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + "description": "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 will be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field. Once 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. Once the resource is deleted in the API, the Kubelet will send a hard termination signal to the container. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" + }, + "deletionGracePeriodSeconds": { + "type": "integer", + "format": "int64", + "description": "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." }, "labels": { - "type": "string", - "description": "map of string keys and values that can be used to organize and categorize objects; may match selectors of replication controllers and services; see http://releases.k8s.io/v1.0.4/docs/labels.md" + "type": "object", + "description": "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://releases.k8s.io/release-1.2/docs/user-guide/labels.md" }, "annotations": { - "type": "string", - "description": "map of string keys and values that can be used by external tooling to store and retrieve arbitrary metadata about objects; see http://releases.k8s.io/v1.0.4/docs/annotations.md" + "type": "object", + "description": "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://releases.k8s.io/release-1.2/docs/user-guide/annotations.md" } } }, "v1.ObjectReference": { "id": "v1.ObjectReference", + "description": "ObjectReference contains enough information to let you inspect or modify the referred object.", "properties": { "kind": { "type": "string", - "description": "kind of the referent; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + "description": "Kind of the referent. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "namespace": { "type": "string", - "description": "namespace of the referent; see http://releases.k8s.io/v1.0.4/docs/namespaces.md" + "description": "Namespace of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/namespaces.md" }, "name": { "type": "string", - "description": "name of the referent; see http://releases.k8s.io/v1.0.4/docs/identifiers.md#names" + "description": "Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names" }, "uid": { "type": "string", - "description": "uid of the referent; see http://releases.k8s.io/v1.0.4/docs/identifiers.md#uids" + "description": "UID of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#uids" }, "apiVersion": { "type": "string", - "description": "API version of the referent" + "description": "API version of the referent." }, "resourceVersion": { "type": "string", - "description": "specific resourceVersion to which this reference is made, if any: http://releases.k8s.io/v1.0.4/docs/api-conventions.md#concurrency-control-and-consistency" + "description": "Specific resourceVersion to which this reference is made, if any. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#concurrency-control-and-consistency" }, "fieldPath": { "type": "string", - "description": "if referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]" + "description": "If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object." } } }, "v1.ComponentStatusList": { "id": "v1.ComponentStatusList", + "description": "Status of all the conditions for the component as a list of ComponentStatus objects.", "required": [ "items" ], "properties": { "kind": { "type": "string", - "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", - "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { - "$ref": "v1.ListMeta", - "description": "standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + "$ref": "unversioned.ListMeta", + "description": "Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "items": { "type": "array", "items": { "$ref": "v1.ComponentStatus" }, - "description": "list of component status objects" + "description": "List of ComponentStatus objects." } } }, - "v1.ListMeta": { - "id": "v1.ListMeta", + "unversioned.ListMeta": { + "id": "unversioned.ListMeta", + "description": "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.", "properties": { "selfLink": { "type": "string", - "description": "URL for the object; populated by the system, read-only" + "description": "SelfLink is a URL representing this object. Populated by the system. Read-only." }, "resourceVersion": { "type": "string", - "description": "string that identifies the internal version of this object that can be used by clients to determine when objects have changed; populated by the system, read-only; value must be treated as opaque by clients and passed unmodified back to the server: http://releases.k8s.io/v1.0.4/docs/api-conventions.md#concurrency-control-and-consistency" + "description": "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: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#concurrency-control-and-consistency" } } }, "v1.ComponentStatus": { "id": "v1.ComponentStatus", + "description": "ComponentStatus (and ComponentStatusList) holds the cluster validation info.", "properties": { "kind": { "type": "string", - "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", - "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", - "description": "standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "conditions": { "type": "array", "items": { "$ref": "v1.ComponentCondition" }, - "description": "list of component conditions observed" + "description": "List of component conditions observed" } } }, "v1.ComponentCondition": { "id": "v1.ComponentCondition", + "description": "Information about the condition of a component.", "required": [ "type", "status" @@ -10317,129 +14947,153 @@ "properties": { "type": { "type": "string", - "description": "type of component condition, currently only Healthy" + "description": "Type of condition for a component. Valid value: \"Healthy\"" }, "status": { "type": "string", - "description": "current status of this component condition, one of True, False, Unknown" + "description": "Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\"." }, "message": { "type": "string", - "description": "health check message received from the component" + "description": "Message about the condition for a component. For example, information about a health check." }, "error": { "type": "string", - "description": "error code from health check attempt (if any)" + "description": "Condition error code for a component. For example, a health check error code." } } }, - "v1.EndpointsList": { - "id": "v1.EndpointsList", - "required": [ - "items" - ], + "v1.ConfigMapList": { + "id": "v1.ConfigMapList", + "description": "ConfigMapList is a resource containing a list of ConfigMap objects.", "properties": { "kind": { "type": "string", - "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", - "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { - "$ref": "v1.ListMeta", - "description": "standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + "$ref": "unversioned.ListMeta", + "description": "More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "items": { "type": "array", "items": { - "$ref": "v1.Endpoints" + "$ref": "v1.ConfigMap" }, - "description": "list of endpoints" + "description": "Items is the list of ConfigMaps." } } }, - "v1.Endpoints": { - "id": "v1.Endpoints", - "required": [ - "subsets" - ], + "v1.ConfigMap": { + "id": "v1.ConfigMap", + "description": "ConfigMap holds configuration data for pods to consume.", "properties": { "kind": { "type": "string", - "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", - "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", - "description": "standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, - "subsets": { - "type": "array", - "items": { - "$ref": "v1.EndpointSubset" - }, - "description": "sets of addresses and ports that comprise a service" + "data": { + "type": "object", + "description": "Data contains the configuration data. Each key must be a valid DNS_SUBDOMAIN with an optional leading dot." } } }, - "v1.EndpointSubset": { - "id": "v1.EndpointSubset", + "unversioned.Status": { + "id": "unversioned.Status", + "description": "Status is a return value for calls that don't return other objects.", "properties": { - "addresses": { - "type": "array", - "items": { - "$ref": "v1.EndpointAddress" - }, - "description": "IP addresses which offer the related ports" - }, - "ports": { - "type": "array", - "items": { - "$ref": "v1.EndpointPort" - }, - "description": "port numbers available on the related IP addresses" - } - } - }, - "v1.EndpointAddress": { - "id": "v1.EndpointAddress", - "required": [ - "ip" - ], - "properties": { - "ip": { + "kind": { "type": "string", - "description": "IP address of the endpoint" + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, - "targetRef": { - "$ref": "v1.ObjectReference", - "description": "reference to object providing the endpoint" + "apiVersion": { + "type": "string", + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources" + }, + "metadata": { + "$ref": "unversioned.ListMeta", + "description": "Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" + }, + "status": { + "type": "string", + "description": "Status of the operation. One of: \"Success\" or \"Failure\". More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" + }, + "message": { + "type": "string", + "description": "A human-readable description of the status of this operation." + }, + "reason": { + "type": "string", + "description": "A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it." + }, + "details": { + "$ref": "unversioned.StatusDetails", + "description": "Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type." + }, + "code": { + "type": "integer", + "format": "int32", + "description": "Suggested HTTP return code for this status, 0 if not set." } } }, - "v1.EndpointPort": { - "id": "v1.EndpointPort", - "required": [ - "port" - ], + "unversioned.StatusDetails": { + "id": "unversioned.StatusDetails", + "description": "StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.", "properties": { "name": { "type": "string", - "description": "name of this port" + "description": "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described)." }, - "port": { + "group": { + "type": "string", + "description": "The group attribute of the resource associated with the status StatusReason." + }, + "kind": { + "type": "string", + "description": "The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" + }, + "causes": { + "type": "array", + "items": { + "$ref": "unversioned.StatusCause" + }, + "description": "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes." + }, + "retryAfterSeconds": { "type": "integer", "format": "int32", - "description": "port number of the endpoint" - }, - "protocol": { + "description": "If specified, the time in seconds before the operation should be retried." + } + } + }, + "unversioned.StatusCause": { + "id": "unversioned.StatusCause", + "description": "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.", + "properties": { + "reason": { "type": "string", - "description": "protocol for this port; must be UDP or TCP; TCP if unspecified" + "description": "A machine-readable description of the cause of the error. If this value is empty there is no information available." + }, + "message": { + "type": "string", + "description": "A human-readable description of the cause of the error. This field may be presented as-is to a reader." + }, + "field": { + "type": "string", + "description": "The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.\n\nExamples:\n \"name\" - the field \"name\" on the current resource\n \"items[0].name\" - the field \"name\" on the first array entry in \"items\"" } } }, @@ -10456,140 +15110,186 @@ } } }, - "api.Patch": { - "id": "api.Patch", + "unversioned.Patch": { + "id": "unversioned.Patch", + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", "properties": {} }, - "v1.Status": { - "id": "v1.Status", - "properties": { - "kind": { - "type": "string", - "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" - }, - "apiVersion": { - "type": "string", - "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" - }, - "metadata": { - "$ref": "v1.ListMeta", - "description": "standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" - }, - "status": { - "type": "string", - "description": "status of the operation; either Success, or Failure; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status" - }, - "message": { - "type": "string", - "description": "human-readable description of the status of this operation" - }, - "reason": { - "type": "string", - "description": "machine-readable description of why this operation is in the 'Failure' status; if this value is empty there is no information available; a reason clarifies an HTTP status code but does not override it" - }, - "details": { - "$ref": "v1.StatusDetails", - "description": "extended data associated with the reason; each reason may define its own extended details; this field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type" - }, - "code": { - "type": "integer", - "format": "int32", - "description": "suggested HTTP return code for this status; 0 if not set" - } - } - }, - "v1.StatusDetails": { - "id": "v1.StatusDetails", - "properties": { - "name": { - "type": "string", - "description": "the name attribute of the resource associated with the status StatusReason (when there is a single name which can be described)" - }, - "kind": { - "type": "string", - "description": "the kind attribute of the resource associated with the status StatusReason; on some operations may differ from the requested resource Kind; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" - }, - "causes": { - "type": "array", - "items": { - "$ref": "v1.StatusCause" - }, - "description": "the Causes array includes more details associated with the StatusReason failure; not all StatusReasons may provide detailed causes" - }, - "retryAfterSeconds": { - "type": "integer", - "format": "int32", - "description": "the number of seconds before the client should attempt to retry this operation" - } - } - }, - "v1.StatusCause": { - "id": "v1.StatusCause", - "properties": { - "reason": { - "type": "string", - "description": "machine-readable description of the cause of the error; if this value is empty there is no information available" - }, - "message": { - "type": "string", - "description": "human-readable description of the cause of the error; this field may be presented as-is to a reader" - }, - "field": { - "type": "string", - "description": "field of the resource that has caused this error, as named by its JSON serialization; may include dot and postfix notation for nested attributes; arrays are zero-indexed; fields may appear more than once in an array of causes due to fields having multiple errors" - } - } - }, "v1.DeleteOptions": { "id": "v1.DeleteOptions", + "description": "DeleteOptions may be provided when deleting an API object", "required": [ "gracePeriodSeconds" ], "properties": { "kind": { "type": "string", - "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", - "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources" }, "gracePeriodSeconds": { "type": "integer", "format": "int64", - "description": "the duration in seconds to wait before deleting this object; defaults to a per object value if not specified; zero means delete immediately" + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately." } } }, - "v1.EventList": { - "id": "v1.EventList", + "v1.EndpointsList": { + "id": "v1.EndpointsList", + "description": "EndpointsList is a list of endpoints.", "required": [ "items" ], "properties": { "kind": { "type": "string", - "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", - "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { - "$ref": "v1.ListMeta", - "description": "standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + "$ref": "unversioned.ListMeta", + "description": "Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" + }, + "items": { + "type": "array", + "items": { + "$ref": "v1.Endpoints" + }, + "description": "List of endpoints." + } + } + }, + "v1.Endpoints": { + "id": "v1.Endpoints", + "description": "Endpoints is a collection of endpoints that implement the actual service. Example:\n Name: \"mysvc\",\n Subsets: [\n {\n Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n },\n {\n Addresses: [{\"ip\": \"10.10.3.3\"}],\n Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}]\n },\n ]", + "required": [ + "subsets" + ], + "properties": { + "kind": { + "type": "string", + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources" + }, + "metadata": { + "$ref": "v1.ObjectMeta", + "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" + }, + "subsets": { + "type": "array", + "items": { + "$ref": "v1.EndpointSubset" + }, + "description": "The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service." + } + } + }, + "v1.EndpointSubset": { + "id": "v1.EndpointSubset", + "description": "EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given:\n {\n Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n }\nThe resulting set of endpoints can be viewed as:\n a: [ 10.10.1.1:8675, 10.10.2.2:8675 ],\n b: [ 10.10.1.1:309, 10.10.2.2:309 ]", + "properties": { + "addresses": { + "type": "array", + "items": { + "$ref": "v1.EndpointAddress" + }, + "description": "IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize." + }, + "notReadyAddresses": { + "type": "array", + "items": { + "$ref": "v1.EndpointAddress" + }, + "description": "IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check." + }, + "ports": { + "type": "array", + "items": { + "$ref": "v1.EndpointPort" + }, + "description": "Port numbers available on the related IP addresses." + } + } + }, + "v1.EndpointAddress": { + "id": "v1.EndpointAddress", + "description": "EndpointAddress is a tuple that describes single IP address.", + "required": [ + "ip" + ], + "properties": { + "ip": { + "type": "string", + "description": "The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24)." + }, + "targetRef": { + "$ref": "v1.ObjectReference", + "description": "Reference to object providing the endpoint." + } + } + }, + "v1.EndpointPort": { + "id": "v1.EndpointPort", + "description": "EndpointPort is a tuple that describes a single port.", + "required": [ + "port" + ], + "properties": { + "name": { + "type": "string", + "description": "The name of this port (corresponds to ServicePort.Name). Must be a DNS_LABEL. Optional only if one port is defined." + }, + "port": { + "type": "integer", + "format": "int32", + "description": "The port number of the endpoint." + }, + "protocol": { + "type": "string", + "description": "The IP protocol for this port. Must be UDP or TCP. Default is TCP." + } + } + }, + "v1.EventList": { + "id": "v1.EventList", + "description": "EventList is a list of events.", + "required": [ + "items" + ], + "properties": { + "kind": { + "type": "string", + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources" + }, + "metadata": { + "$ref": "unversioned.ListMeta", + "description": "Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "items": { "type": "array", "items": { "$ref": "v1.Event" }, - "description": "list of events" + "description": "List of events" } } }, "v1.Event": { "id": "v1.Event", + "description": "Event is a report of an event somewhere in the cluster.", "required": [ "metadata", "involvedObject" @@ -10597,110 +15297,118 @@ "properties": { "kind": { "type": "string", - "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", - "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", - "description": "standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "involvedObject": { "$ref": "v1.ObjectReference", - "description": "object this event is about" + "description": "The object that this event is about." }, "reason": { "type": "string", - "description": "short, machine understandable string that gives the reason for the transition into the object's current status" + "description": "This should be a short, machine understandable string that gives the reason for the transition into the object's current status." }, "message": { "type": "string", - "description": "human-readable description of the status of this operation" + "description": "A human-readable description of the status of this operation." }, "source": { "$ref": "v1.EventSource", - "description": "component reporting this event" + "description": "The component reporting this event. Should be a short machine understandable string." }, "firstTimestamp": { "type": "string", - "description": "the time at which the event was first recorded" + "description": "The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)" }, "lastTimestamp": { "type": "string", - "description": "the time at which the most recent occurrence of this event was recorded" + "description": "The time at which the most recent occurrence of this event was recorded." }, "count": { "type": "integer", "format": "int32", - "description": "the number of times this event has occurred" + "description": "The number of times this event has occurred." + }, + "type": { + "type": "string", + "description": "Type of this event (Normal, Warning), new types could be added in the future" } } }, "v1.EventSource": { "id": "v1.EventSource", + "description": "EventSource contains information for an event.", "properties": { "component": { "type": "string", - "description": "component that generated the event" + "description": "Component from which the event is generated." }, "host": { "type": "string", - "description": "name of the host where the event is generated" + "description": "Host name on which the event is generated." } } }, "v1.LimitRangeList": { "id": "v1.LimitRangeList", + "description": "LimitRangeList is a list of LimitRange items.", "required": [ "items" ], "properties": { "kind": { "type": "string", - "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", - "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { - "$ref": "v1.ListMeta", - "description": "standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + "$ref": "unversioned.ListMeta", + "description": "Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "items": { "type": "array", "items": { "$ref": "v1.LimitRange" }, - "description": "items is a list of LimitRange objects; see http://releases.k8s.io/v1.0.4/docs/design/admission_control_limit_range.md" + "description": "Items is a list of LimitRange objects. More info: http://releases.k8s.io/release-1.2/docs/design/admission_control_limit_range.md" } } }, "v1.LimitRange": { "id": "v1.LimitRange", + "description": "LimitRange sets resource usage limits for each kind of resource in a Namespace.", "properties": { "kind": { "type": "string", - "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", - "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", - "description": "standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "spec": { "$ref": "v1.LimitRangeSpec", - "description": "spec defines the limits enforced; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status" + "description": "Spec defines the limits enforced. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" } } }, "v1.LimitRangeSpec": { "id": "v1.LimitRangeSpec", + "description": "LimitRangeSpec defines a min/max usage limit for resources that match on kind.", "required": [ "limits" ], @@ -10710,92 +15418,104 @@ "items": { "$ref": "v1.LimitRangeItem" }, - "description": "limits is the list of LimitRangeItem objects that are enforced" + "description": "Limits is the list of LimitRangeItem objects that are enforced." } } }, "v1.LimitRangeItem": { "id": "v1.LimitRangeItem", + "description": "LimitRangeItem defines a min/max usage limit for any resource that matches on kind.", "properties": { "type": { "type": "string", - "description": "type of resource that this limit applies to" + "description": "Type of resource that this limit applies to." }, "max": { - "type": "string", - "description": "max usage constraints on this kind by resource name" + "type": "object", + "description": "Max usage constraints on this kind by resource name." }, "min": { - "type": "string", - "description": "min usage constraints on this kind by resource name" + "type": "object", + "description": "Min usage constraints on this kind by resource name." }, "default": { - "type": "string", - "description": "default values on this kind by resource name if omitted" + "type": "object", + "description": "Default resource requirement limit value by resource name if resource limit is omitted." + }, + "defaultRequest": { + "type": "object", + "description": "DefaultRequest is the default resource requirement request value by resource name if resource request is omitted." + }, + "maxLimitRequestRatio": { + "type": "object", + "description": "MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource." } } }, "v1.NamespaceList": { "id": "v1.NamespaceList", + "description": "NamespaceList is a list of Namespaces.", "required": [ "items" ], "properties": { "kind": { "type": "string", - "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", - "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { - "$ref": "v1.ListMeta", - "description": "standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + "$ref": "unversioned.ListMeta", + "description": "Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "items": { "type": "array", "items": { "$ref": "v1.Namespace" }, - "description": "items is the list of Namespace objects in the list; see http://releases.k8s.io/v1.0.4/docs/namespaces.md" + "description": "Items is the list of Namespace objects in the list. More info: http://releases.k8s.io/release-1.2/docs/user-guide/namespaces.md" } } }, "v1.Namespace": { "id": "v1.Namespace", + "description": "Namespace provides a scope for Names. Use of multiple namespaces is optional.", "properties": { "kind": { "type": "string", - "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", - "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", - "description": "standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "spec": { "$ref": "v1.NamespaceSpec", - "description": "spec defines the behavior of the Namespace; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status" + "description": "Spec defines the behavior of the Namespace. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" }, "status": { "$ref": "v1.NamespaceStatus", - "description": "status describes the current status of a Namespace; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status" + "description": "Status describes the current status of a Namespace. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" } } }, "v1.NamespaceSpec": { "id": "v1.NamespaceSpec", + "description": "NamespaceSpec describes the attributes on a Namespace.", "properties": { "finalizers": { "type": "array", "items": { "$ref": "v1.FinalizerName" }, - "description": "an opaque list of values that must be empty to permanently remove object from storage; see http://releases.k8s.io/v1.0.4/docs/design/namespaces.md#finalizers" + "description": "Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: http://releases.k8s.io/release-1.2/docs/design/namespaces.md#finalizers" } } }, @@ -10805,75 +15525,79 @@ }, "v1.NamespaceStatus": { "id": "v1.NamespaceStatus", + "description": "NamespaceStatus is information about the current status of a Namespace.", "properties": { "phase": { "type": "string", - "description": "phase is the current lifecycle phase of the namespace; see http://releases.k8s.io/v1.0.4/docs/design/namespaces.md#phases" + "description": "Phase is the current lifecycle phase of the namespace. More info: http://releases.k8s.io/release-1.2/docs/design/namespaces.md#phases" } } }, "v1.NodeList": { "id": "v1.NodeList", + "description": "NodeList is the whole list of all Nodes which have been registered with master.", "required": [ "items" ], "properties": { "kind": { "type": "string", - "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", - "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { - "$ref": "v1.ListMeta", - "description": "standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + "$ref": "unversioned.ListMeta", + "description": "Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "items": { "type": "array", "items": { "$ref": "v1.Node" }, - "description": "list of nodes" + "description": "List of nodes" } } }, "v1.Node": { "id": "v1.Node", + "description": "Node is a worker node in Kubernetes, formerly known as minion. Each node will have a unique identifier in the cache (i.e. in etcd).", "properties": { "kind": { "type": "string", - "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", - "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", - "description": "standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "spec": { "$ref": "v1.NodeSpec", - "description": "specification of a node; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status" + "description": "Spec defines the behavior of a node. http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" }, "status": { "$ref": "v1.NodeStatus", - "description": "most recently observed status of the node; populated by the system, read-only; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status" + "description": "Most recently observed status of the node. Populated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" } } }, "v1.NodeSpec": { "id": "v1.NodeSpec", + "description": "NodeSpec describes the attributes that a node is created with.", "properties": { "podCIDR": { "type": "string", - "description": "pod IP range assigned to the node" + "description": "PodCIDR represents the pod IP range assigned to the node." }, "externalID": { "type": "string", - "description": "deprecated. External ID assigned to the node by some machine database (e.g. a cloud provider). Defaults to node name when empty." + "description": "External ID of the node assigned by some machine database (e.g. a cloud provider). Deprecated." }, "providerID": { "type": "string", @@ -10881,43 +15605,63 @@ }, "unschedulable": { "type": "boolean", - "description": "disable pod scheduling on the node; see http://releases.k8s.io/v1.0.4/docs/node.md#manual-node-administration" + "description": "Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: http://releases.k8s.io/release-1.2/docs/admin/node.md#manual-node-administration\"`" } } }, "v1.NodeStatus": { "id": "v1.NodeStatus", + "description": "NodeStatus is information about the current status of a node.", + "required": [ + "images" + ], "properties": { "capacity": { - "type": "string", - "description": "compute resource capacity of the node; see http://releases.k8s.io/v1.0.4/docs/compute_resources.md" + "type": "object", + "description": "Capacity represents the total resources of a node. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#capacity for more details." + }, + "allocatable": { + "type": "object", + "description": "Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity." }, "phase": { "type": "string", - "description": "most recently observed lifecycle phase of the node; see http://releases.k8s.io/v1.0.4/docs/node.md#node-phase" + "description": "NodePhase is the recently observed lifecycle phase of the node. More info: http://releases.k8s.io/release-1.2/docs/admin/node.md#node-phase" }, "conditions": { "type": "array", "items": { "$ref": "v1.NodeCondition" }, - "description": "list of node conditions observed; see http://releases.k8s.io/v1.0.4/docs/node.md#node-condition" + "description": "Conditions is an array of current observed node conditions. More info: http://releases.k8s.io/release-1.2/docs/admin/node.md#node-condition" }, "addresses": { "type": "array", "items": { "$ref": "v1.NodeAddress" }, - "description": "list of addresses reachable to the node; see http://releases.k8s.io/v1.0.4/docs/node.md#node-addresses" + "description": "List of addresses reachable to the node. Queried from cloud provider, if available. More info: http://releases.k8s.io/release-1.2/docs/admin/node.md#node-addresses" + }, + "daemonEndpoints": { + "$ref": "v1.NodeDaemonEndpoints", + "description": "Endpoints of daemons running on the Node." }, "nodeInfo": { "$ref": "v1.NodeSystemInfo", - "description": "set of ids/uuids to uniquely identify the node; see http://releases.k8s.io/v1.0.4/docs/node.md#node-info" + "description": "Set of ids/uuids to uniquely identify the node. More info: http://releases.k8s.io/release-1.2/docs/admin/node.md#node-info" + }, + "images": { + "type": "array", + "items": { + "$ref": "v1.ContainerImage" + }, + "description": "List of container images on this node" } } }, "v1.NodeCondition": { "id": "v1.NodeCondition", + "description": "NodeCondition contains condition infromation for a node.", "required": [ "type", "status" @@ -10925,32 +15669,33 @@ "properties": { "type": { "type": "string", - "description": "type of node condition, currently only Ready" + "description": "Type of node condition." }, "status": { "type": "string", - "description": "status of the condition, one of True, False, Unknown" + "description": "Status of the condition, one of True, False, Unknown." }, "lastHeartbeatTime": { "type": "string", - "description": "last time we got an update on a given condition" + "description": "Last time we got an update on a given condition." }, "lastTransitionTime": { "type": "string", - "description": "last time the condition transit from one status to another" + "description": "Last time the condition transit from one status to another." }, "reason": { "type": "string", - "description": "(brief) reason for the condition's last transition" + "description": "(brief) reason for the condition's last transition." }, "message": { "type": "string", - "description": "human readable message indicating details about last transition" + "description": "Human readable message indicating details about last transition." } } }, "v1.NodeAddress": { "id": "v1.NodeAddress", + "description": "NodeAddress contains information for the node's address.", "required": [ "type", "address" @@ -10958,16 +15703,41 @@ "properties": { "type": { "type": "string", - "description": "node address type, one of Hostname, ExternalIP or InternalIP" + "description": "Node address type, one of Hostname, ExternalIP or InternalIP." }, "address": { "type": "string", - "description": "the node address" + "description": "The node address." + } + } + }, + "v1.NodeDaemonEndpoints": { + "id": "v1.NodeDaemonEndpoints", + "description": "NodeDaemonEndpoints lists ports opened by daemons running on the Node.", + "properties": { + "kubeletEndpoint": { + "$ref": "v1.DaemonEndpoint", + "description": "Endpoint on which Kubelet is listening." + } + } + }, + "v1.DaemonEndpoint": { + "id": "v1.DaemonEndpoint", + "description": "DaemonEndpoint contains information about a single Daemon endpoint.", + "required": [ + "Port" + ], + "properties": { + "Port": { + "type": "integer", + "format": "int32", + "description": "Port number of the given endpoint." } } }, "v1.NodeSystemInfo": { "id": "v1.NodeSystemInfo", + "description": "NodeSystemInfo is a set of ids/uuids to uniquely identify the node.", "required": [ "machineID", "systemUUID", @@ -10981,104 +15751,131 @@ "properties": { "machineID": { "type": "string", - "description": "machine-id reported by the node" + "description": "Machine ID reported by the node." }, "systemUUID": { "type": "string", - "description": "system-uuid reported by the node" + "description": "System UUID reported by the node." }, "bootID": { "type": "string", - "description": "boot id is the boot-id reported by the node" + "description": "Boot ID reported by the node." }, "kernelVersion": { "type": "string", - "description": "Kernel version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64)" + "description": "Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64)." }, "osImage": { "type": "string", - "description": "OS image used reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy))" + "description": "OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy))." }, "containerRuntimeVersion": { "type": "string", - "description": "Container runtime version reported by the node through runtime remote API (e.g. docker://1.5.0)" + "description": "ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0)." }, "kubeletVersion": { "type": "string", - "description": "Kubelet version reported by the node" + "description": "Kubelet Version reported by the node." }, "kubeProxyVersion": { "type": "string", - "description": "Kube-proxy version reported by the node" + "description": "KubeProxy Version reported by the node." + } + } + }, + "v1.ContainerImage": { + "id": "v1.ContainerImage", + "description": "Describe a container image", + "required": [ + "names" + ], + "properties": { + "names": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Names by which this image is known. e.g. [\"gcr.io/google_containers/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]" + }, + "sizeBytes": { + "type": "integer", + "format": "int64", + "description": "The size of the image in bytes." } } }, "v1.PersistentVolumeClaimList": { "id": "v1.PersistentVolumeClaimList", + "description": "PersistentVolumeClaimList is a list of PersistentVolumeClaim items.", + "required": [ + "items" + ], "properties": { "kind": { "type": "string", - "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", - "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { - "$ref": "v1.ListMeta", - "description": "standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + "$ref": "unversioned.ListMeta", + "description": "Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "items": { "type": "array", "items": { "$ref": "v1.PersistentVolumeClaim" }, - "description": "a list of persistent volume claims; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistentvolumeclaims" + "description": "A list of persistent volume claims. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims" } } }, "v1.PersistentVolumeClaim": { "id": "v1.PersistentVolumeClaim", + "description": "PersistentVolumeClaim is a user's request for and claim to a persistent volume", "properties": { "kind": { "type": "string", - "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", - "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", - "description": "standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "spec": { "$ref": "v1.PersistentVolumeClaimSpec", - "description": "the desired characteristics of a volume; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistentvolumeclaims" + "description": "Spec defines the desired characteristics of a volume requested by a pod author. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims" }, "status": { "$ref": "v1.PersistentVolumeClaimStatus", - "description": "the current status of a persistent volume claim; read-only; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistentvolumeclaims" + "description": "Status represents the current information/status of a persistent volume claim. Read-only. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims" } } }, "v1.PersistentVolumeClaimSpec": { "id": "v1.PersistentVolumeClaimSpec", + "description": "PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes", "properties": { "accessModes": { "type": "array", "items": { "$ref": "v1.PersistentVolumeAccessMode" }, - "description": "the desired access modes the volume should have; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#access-modes-1" + "description": "AccessModes contains the desired access modes the volume should have. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#access-modes-1" }, "resources": { "$ref": "v1.ResourceRequirements", - "description": "the desired resources the volume should have; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#resources" + "description": "Resources represents the minimum resources the volume should have. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#resources" }, "volumeName": { "type": "string", - "description": "the binding reference to the persistent volume backing this claim" + "description": "VolumeName is the binding reference to the PersistentVolume backing this claim." } } }, @@ -11088,204 +15885,238 @@ }, "v1.ResourceRequirements": { "id": "v1.ResourceRequirements", + "description": "ResourceRequirements describes the compute resource requirements.", "properties": { "limits": { - "type": "string", - "description": "Maximum amount of compute resources allowed; see http://releases.k8s.io/v1.0.4/docs/design/resources.md#resource-specifications" + "type": "object", + "description": "Limits describes the maximum amount of compute resources allowed. More info: http://releases.k8s.io/release-1.2/docs/design/resources.md#resource-specifications" }, "requests": { - "type": "string", - "description": "Minimum amount of resources requested; requests are honored only for persistent volumes as of now; see http://releases.k8s.io/v1.0.4/docs/design/resources.md#resource-specifications" + "type": "object", + "description": "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: http://releases.k8s.io/release-1.2/docs/design/resources.md#resource-specifications" } } }, "v1.PersistentVolumeClaimStatus": { "id": "v1.PersistentVolumeClaimStatus", + "description": "PersistentVolumeClaimStatus is the current status of a persistent volume claim.", "properties": { "phase": { "type": "string", - "description": "the current phase of the claim" + "description": "Phase represents the current phase of PersistentVolumeClaim." }, "accessModes": { "type": "array", "items": { "$ref": "v1.PersistentVolumeAccessMode" }, - "description": "the actual access modes the volume has; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#access-modes-1" + "description": "AccessModes contains the actual access modes the volume backing the PVC has. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#access-modes-1" }, "capacity": { - "type": "string", - "description": "the actual resources the volume has" + "type": "object", + "description": "Represents the actual resources of the underlying volume." } } }, "v1.PersistentVolumeList": { "id": "v1.PersistentVolumeList", + "description": "PersistentVolumeList is a list of PersistentVolume items.", + "required": [ + "items" + ], "properties": { "kind": { "type": "string", - "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", - "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { - "$ref": "v1.ListMeta", - "description": "standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + "$ref": "unversioned.ListMeta", + "description": "Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "items": { "type": "array", "items": { "$ref": "v1.PersistentVolume" }, - "description": "list of persistent volumes; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md" + "description": "List of persistent volumes. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md" } } }, "v1.PersistentVolume": { "id": "v1.PersistentVolume", + "description": "PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md", "properties": { "kind": { "type": "string", - "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", - "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", - "description": "standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "spec": { "$ref": "v1.PersistentVolumeSpec", - "description": "specification of a persistent volume as provisioned by an administrator; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistent-volumes" + "description": "Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistent-volumes" }, "status": { "$ref": "v1.PersistentVolumeStatus", - "description": "current status of a persistent volume; populated by the system, read-only; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistent-volumes" + "description": "Status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistent-volumes" } } }, "v1.PersistentVolumeSpec": { "id": "v1.PersistentVolumeSpec", + "description": "PersistentVolumeSpec is the specification of a persistent volume.", "properties": { "capacity": { - "type": "string", - "description": "a description of the persistent volume's resources and capacityr; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#capacity" + "type": "object", + "description": "A description of the persistent volume's resources and capacity. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#capacity" }, "gcePersistentDisk": { "$ref": "v1.GCEPersistentDiskVolumeSource", - "description": "GCE disk resource provisioned by an admin; see http://releases.k8s.io/v1.0.4/docs/volumes.md#gcepersistentdisk" + "description": "GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk" }, "awsElasticBlockStore": { "$ref": "v1.AWSElasticBlockStoreVolumeSource", - "description": "AWS disk resource provisioned by an admin; see http://releases.k8s.io/v1.0.4/docs/volumes.md#awselasticblockstore" + "description": "AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore" }, "hostPath": { "$ref": "v1.HostPathVolumeSource", - "description": "a HostPath provisioned by a developer or tester; for develment use only; see http://releases.k8s.io/v1.0.4/docs/volumes.md#hostpath" + "description": "HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#hostpath" }, "glusterfs": { "$ref": "v1.GlusterfsVolumeSource", - "description": "Glusterfs volume resource provisioned by an admin; see http://releases.k8s.io/v1.0.4/examples/glusterfs/README.md" + "description": "Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md" }, "nfs": { "$ref": "v1.NFSVolumeSource", - "description": "NFS volume resource provisioned by an admin; see http://releases.k8s.io/v1.0.4/docs/volumes.md#nfs" + "description": "NFS represents an NFS mount on the host. Provisioned by an admin. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs" }, "rbd": { "$ref": "v1.RBDVolumeSource", - "description": "rados block volume that will be mounted on the host machine; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md" + "description": "RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md" }, "iscsi": { "$ref": "v1.ISCSIVolumeSource", - "description": "an iSCSI disk resource provisioned by an admin" + "description": "ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin." + }, + "cinder": { + "$ref": "v1.CinderVolumeSource", + "description": "Cinder represents a cinder volume attached and mounted on kubelets host machine More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md" + }, + "cephfs": { + "$ref": "v1.CephFSVolumeSource", + "description": "CephFS represents a Ceph FS mount on the host that shares a pod's lifetime" + }, + "fc": { + "$ref": "v1.FCVolumeSource", + "description": "FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod." + }, + "flocker": { + "$ref": "v1.FlockerVolumeSource", + "description": "Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running" + }, + "flexVolume": { + "$ref": "v1.FlexVolumeSource", + "description": "FlexVolume represents a generic volume resource that is provisioned/attached using a exec based plugin. This is an alpha feature and may change in future." + }, + "azureFile": { + "$ref": "v1.AzureFileVolumeSource", + "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod." }, "accessModes": { "type": "array", "items": { "$ref": "v1.PersistentVolumeAccessMode" }, - "description": "all ways the volume can be mounted; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#access-modes" + "description": "AccessModes contains all ways the volume can be mounted. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#access-modes" }, "claimRef": { "$ref": "v1.ObjectReference", - "description": "when bound, a reference to the bound claim; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#binding" + "description": "ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#binding" }, "persistentVolumeReclaimPolicy": { "type": "string", - "description": "what happens to a volume when released from its claim; Valid options are Retain (default) and Recycle. Recyling must be supported by the volume plugin underlying this persistent volume. See http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#recycling-policy" + "description": "What happens to a persistent volume when released from its claim. Valid options are Retain (default) and Recycle. Recyling must be supported by the volume plugin underlying this persistent volume. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#recycling-policy" } } }, "v1.GCEPersistentDiskVolumeSource": { "id": "v1.GCEPersistentDiskVolumeSource", + "description": "Represents a Persistent Disk resource in Google Compute Engine.\n\nA GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.", "required": [ - "pdName", - "fsType" + "pdName" ], "properties": { "pdName": { "type": "string", - "description": "unique name of the PD resource in GCE; see http://releases.k8s.io/v1.0.4/docs/volumes.md#gcepersistentdisk" + "description": "Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk" }, "fsType": { "type": "string", - "description": "file system type to mount, such as ext4, xfs, ntfs; see http://releases.k8s.io/v1.0.4/docs/volumes.md#gcepersistentdisk" + "description": "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: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk" }, "partition": { "type": "integer", "format": "int32", - "description": "partition on the disk to mount (e.g., '1' for /dev/sda1); if omitted the plain device name (e.g., /dev/sda) will be mounted; see http://releases.k8s.io/v1.0.4/docs/volumes.md#gcepersistentdisk" + "description": "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: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk" }, "readOnly": { "type": "boolean", - "description": "read-only if true, read-write otherwise (false or unspecified); see http://releases.k8s.io/v1.0.4/docs/volumes.md#gcepersistentdisk" + "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk" } } }, "v1.AWSElasticBlockStoreVolumeSource": { "id": "v1.AWSElasticBlockStoreVolumeSource", + "description": "Represents a Persistent Disk resource in AWS.\n\nAn AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling.", "required": [ - "volumeID", - "fsType" + "volumeID" ], "properties": { "volumeID": { "type": "string", - "description": "unique id of the PD resource in AWS; see http://releases.k8s.io/v1.0.4/docs/volumes.md#awselasticblockstore" + "description": "Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore" }, "fsType": { "type": "string", - "description": "file system type to mount, such as ext4, xfs, ntfs; see http://releases.k8s.io/v1.0.4/docs/volumes.md#awselasticblockstore" + "description": "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: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore" }, "partition": { "type": "integer", "format": "int32", - "description": "partition on the disk to mount (e.g., '1' for /dev/sda1); if omitted the plain device name (e.g., /dev/sda) will be mounted; see http://releases.k8s.io/v1.0.4/docs/volumes.md#awselasticblockstore" + "description": "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)." }, "readOnly": { "type": "boolean", - "description": "read-only if true, read-write otherwise (false or unspecified); see http://releases.k8s.io/v1.0.4/docs/volumes.md#awselasticblockstore" + "description": "Specify \"true\" to force and set the ReadOnly property in VolumeMounts to \"true\". If omitted, the default is \"false\". More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore" } } }, "v1.HostPathVolumeSource": { "id": "v1.HostPathVolumeSource", + "description": "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.", "required": [ "path" ], "properties": { "path": { "type": "string", - "description": "path of the directory on the host; see http://releases.k8s.io/v1.0.4/docs/volumes.md#hostpath" + "description": "Path of the directory on the host. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#hostpath" } } }, "v1.GlusterfsVolumeSource": { "id": "v1.GlusterfsVolumeSource", + "description": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", "required": [ "endpoints", "path" @@ -11293,20 +16124,21 @@ "properties": { "endpoints": { "type": "string", - "description": "gluster hosts endpoints name; see http://releases.k8s.io/v1.0.4/examples/glusterfs/README.md#create-a-pod" + "description": "EndpointsName is the endpoint name that details Glusterfs topology. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md#create-a-pod" }, "path": { "type": "string", - "description": "path to gluster volume; see http://releases.k8s.io/v1.0.4/examples/glusterfs/README.md#create-a-pod" + "description": "Path is the Glusterfs volume path. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md#create-a-pod" }, "readOnly": { "type": "boolean", - "description": "glusterfs volume to be mounted with read-only permissions; see http://releases.k8s.io/v1.0.4/examples/glusterfs/README.md#create-a-pod" + "description": "ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md#create-a-pod" } } }, "v1.NFSVolumeSource": { "id": "v1.NFSVolumeSource", + "description": "Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.", "required": [ "server", "path" @@ -11314,20 +16146,21 @@ "properties": { "server": { "type": "string", - "description": "the hostname or IP address of the NFS server; see http://releases.k8s.io/v1.0.4/docs/volumes.md#nfs" + "description": "Server is the hostname or IP address of the NFS server. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs" }, "path": { "type": "string", - "description": "the path that is exported by the NFS server; see http://releases.k8s.io/v1.0.4/docs/volumes.md#nfs" + "description": "Path that is exported by the NFS server. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs" }, "readOnly": { "type": "boolean", - "description": "forces the NFS export to be mounted with read-only permissions; see http://releases.k8s.io/v1.0.4/docs/volumes.md#nfs" + "description": "ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs" } } }, "v1.RBDVolumeSource": { "id": "v1.RBDVolumeSource", + "description": "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.", "required": [ "monitors", "image", @@ -11342,150 +16175,310 @@ "items": { "type": "string" }, - "description": "a collection of Ceph monitors; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it" + "description": "A collection of Ceph monitors. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it" }, "image": { "type": "string", - "description": "rados image name; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it" + "description": "The rados image name. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it" }, "fsType": { "type": "string", - "description": "file system type to mount, such as ext4, xfs, ntfs; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it" + "description": "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: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#rbd" }, "pool": { "type": "string", - "description": "rados pool name; default is rbd; optional; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it" + "description": "The rados pool name. Default is rbd. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it." }, "user": { "type": "string", - "description": "rados user name; default is admin; optional; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it" + "description": "The rados user name. Default is admin. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it" }, "keyring": { "type": "string", - "description": "keyring is the path to key ring for rados user; default is /etc/ceph/keyring; optional; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it" + "description": "Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it" }, "secretRef": { "$ref": "v1.LocalObjectReference", - "description": "name of a secret to authenticate the RBD user; if provided overrides keyring; optional; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it" + "description": "SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is empty. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it" }, "readOnly": { "type": "boolean", - "description": "rbd volume to be mounted with read-only permissions; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it" + "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it" } } }, "v1.LocalObjectReference": { "id": "v1.LocalObjectReference", + "description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", "properties": { "name": { "type": "string", - "description": "name of the referent; see http://releases.k8s.io/v1.0.4/docs/identifiers.md#names" + "description": "Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names" } } }, "v1.ISCSIVolumeSource": { "id": "v1.ISCSIVolumeSource", + "description": "Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", "required": [ "targetPortal", "iqn", - "lun", - "fsType" + "lun" ], "properties": { "targetPortal": { "type": "string", - "description": "iSCSI target portal" + "description": "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)." }, "iqn": { "type": "string", - "description": "iSCSI Qualified Name" + "description": "Target iSCSI Qualified Name." }, "lun": { "type": "integer", "format": "int32", - "description": "iscsi target lun number" + "description": "iSCSI target lun number." + }, + "iscsiInterface": { + "type": "string", + "description": "Optional: Defaults to 'default' (tcp). iSCSI interface name that uses an iSCSI transport." }, "fsType": { "type": "string", - "description": "file system type to mount, such as ext4, xfs, ntfs" + "description": "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: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#iscsi" }, "readOnly": { "type": "boolean", - "description": "read-only if true, read-write otherwise (false or unspecified)" + "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false." + } + } + }, + "v1.CinderVolumeSource": { + "id": "v1.CinderVolumeSource", + "description": "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.", + "required": [ + "volumeID" + ], + "properties": { + "volumeID": { + "type": "string", + "description": "volume id used to identify the volume in cinder More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md" + }, + "fsType": { + "type": "string", + "description": "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: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md" + }, + "readOnly": { + "type": "boolean", + "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md" + } + } + }, + "v1.CephFSVolumeSource": { + "id": "v1.CephFSVolumeSource", + "description": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", + "required": [ + "monitors" + ], + "properties": { + "monitors": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Required: Monitors is a collection of Ceph monitors More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it" + }, + "path": { + "type": "string", + "description": "Optional: Used as the mounted root, rather than the full Ceph tree, default is /" + }, + "user": { + "type": "string", + "description": "Optional: User is the rados user name, default is admin More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it" + }, + "secretFile": { + "type": "string", + "description": "Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it" + }, + "secretRef": { + "$ref": "v1.LocalObjectReference", + "description": "Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it" + }, + "readOnly": { + "type": "boolean", + "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it" + } + } + }, + "v1.FCVolumeSource": { + "id": "v1.FCVolumeSource", + "description": "Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling.", + "required": [ + "targetWWNs", + "lun" + ], + "properties": { + "targetWWNs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Required: FC target world wide names (WWNs)" + }, + "lun": { + "type": "integer", + "format": "int32", + "description": "Required: FC target lun number" + }, + "fsType": { + "type": "string", + "description": "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." + }, + "readOnly": { + "type": "boolean", + "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts." + } + } + }, + "v1.FlockerVolumeSource": { + "id": "v1.FlockerVolumeSource", + "description": "Represents a Flocker volume mounted by the Flocker agent. Flocker volumes do not support ownership management or SELinux relabeling.", + "required": [ + "datasetName" + ], + "properties": { + "datasetName": { + "type": "string", + "description": "Required: the volume name. This is going to be store on metadata -\u003e name on the payload for Flocker" + } + } + }, + "v1.FlexVolumeSource": { + "id": "v1.FlexVolumeSource", + "description": "FlexVolume represents a generic volume resource that is provisioned/attached using a exec based plugin. This is an alpha feature and may change in future.", + "required": [ + "driver" + ], + "properties": { + "driver": { + "type": "string", + "description": "Driver is the name of the driver to use for this volume." + }, + "fsType": { + "type": "string", + "description": "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." + }, + "secretRef": { + "$ref": "v1.LocalObjectReference", + "description": "Optional: SecretRef is reference to the authentication secret for User, default is empty." + }, + "readOnly": { + "type": "boolean", + "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts." + }, + "options": { + "type": "object", + "description": "Optional: Extra command options if any." + } + } + }, + "v1.AzureFileVolumeSource": { + "id": "v1.AzureFileVolumeSource", + "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", + "required": [ + "secretName", + "shareName" + ], + "properties": { + "secretName": { + "type": "string", + "description": "the name of secret that contains Azure Storage Account Name and Key" + }, + "shareName": { + "type": "string", + "description": "Share Name" + }, + "readOnly": { + "type": "boolean", + "description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts." } } }, "v1.PersistentVolumeStatus": { "id": "v1.PersistentVolumeStatus", + "description": "PersistentVolumeStatus is the current status of a persistent volume.", "properties": { "phase": { "type": "string", - "description": "the current phase of a persistent volume; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#phase" + "description": "Phase indicates if a volume is available, bound to a claim, or released by a claim. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#phase" }, "message": { "type": "string", - "description": "human-readable message indicating details about why the volume is in this state" + "description": "A human-readable message indicating details about why the volume is in this state." }, "reason": { "type": "string", - "description": "(brief) reason the volume is not is not available" + "description": "Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI." } } }, "v1.PodList": { "id": "v1.PodList", + "description": "PodList is a list of Pods.", "required": [ "items" ], "properties": { "kind": { "type": "string", - "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", - "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { - "$ref": "v1.ListMeta", - "description": "standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + "$ref": "unversioned.ListMeta", + "description": "Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "items": { "type": "array", "items": { "$ref": "v1.Pod" }, - "description": "list of pods; see http://releases.k8s.io/v1.0.4/docs/pods.md" + "description": "List of pods. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pods.md" } } }, "v1.Pod": { "id": "v1.Pod", + "description": "Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts.", "properties": { "kind": { "type": "string", - "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", - "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", - "description": "standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "spec": { "$ref": "v1.PodSpec", - "description": "specification of the desired behavior of the pod; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status" + "description": "Specification of the desired behavior of the pod. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" }, "status": { "$ref": "v1.PodStatus", - "description": "most recently observed status of the pod; populated by the system, read-only; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status" + "description": "Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" } } }, "v1.PodSpec": { "id": "v1.PodSpec", + "description": "PodSpec is a description of a pod.", "required": [ "containers" ], @@ -11495,334 +16488,507 @@ "items": { "$ref": "v1.Volume" }, - "description": "list of volumes that can be mounted by containers belonging to the pod; see http://releases.k8s.io/v1.0.4/docs/volumes.md" + "description": "List of volumes that can be mounted by containers belonging to the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md" }, "containers": { "type": "array", "items": { "$ref": "v1.Container" }, - "description": "list of containers belonging to the pod; cannot be updated; containers cannot currently be added or removed; there must be at least one container in a Pod; see http://releases.k8s.io/v1.0.4/docs/containers.md" + "description": "List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/containers.md" }, "restartPolicy": { "type": "string", - "description": "restart policy for all containers within the pod; one of Always, OnFailure, Never; defaults to Always; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#restartpolicy" + "description": "Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#restartpolicy" }, "terminationGracePeriodSeconds": { "type": "integer", "format": "int64", - "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; if this value is not set, 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" + "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. 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." }, "activeDeadlineSeconds": { "type": "integer", - "format": "int64" + "format": "int64", + "description": "Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer." }, "dnsPolicy": { "type": "string", - "description": "DNS policy for containers within the pod; one of 'ClusterFirst' or 'Default'" + "description": "Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. Defaults to \"ClusterFirst\"." }, "nodeSelector": { - "type": "string", - "description": "selector which must match a node's labels for the pod to be scheduled on that node; see http://releases.k8s.io/v1.0.4/examples/node-selection/README.md" + "type": "object", + "description": "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: http://releases.k8s.io/release-1.2/docs/user-guide/node-selection/README.md" }, "serviceAccountName": { "type": "string", - "description": "name of the ServiceAccount to use to run this pod; see http://releases.k8s.io/v1.0.4/docs/service_accounts.md" + "description": "ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: http://releases.k8s.io/release-1.2/docs/design/service_accounts.md" }, "serviceAccount": { "type": "string", - "description": "deprecated; use serviceAccountName instead" + "description": "DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead." }, "nodeName": { "type": "string", - "description": "node requested for this pod" + "description": "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." }, "hostNetwork": { "type": "boolean", - "description": "host networking requested for this pod" + "description": "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." + }, + "hostPID": { + "type": "boolean", + "description": "Use the host's pid namespace. Optional: Default to false." + }, + "hostIPC": { + "type": "boolean", + "description": "Use the host's ipc namespace. Optional: Default to false." + }, + "securityContext": { + "$ref": "v1.PodSecurityContext", + "description": "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field." }, "imagePullSecrets": { "type": "array", "items": { "$ref": "v1.LocalObjectReference" }, - "description": "list of references to secrets in the same namespace available for pulling the container images; see http://releases.k8s.io/v1.0.4/docs/images.md#specifying-imagepullsecrets-on-a-pod" + "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. More info: http://releases.k8s.io/release-1.2/docs/user-guide/images.md#specifying-imagepullsecrets-on-a-pod" } } }, "v1.Volume": { "id": "v1.Volume", + "description": "Volume represents a named volume in a pod that may be accessed by any container in the pod.", "required": [ "name" ], "properties": { "name": { "type": "string", - "description": "volume name; must be a DNS_LABEL and unique within the pod; see http://releases.k8s.io/v1.0.4/docs/identifiers.md#names" + "description": "Volume's name. Must be a DNS_LABEL and unique within the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names" }, "hostPath": { "$ref": "v1.HostPathVolumeSource", - "description": "pre-existing host file or directory; generally for privileged system daemons or other agents tied to the host; see http://releases.k8s.io/v1.0.4/docs/volumes.md#hostpath" + "description": "HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#hostpath" }, "emptyDir": { "$ref": "v1.EmptyDirVolumeSource", - "description": "temporary directory that shares a pod's lifetime; see http://releases.k8s.io/v1.0.4/docs/volumes.md#emptydir" + "description": "EmptyDir represents a temporary directory that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#emptydir" }, "gcePersistentDisk": { "$ref": "v1.GCEPersistentDiskVolumeSource", - "description": "GCE disk resource attached to the host machine on demand; see http://releases.k8s.io/v1.0.4/docs/volumes.md#gcepersistentdisk" + "description": "GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk" }, "awsElasticBlockStore": { "$ref": "v1.AWSElasticBlockStoreVolumeSource", - "description": "AWS disk resource attached to the host machine on demand; see http://releases.k8s.io/v1.0.4/docs/volumes.md#awselasticblockstore" + "description": "AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore" }, "gitRepo": { "$ref": "v1.GitRepoVolumeSource", - "description": "git repository at a particular revision" + "description": "GitRepo represents a git repository at a particular revision." }, "secret": { "$ref": "v1.SecretVolumeSource", - "description": "secret to populate volume; see http://releases.k8s.io/v1.0.4/docs/volumes.md#secrets" + "description": "Secret represents a secret that should populate this volume. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#secrets" }, "nfs": { "$ref": "v1.NFSVolumeSource", - "description": "NFS volume that will be mounted in the host machine; see http://releases.k8s.io/v1.0.4/docs/volumes.md#nfs" + "description": "NFS represents an NFS mount on the host that shares a pod's lifetime More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs" }, "iscsi": { "$ref": "v1.ISCSIVolumeSource", - "description": "iSCSI disk attached to host machine on demand; see http://releases.k8s.io/v1.0.4/examples/iscsi/README.md" + "description": "ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/release-1.2/examples/iscsi/README.md" }, "glusterfs": { "$ref": "v1.GlusterfsVolumeSource", - "description": "Glusterfs volume that will be mounted on the host machine; see http://releases.k8s.io/v1.0.4/examples/glusterfs/README.md" + "description": "Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md" }, "persistentVolumeClaim": { "$ref": "v1.PersistentVolumeClaimVolumeSource", - "description": "a reference to a PersistentVolumeClaim in the same namespace; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistentvolumeclaims" + "description": "PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims" }, "rbd": { "$ref": "v1.RBDVolumeSource", - "description": "rados block volume that will be mounted on the host machine; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md" + "description": "RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md" + }, + "flexVolume": { + "$ref": "v1.FlexVolumeSource", + "description": "FlexVolume represents a generic volume resource that is provisioned/attached using a exec based plugin. This is an alpha feature and may change in future." + }, + "cinder": { + "$ref": "v1.CinderVolumeSource", + "description": "Cinder represents a cinder volume attached and mounted on kubelets host machine More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md" + }, + "cephfs": { + "$ref": "v1.CephFSVolumeSource", + "description": "CephFS represents a Ceph FS mount on the host that shares a pod's lifetime" + }, + "flocker": { + "$ref": "v1.FlockerVolumeSource", + "description": "Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running" + }, + "downwardAPI": { + "$ref": "v1.DownwardAPIVolumeSource", + "description": "DownwardAPI represents downward API about the pod that should populate this volume" + }, + "fc": { + "$ref": "v1.FCVolumeSource", + "description": "FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod." + }, + "azureFile": { + "$ref": "v1.AzureFileVolumeSource", + "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod." + }, + "configMap": { + "$ref": "v1.ConfigMapVolumeSource", + "description": "ConfigMap represents a configMap that should populate this volume" } } }, "v1.EmptyDirVolumeSource": { "id": "v1.EmptyDirVolumeSource", + "description": "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.", "properties": { "medium": { "type": "string", - "description": "type of storage used to back the volume; must be an empty string (default) or Memory; see http://releases.k8s.io/v1.0.4/docs/volumes.md#emptydir" + "description": "What type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#emptydir" } } }, "v1.GitRepoVolumeSource": { "id": "v1.GitRepoVolumeSource", + "description": "Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling.", "required": [ - "repository", - "revision" + "repository" ], "properties": { "repository": { "type": "string", - "description": "repository URL" + "description": "Repository URL" }, "revision": { "type": "string", - "description": "commit hash for the specified revision" + "description": "Commit hash for the specified revision." + }, + "directory": { + "type": "string", + "description": "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." } } }, "v1.SecretVolumeSource": { "id": "v1.SecretVolumeSource", - "required": [ - "secretName" - ], + "description": "Adapts a Secret into a volume.\n\nThe contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.", "properties": { "secretName": { "type": "string", - "description": "secretName is the name of a secret in the pod's namespace; see http://releases.k8s.io/v1.0.4/docs/volumes.md#secrets" + "description": "Name of the secret in the pod's namespace to use. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#secrets" } } }, "v1.PersistentVolumeClaimVolumeSource": { "id": "v1.PersistentVolumeClaimVolumeSource", + "description": "PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).", "required": [ "claimName" ], "properties": { "claimName": { "type": "string", - "description": "the name of the claim in the same namespace to be mounted as a volume; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistentvolumeclaims" + "description": "ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims" }, "readOnly": { "type": "boolean", - "description": "mount volume as read-only when true; default false" + "description": "Will force the ReadOnly setting in VolumeMounts. Default false." } } }, - "v1.Container": { - "id": "v1.Container", - "required": [ - "name" - ], + "v1.DownwardAPIVolumeSource": { + "id": "v1.DownwardAPIVolumeSource", + "description": "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.", "properties": { - "name": { - "type": "string", - "description": "name of the container; must be a DNS_LABEL and unique within the pod; cannot be updated" - }, - "image": { - "type": "string", - "description": "Docker image name; see http://releases.k8s.io/v1.0.4/docs/images.md" - }, - "command": { + "items": { "type": "array", "items": { - "type": "string" + "$ref": "v1.DownwardAPIVolumeFile" }, - "description": "entrypoint array; not executed within a shell; the docker image's entrypoint is used if this is not provided; cannot be updated; variable references $(VAR_NAME) are expanded using the container's 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; see http://releases.k8s.io/v1.0.4/docs/containers.md#containers-and-commands" - }, - "args": { - "type": "array", - "items": { - "type": "string" - }, - "description": "command array; the docker image's cmd is used if this is not provided; arguments to the entrypoint; cannot be updated; variable references $(VAR_NAME) are expanded using the container's 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; see http://releases.k8s.io/v1.0.4/docs/containers.md#containers-and-commands" - }, - "workingDir": { - "type": "string", - "description": "container's working directory; defaults to image's default; cannot be updated" - }, - "ports": { - "type": "array", - "items": { - "$ref": "v1.ContainerPort" - }, - "description": "list of ports to expose from the container; cannot be updated" - }, - "env": { - "type": "array", - "items": { - "$ref": "v1.EnvVar" - }, - "description": "list of environment variables to set in the container; cannot be updated" - }, - "resources": { - "$ref": "v1.ResourceRequirements", - "description": "Compute Resources required by this container; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/compute_resources.md" - }, - "volumeMounts": { - "type": "array", - "items": { - "$ref": "v1.VolumeMount" - }, - "description": "pod volumes to mount into the container's filesyste; cannot be updated" - }, - "livenessProbe": { - "$ref": "v1.Probe", - "description": "periodic probe of container liveness; container will be restarted if the probe fails; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#container-probes" - }, - "readinessProbe": { - "$ref": "v1.Probe", - "description": "periodic probe of container service readiness; container will be removed from service endpoints if the probe fails; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#container-probes" - }, - "lifecycle": { - "$ref": "v1.Lifecycle", - "description": "actions that the management system should take in response to container lifecycle events; cannot be updated" - }, - "terminationMessagePath": { - "type": "string", - "description": "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; defaults to /dev/termination-log; cannot be updated" - }, - "imagePullPolicy": { - "type": "string", - "description": "image pull policy; one of Always, Never, IfNotPresent; defaults to Always if :latest tag is specified, or IfNotPresent otherwise; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/images.md#updating-images" - }, - "securityContext": { - "$ref": "v1.SecurityContext", - "description": "security options the pod should run with; see http://releases.k8s.io/v1.0.4/docs/security_context.md" + "description": "Items is a list of downward API volume file" } } }, - "v1.ContainerPort": { - "id": "v1.ContainerPort", - "required": [ - "containerPort" - ], - "properties": { - "name": { - "type": "string", - "description": "name for the port that can be referred to by services; must be an IANA_SVC_NAME and unique within the pod" - }, - "hostPort": { - "type": "integer", - "format": "int32", - "description": "number of port to expose on the host; most containers do not need this" - }, - "containerPort": { - "type": "integer", - "format": "int32", - "description": "number of port to expose on the pod's IP address" - }, - "protocol": { - "type": "string", - "description": "protocol for port; must be UDP or TCP; TCP if unspecified" - }, - "hostIP": { - "type": "string", - "description": "host IP to bind the port to" - } - } - }, - "v1.EnvVar": { - "id": "v1.EnvVar", - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string", - "description": "name of the environment variable; must be a C_IDENTIFIER" - }, - "value": { - "type": "string", - "description": "value of the environment variable; defaults to empty string; variable references $(VAR_NAME) are expanded using the previously defined environment varibles 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" - }, - "valueFrom": { - "$ref": "v1.EnvVarSource", - "description": "source for the environment variable's value; cannot be used if value is not empty" - } - } - }, - "v1.EnvVarSource": { - "id": "v1.EnvVarSource", + "v1.DownwardAPIVolumeFile": { + "id": "v1.DownwardAPIVolumeFile", + "description": "DownwardAPIVolumeFile represents information to create the file containing the pod field", "required": [ + "path", "fieldRef" ], "properties": { + "path": { + "type": "string", + "description": "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'" + }, "fieldRef": { "$ref": "v1.ObjectFieldSelector", - "description": "selects a field of the pod; only name and namespace are supported" + "description": "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported." } } }, "v1.ObjectFieldSelector": { "id": "v1.ObjectFieldSelector", + "description": "ObjectFieldSelector selects an APIVersioned field of an object.", "required": [ "fieldPath" ], "properties": { "apiVersion": { "type": "string", - "description": "version of the schema that fieldPath is written in terms of; defaults to v1" + "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\"." }, "fieldPath": { "type": "string", - "description": "path of the field to select in the specified API version" + "description": "Path of the field to select in the specified API version." + } + } + }, + "v1.ConfigMapVolumeSource": { + "id": "v1.ConfigMapVolumeSource", + "description": "Adapts a ConfigMap into a volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling.", + "properties": { + "name": { + "type": "string", + "description": "Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names" + }, + "items": { + "type": "array", + "items": { + "$ref": "v1.KeyToPath" + }, + "description": "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. Paths must be relative and may not contain the '..' path or start with '..'." + } + } + }, + "v1.KeyToPath": { + "id": "v1.KeyToPath", + "description": "Maps a string key to a path within a volume.", + "required": [ + "key", + "path" + ], + "properties": { + "key": { + "type": "string", + "description": "The key to project." + }, + "path": { + "type": "string", + "description": "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 '..'." + } + } + }, + "v1.Container": { + "id": "v1.Container", + "description": "A single application container that you want to run within a pod.", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated." + }, + "image": { + "type": "string", + "description": "Docker image name. More info: http://releases.k8s.io/release-1.2/docs/user-guide/images.md" + }, + "command": { + "type": "array", + "items": { + "type": "string" + }, + "description": "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: http://releases.k8s.io/release-1.2/docs/user-guide/containers.md#containers-and-commands" + }, + "args": { + "type": "array", + "items": { + "type": "string" + }, + "description": "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: http://releases.k8s.io/release-1.2/docs/user-guide/containers.md#containers-and-commands" + }, + "workingDir": { + "type": "string", + "description": "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." + }, + "ports": { + "type": "array", + "items": { + "$ref": "v1.ContainerPort" + }, + "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 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." + }, + "env": { + "type": "array", + "items": { + "$ref": "v1.EnvVar" + }, + "description": "List of environment variables to set in the container. Cannot be updated." + }, + "resources": { + "$ref": "v1.ResourceRequirements", + "description": "Compute Resources required by this container. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#resources" + }, + "volumeMounts": { + "type": "array", + "items": { + "$ref": "v1.VolumeMount" + }, + "description": "Pod volumes to mount into the container's filesyste. Cannot be updated." + }, + "livenessProbe": { + "$ref": "v1.Probe", + "description": "Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes" + }, + "readinessProbe": { + "$ref": "v1.Probe", + "description": "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes" + }, + "lifecycle": { + "$ref": "v1.Lifecycle", + "description": "Actions that the management system should take in response to container lifecycle events. Cannot be updated." + }, + "terminationMessagePath": { + "type": "string", + "description": "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. Defaults to /dev/termination-log. Cannot be updated." + }, + "imagePullPolicy": { + "type": "string", + "description": "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/images.md#updating-images" + }, + "securityContext": { + "$ref": "v1.SecurityContext", + "description": "Security options the pod should run with. More info: http://releases.k8s.io/release-1.2/docs/design/security_context.md" + }, + "stdin": { + "type": "boolean", + "description": "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." + }, + "stdinOnce": { + "type": "boolean", + "description": "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" + }, + "tty": { + "type": "boolean", + "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false." + } + } + }, + "v1.ContainerPort": { + "id": "v1.ContainerPort", + "description": "ContainerPort represents a network port in a single container.", + "required": [ + "containerPort" + ], + "properties": { + "name": { + "type": "string", + "description": "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services." + }, + "hostPort": { + "type": "integer", + "format": "int32", + "description": "Number of port to expose on the host. If specified, this must be a valid port number, 0 \u003c x \u003c 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this." + }, + "containerPort": { + "type": "integer", + "format": "int32", + "description": "Number of port to expose on the pod's IP address. This must be a valid port number, 0 \u003c x \u003c 65536." + }, + "protocol": { + "type": "string", + "description": "Protocol for port. Must be UDP or TCP. Defaults to \"TCP\"." + }, + "hostIP": { + "type": "string", + "description": "What host IP to bind the external port to." + } + } + }, + "v1.EnvVar": { + "id": "v1.EnvVar", + "description": "EnvVar represents an environment variable present in a Container.", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the environment variable. Must be a C_IDENTIFIER." + }, + "value": { + "type": "string", + "description": "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 \"\"." + }, + "valueFrom": { + "$ref": "v1.EnvVarSource", + "description": "Source for the environment variable's value. Cannot be used if value is not empty." + } + } + }, + "v1.EnvVarSource": { + "id": "v1.EnvVarSource", + "description": "EnvVarSource represents a source for the value of an EnvVar.", + "properties": { + "fieldRef": { + "$ref": "v1.ObjectFieldSelector", + "description": "Selects a field of the pod; only name and namespace are supported." + }, + "configMapKeyRef": { + "$ref": "v1.ConfigMapKeySelector", + "description": "Selects a key of a ConfigMap." + }, + "secretKeyRef": { + "$ref": "v1.SecretKeySelector", + "description": "Selects a key of a secret in the pod's namespace" + } + } + }, + "v1.ConfigMapKeySelector": { + "id": "v1.ConfigMapKeySelector", + "description": "Selects a key from a ConfigMap.", + "required": [ + "key" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names" + }, + "key": { + "type": "string", + "description": "The key to select." + } + } + }, + "v1.SecretKeySelector": { + "id": "v1.SecretKeySelector", + "description": "SecretKeySelector selects a key of a Secret.", + "required": [ + "key" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names" + }, + "key": { + "type": "string", + "description": "The key of the secret to select from. Must be a valid secret key." } } }, "v1.VolumeMount": { "id": "v1.VolumeMount", + "description": "VolumeMount describes a mounting of a Volume within a container.", "required": [ "name", "mountPath" @@ -11830,161 +16996,217 @@ "properties": { "name": { "type": "string", - "description": "name of the volume to mount" + "description": "This must match the Name of a Volume." }, "readOnly": { "type": "boolean", - "description": "mounted read-only if true, read-write otherwise (false or unspecified)" + "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false." }, "mountPath": { "type": "string", - "description": "path within the container at which the volume should be mounted" + "description": "Path within the container at which the volume should be mounted. Must not contain ':'." } } }, "v1.Probe": { "id": "v1.Probe", + "description": "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.", "properties": { "exec": { "$ref": "v1.ExecAction", - "description": "exec-based handler" + "description": "One and only one of the following should be specified. Exec specifies the action to take." }, "httpGet": { "$ref": "v1.HTTPGetAction", - "description": "HTTP-based handler" + "description": "HTTPGet specifies the http request to perform." }, "tcpSocket": { "$ref": "v1.TCPSocketAction", - "description": "TCP-based handler; TCP hooks not yet supported" + "description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported" }, "initialDelaySeconds": { "type": "integer", - "format": "int64", - "description": "number of seconds after the container has started before liveness probes are initiated; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#container-probes" + "format": "int32", + "description": "Number of seconds after the container has started before liveness probes are initiated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes" }, "timeoutSeconds": { "type": "integer", - "format": "int64", - "description": "number of seconds after which liveness probes timeout; defaults to 1 second; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#container-probes" + "format": "int32", + "description": "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes" + }, + "periodSeconds": { + "type": "integer", + "format": "int32", + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1." + }, + "successThreshold": { + "type": "integer", + "format": "int32", + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1." + }, + "failureThreshold": { + "type": "integer", + "format": "int32", + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1." } } }, "v1.ExecAction": { "id": "v1.ExecAction", + "description": "ExecAction describes a \"run in container\" action.", "properties": { "command": { "type": "array", "items": { "type": "string" }, - "description": "command line to execute inside the container; working directory for the command is root ('/') in the container's file system; the command is exec'd, not run inside a shell; exit status of 0 is treated as live/healthy and non-zero is unhealthy" + "description": "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy." } } }, "v1.HTTPGetAction": { "id": "v1.HTTPGetAction", + "description": "HTTPGetAction describes an action based on HTTP Get requests.", "required": [ "port" ], "properties": { "path": { "type": "string", - "description": "path to access on the HTTP server" + "description": "Path to access on the HTTP server." }, "port": { "type": "string", - "description": "number or name of the port to access on the container; number must be in the range 1 to 65535; name must be an IANA_SVC_NAME" + "description": "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME." }, "host": { "type": "string", - "description": "hostname to connect to; defaults to pod IP" + "description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead." }, "scheme": { "type": "string", - "description": "scheme to connect with, must be HTTP or HTTPS, defaults to HTTP" + "description": "Scheme to use for connecting to the host. Defaults to HTTP." + }, + "httpHeaders": { + "type": "array", + "items": { + "$ref": "v1.HTTPHeader" + }, + "description": "Custom headers to set in the request. HTTP allows repeated headers." + } + } + }, + "v1.HTTPHeader": { + "id": "v1.HTTPHeader", + "description": "HTTPHeader describes a custom header to be used in HTTP probes", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string", + "description": "The header field name" + }, + "value": { + "type": "string", + "description": "The header field value" } } }, "v1.TCPSocketAction": { "id": "v1.TCPSocketAction", + "description": "TCPSocketAction describes an action based on opening a socket", "required": [ "port" ], "properties": { "port": { "type": "string", - "description": "number of name of the port to access on the container; number must be in the range 1 to 65535; name must be an IANA_SVC_NAME" + "description": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME." } } }, "v1.Lifecycle": { "id": "v1.Lifecycle", + "description": "Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.", "properties": { "postStart": { "$ref": "v1.Handler", - "description": "called immediately after a container is started; if the handler fails, the container is terminated and restarted according to its restart policy; other management of the container blocks until the hook completes; see http://releases.k8s.io/v1.0.4/docs/container-environment.md#hook-details" + "description": "PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: http://releases.k8s.io/release-1.2/docs/user-guide/container-environment.md#hook-details" }, "preStop": { "$ref": "v1.Handler", - "description": "called before a container is terminated; the container is terminated after the handler completes; other management of the container blocks until the hook completes; see http://releases.k8s.io/v1.0.4/docs/container-environment.md#hook-details" + "description": "PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. Other management of the container blocks until the hook completes. More info: http://releases.k8s.io/release-1.2/docs/user-guide/container-environment.md#hook-details" } } }, "v1.Handler": { "id": "v1.Handler", + "description": "Handler defines a specific action that should be taken", "properties": { "exec": { "$ref": "v1.ExecAction", - "description": "exec-based handler" + "description": "One and only one of the following should be specified. Exec specifies the action to take." }, "httpGet": { "$ref": "v1.HTTPGetAction", - "description": "HTTP-based handler" + "description": "HTTPGet specifies the http request to perform." }, "tcpSocket": { "$ref": "v1.TCPSocketAction", - "description": "TCP-based handler; TCP hooks not yet supported" + "description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported" } } }, "v1.SecurityContext": { "id": "v1.SecurityContext", + "description": "SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.", "properties": { "capabilities": { "$ref": "v1.Capabilities", - "description": "the linux capabilites that should be added or removed; see http://releases.k8s.io/v1.0.4/docs/design/security_context.md#security-context" + "description": "The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime." }, "privileged": { "type": "boolean", - "description": "run the container in privileged mode; see http://releases.k8s.io/v1.0.4/docs/design/security_context.md#security-context" + "description": "Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false." }, "seLinuxOptions": { "$ref": "v1.SELinuxOptions", - "description": "options that control the SELinux labels applied; see http://releases.k8s.io/v1.0.4/docs/design/security_context.md#security-context" + "description": "The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence." }, "runAsUser": { "type": "integer", "format": "int64", - "description": "the user id that runs the first process in the container; see http://releases.k8s.io/v1.0.4/docs/design/security_context.md#security-context" + "description": "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." + }, + "runAsNonRoot": { + "type": "boolean", + "description": "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." + }, + "readOnlyRootFilesystem": { + "type": "boolean", + "description": "Whether this container has a read-only root filesystem. Default is false." } } }, "v1.Capabilities": { "id": "v1.Capabilities", + "description": "Adds and removes POSIX capabilities from running containers.", "properties": { "add": { "type": "array", "items": { "$ref": "v1.Capability" }, - "description": "added capabilities" + "description": "Added capabilities" }, "drop": { "type": "array", "items": { "$ref": "v1.Capability" }, - "description": "droped capabilities" + "description": "Removed capabilities" } } }, @@ -11994,70 +17216,108 @@ }, "v1.SELinuxOptions": { "id": "v1.SELinuxOptions", + "description": "SELinuxOptions are the labels to be applied to the container", "properties": { "user": { "type": "string", - "description": "the user label to apply to the container; see http://releases.k8s.io/v1.0.4/docs/labels.md" + "description": "User is a SELinux user label that applies to the container." }, "role": { "type": "string", - "description": "the role label to apply to the container; see http://releases.k8s.io/v1.0.4/docs/labels.md" + "description": "Role is a SELinux role label that applies to the container." }, "type": { "type": "string", - "description": "the type label to apply to the container; see http://releases.k8s.io/v1.0.4/docs/labels.md" + "description": "Type is a SELinux type label that applies to the container." }, "level": { "type": "string", - "description": "the level label to apply to the container; see http://releases.k8s.io/v1.0.4/docs/labels.md" + "description": "Level is SELinux level label that applies to the container." } } }, + "v1.PodSecurityContext": { + "id": "v1.PodSecurityContext", + "description": "PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.", + "properties": { + "seLinuxOptions": { + "$ref": "v1.SELinuxOptions", + "description": "The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container." + }, + "runAsUser": { + "type": "integer", + "format": "int64", + "description": "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." + }, + "runAsNonRoot": { + "type": "boolean", + "description": "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." + }, + "supplementalGroups": { + "type": "array", + "items": { + "$ref": "integer" + }, + "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." + }, + "fsGroup": { + "type": "integer", + "format": "int64", + "description": "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:\n\n1. 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 " + } + } + }, + "integer": { + "id": "integer", + "properties": {} + }, "v1.PodStatus": { "id": "v1.PodStatus", + "description": "PodStatus represents information about the status of a pod. Status may trail the actual state of a system.", "properties": { "phase": { "type": "string", - "description": "current condition of the pod; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#pod-phase" + "description": "Current condition of the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#pod-phase" }, "conditions": { "type": "array", "items": { "$ref": "v1.PodCondition" }, - "description": "current service state of pod; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#pod-conditions" + "description": "Current service state of pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#pod-conditions" }, "message": { "type": "string", - "description": "human readable message indicating details about why the pod is in this condition" + "description": "A human readable message indicating details about why the pod is in this condition." }, "reason": { "type": "string", - "description": "(brief-CamelCase) reason indicating details about why the pod is in this condition" + "description": "A brief CamelCase message indicating details about why the pod is in this state. e.g. 'OutOfDisk'" }, "hostIP": { "type": "string", - "description": "IP address of the host to which the pod is assigned; empty if not yet scheduled" + "description": "IP address of the host to which the pod is assigned. Empty if not yet scheduled." }, "podIP": { "type": "string", - "description": "IP address allocated to the pod; routable at least within the cluster; empty if not yet allocated" + "description": "IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated." }, "startTime": { "type": "string", - "description": "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." + "description": "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." }, "containerStatuses": { "type": "array", "items": { "$ref": "v1.ContainerStatus" }, - "description": "list of container statuses; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#container-statuses" + "description": "The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-statuses" } } }, "v1.PodCondition": { "id": "v1.PodCondition", + "description": "PodCondition contains details for the current condition of this pod.", "required": [ "type", "status" @@ -12065,16 +17325,33 @@ "properties": { "type": { "type": "string", - "description": "kind of the condition, currently only Ready; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#pod-conditions" + "description": "Type is the type of the condition. Currently only Ready. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#pod-conditions" }, "status": { "type": "string", - "description": "status of the condition, one of True, False, Unknown; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#pod-conditions" + "description": "Status is the status of the condition. Can be True, False, Unknown. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#pod-conditions" + }, + "lastProbeTime": { + "type": "string", + "description": "Last time we probed the condition." + }, + "lastTransitionTime": { + "type": "string", + "description": "Last time the condition transitioned from one status to another." + }, + "reason": { + "type": "string", + "description": "Unique, one-word, CamelCase reason for the condition's last transition." + }, + "message": { + "type": "string", + "description": "Human-readable message indicating details about last transition." } } }, "v1.ContainerStatus": { "id": "v1.ContainerStatus", + "description": "ContainerStatus contains details for the current status of this container.", "required": [ "name", "ready", @@ -12085,76 +17362,84 @@ "properties": { "name": { "type": "string", - "description": "name of the container; must be a DNS_LABEL and unique within the pod; cannot be updated" + "description": "This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated." }, "state": { "$ref": "v1.ContainerState", - "description": "details about the container's current condition" + "description": "Details about the container's current condition." }, "lastState": { "$ref": "v1.ContainerState", - "description": "details about the container's last termination condition" + "description": "Details about the container's last termination condition." }, "ready": { "type": "boolean", - "description": "specifies whether the container has passed its readiness probe" + "description": "Specifies whether the container has passed its readiness probe." }, "restartCount": { "type": "integer", "format": "int32", - "description": "the number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed" + "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." }, "image": { "type": "string", - "description": "image of the container; see http://releases.k8s.io/v1.0.4/docs/images.md" + "description": "The image the container is running. More info: http://releases.k8s.io/release-1.2/docs/user-guide/images.md" }, "imageID": { "type": "string", - "description": "ID of the container's image" + "description": "ImageID of the container's image." }, "containerID": { "type": "string", - "description": "container's ID in the format 'docker://\u003ccontainer_id\u003e'; see http://releases.k8s.io/v1.0.4/docs/container-environment.md#container-information" + "description": "Container's ID in the format 'docker://\u003ccontainer_id\u003e'. More info: http://releases.k8s.io/release-1.2/docs/user-guide/container-environment.md#container-information" } } }, "v1.ContainerState": { "id": "v1.ContainerState", + "description": "ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.", "properties": { "waiting": { "$ref": "v1.ContainerStateWaiting", - "description": "details about a waiting container" + "description": "Details about a waiting container" }, "running": { "$ref": "v1.ContainerStateRunning", - "description": "details about a running container" + "description": "Details about a running container" }, "terminated": { "$ref": "v1.ContainerStateTerminated", - "description": "details about a terminated container" + "description": "Details about a terminated container" } } }, "v1.ContainerStateWaiting": { "id": "v1.ContainerStateWaiting", + "description": "ContainerStateWaiting is a waiting state of a container.", "properties": { "reason": { "type": "string", - "description": "(brief) reason the container is not yet running, such as pulling its image" + "description": "(brief) reason the container is not yet running." + }, + "message": { + "type": "string", + "description": "Message regarding why the container is not yet running." } } }, "v1.ContainerStateRunning": { "id": "v1.ContainerStateRunning", + "description": "ContainerStateRunning is a running state of a container.", "properties": { "startedAt": { "type": "string", - "description": "time at which the container was last (re-)started" + "description": "Time at which the container was last (re-)started" } } }, "v1.ContainerStateTerminated": { "id": "v1.ContainerStateTerminated", + "description": "ContainerStateTerminated is a terminated state of a container.", "required": [ "exitCode" ], @@ -12162,12 +17447,12 @@ "exitCode": { "type": "integer", "format": "int32", - "description": "exit status from the last termination of the container" + "description": "Exit status from the last termination of the container" }, "signal": { "type": "integer", "format": "int32", - "description": "signal from the last termination of the container" + "description": "Signal from the last termination of the container" }, "reason": { "type": "string", @@ -12175,155 +17460,162 @@ }, "message": { "type": "string", - "description": "message regarding the last termination of the container" + "description": "Message regarding the last termination of the container" }, "startedAt": { "type": "string", - "description": "time at which previous execution of the container started" + "description": "Time at which previous execution of the container started" }, "finishedAt": { "type": "string", - "description": "time at which the container last terminated" + "description": "Time at which the container last terminated" }, "containerID": { "type": "string", - "description": "container's ID in the format 'docker://\u003ccontainer_id\u003e'" + "description": "Container's ID in the format 'docker://\u003ccontainer_id\u003e'" } } }, "v1.PodTemplateList": { "id": "v1.PodTemplateList", + "description": "PodTemplateList is a list of PodTemplates.", "required": [ "items" ], "properties": { "kind": { "type": "string", - "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", - "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { - "$ref": "v1.ListMeta", - "description": "standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + "$ref": "unversioned.ListMeta", + "description": "Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "items": { "type": "array", "items": { "$ref": "v1.PodTemplate" }, - "description": "list of pod templates" + "description": "List of pod templates" } } }, "v1.PodTemplate": { "id": "v1.PodTemplate", + "description": "PodTemplate describes a template for creating copies of a predefined pod.", "properties": { "kind": { "type": "string", - "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", - "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", - "description": "standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "template": { "$ref": "v1.PodTemplateSpec", - "description": "the template of the desired behavior of the pod; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status" + "description": "Template defines the pods that will be created from this pod template. http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" } } }, "v1.PodTemplateSpec": { "id": "v1.PodTemplateSpec", + "description": "PodTemplateSpec describes the data a pod should have when created from a template", "properties": { "metadata": { "$ref": "v1.ObjectMeta", - "description": "standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "spec": { "$ref": "v1.PodSpec", - "description": "specification of the desired behavior of the pod; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status" + "description": "Specification of the desired behavior of the pod. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" } } }, "v1.ReplicationControllerList": { "id": "v1.ReplicationControllerList", + "description": "ReplicationControllerList is a collection of replication controllers.", "required": [ "items" ], "properties": { "kind": { "type": "string", - "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", - "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { - "$ref": "v1.ListMeta", - "description": "standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + "$ref": "unversioned.ListMeta", + "description": "Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "items": { "type": "array", "items": { "$ref": "v1.ReplicationController" }, - "description": "list of replication controllers; see http://releases.k8s.io/v1.0.4/docs/replication-controller.md" + "description": "List of replication controllers. More info: http://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md" } } }, "v1.ReplicationController": { "id": "v1.ReplicationController", + "description": "ReplicationController represents the configuration of a replication controller.", "properties": { "kind": { "type": "string", - "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", - "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", - "description": "standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + "description": "If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "spec": { "$ref": "v1.ReplicationControllerSpec", - "description": "specification of the desired behavior of the replication controller; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status" + "description": "Spec defines the specification of the desired behavior of the replication controller. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" }, "status": { "$ref": "v1.ReplicationControllerStatus", - "description": "most recently observed status of the replication controller; populated by the system, read-only; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status" + "description": "Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" } } }, "v1.ReplicationControllerSpec": { "id": "v1.ReplicationControllerSpec", + "description": "ReplicationControllerSpec is the specification of a replication controller.", "properties": { "replicas": { "type": "integer", "format": "int32", - "description": "number of replicas desired; defaults to 1; see http://releases.k8s.io/v1.0.4/docs/replication-controller.md#what-is-a-replication-controller" + "description": "Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: http://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md#what-is-a-replication-controller" }, "selector": { - "type": "string", - "description": "label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template; see http://releases.k8s.io/v1.0.4/docs/labels.md#label-selectors" + "type": "object", + "description": "Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: http://releases.k8s.io/release-1.2/docs/user-guide/labels.md#label-selectors" }, "template": { "$ref": "v1.PodTemplateSpec", - "description": "object that describes the pod that will be created if insufficient replicas are detected; takes precendence over templateRef; see http://releases.k8s.io/v1.0.4/docs/replication-controller.md#pod-template" + "description": "Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: http://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md#pod-template" } } }, "v1.ReplicationControllerStatus": { "id": "v1.ReplicationControllerStatus", + "description": "ReplicationControllerStatus represents the current status of a replication controller.", "required": [ "replicas" ], @@ -12331,253 +17623,335 @@ "replicas": { "type": "integer", "format": "int32", - "description": "most recently oberved number of replicas; see http://releases.k8s.io/v1.0.4/docs/replication-controller.md#what-is-a-replication-controller" + "description": "Replicas is the most recently oberved number of replicas. More info: http://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md#what-is-a-replication-controller" + }, + "fullyLabeledReplicas": { + "type": "integer", + "format": "int32", + "description": "The number of pods that have labels matching the labels of the pod template of the replication controller." }, "observedGeneration": { "type": "integer", "format": "int64", - "description": "reflects the generation of the most recently observed replication controller" + "description": "ObservedGeneration reflects the generation of the most recently observed replication controller." + } + } + }, + "v1.Scale": { + "id": "v1.Scale", + "description": "Scale represents a scaling request for a resource.", + "properties": { + "kind": { + "type": "string", + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources" + }, + "metadata": { + "$ref": "v1.ObjectMeta", + "description": "Standard object metadata; More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata." + }, + "spec": { + "$ref": "v1.ScaleSpec", + "description": "defines the behavior of the scale. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status." + }, + "status": { + "$ref": "v1.ScaleStatus", + "description": "current status of the scale. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status. Read-only." + } + } + }, + "v1.ScaleSpec": { + "id": "v1.ScaleSpec", + "description": "ScaleSpec describes the attributes of a scale subresource.", + "properties": { + "replicas": { + "type": "integer", + "format": "int32", + "description": "desired number of instances for the scaled object." + } + } + }, + "v1.ScaleStatus": { + "id": "v1.ScaleStatus", + "description": "ScaleStatus represents the current status of a scale subresource.", + "required": [ + "replicas" + ], + "properties": { + "replicas": { + "type": "integer", + "format": "int32", + "description": "actual number of observed instances of the scaled object." + }, + "selector": { + "type": "string", + "description": "label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: http://releases.k8s.io/release-1.2/docs/user-guide/labels.md#label-selectors" } } }, "v1.ResourceQuotaList": { "id": "v1.ResourceQuotaList", + "description": "ResourceQuotaList is a list of ResourceQuota items.", "required": [ "items" ], "properties": { "kind": { "type": "string", - "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", - "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { - "$ref": "v1.ListMeta", - "description": "standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + "$ref": "unversioned.ListMeta", + "description": "Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "items": { "type": "array", "items": { "$ref": "v1.ResourceQuota" }, - "description": "items is a list of ResourceQuota objects; see http://releases.k8s.io/v1.0.4/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota" + "description": "Items is a list of ResourceQuota objects. More info: http://releases.k8s.io/release-1.2/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota" } } }, "v1.ResourceQuota": { "id": "v1.ResourceQuota", + "description": "ResourceQuota sets aggregate quota restrictions enforced per namespace", "properties": { "kind": { "type": "string", - "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", - "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", - "description": "standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "spec": { "$ref": "v1.ResourceQuotaSpec", - "description": "spec defines the desired quota; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status" + "description": "Spec defines the desired quota. http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" }, "status": { "$ref": "v1.ResourceQuotaStatus", - "description": "status defines the actual enforced quota and current usage; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status" + "description": "Status defines the actual enforced quota and its current usage. http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" } } }, "v1.ResourceQuotaSpec": { "id": "v1.ResourceQuotaSpec", + "description": "ResourceQuotaSpec defines the desired hard limits to enforce for Quota.", "properties": { "hard": { - "type": "string", - "description": "hard is the set of desired hard limits for each named resource; see http://releases.k8s.io/v1.0.4/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota" + "type": "object", + "description": "Hard is the set of desired hard limits for each named resource. More info: http://releases.k8s.io/release-1.2/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota" + }, + "scopes": { + "type": "array", + "items": { + "$ref": "v1.ResourceQuotaScope" + }, + "description": "A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects." } } }, + "v1.ResourceQuotaScope": { + "id": "v1.ResourceQuotaScope", + "properties": {} + }, "v1.ResourceQuotaStatus": { "id": "v1.ResourceQuotaStatus", + "description": "ResourceQuotaStatus defines the enforced hard limits and observed use.", "properties": { "hard": { - "type": "string", - "description": "hard is the set of enforced hard limits for each named resource; see http://releases.k8s.io/v1.0.4/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota" + "type": "object", + "description": "Hard is the set of enforced hard limits for each named resource. More info: http://releases.k8s.io/release-1.2/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota" }, "used": { - "type": "string", - "description": "used is the current observed total usage of the resource in the namespace" + "type": "object", + "description": "Used is the current observed total usage of the resource in the namespace." } } }, "v1.SecretList": { "id": "v1.SecretList", + "description": "SecretList is a list of Secret.", "required": [ "items" ], "properties": { "kind": { "type": "string", - "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", - "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { - "$ref": "v1.ListMeta", - "description": "standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + "$ref": "unversioned.ListMeta", + "description": "Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "items": { "type": "array", "items": { "$ref": "v1.Secret" }, - "description": "items is a list of secret objects; see http://releases.k8s.io/v1.0.4/docs/secrets.md" + "description": "Items is a list of secret objects. More info: http://releases.k8s.io/release-1.2/docs/user-guide/secrets.md" } } }, "v1.Secret": { "id": "v1.Secret", + "description": "Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.", "properties": { "kind": { "type": "string", - "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", - "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", - "description": "standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "data": { - "type": "string", - "description": "data contains the secret data. Each key must be a valid DNS_SUBDOMAIN or leading dot followed by valid DNS_SUBDOMAIN. Each value must be a base64 encoded string as described in https://tools.ietf.org/html/rfc4648#section-4" + "type": "object", + "description": "Data contains the secret data. Each key must be a valid DNS_SUBDOMAIN or leading dot followed by valid DNS_SUBDOMAIN. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4" }, "type": { "type": "string", - "description": "type facilitates programmatic handling of secret data" + "description": "Used to facilitate programmatic handling of secret data." } } }, "v1.ServiceAccountList": { "id": "v1.ServiceAccountList", + "description": "ServiceAccountList is a list of ServiceAccount objects", "required": [ "items" ], "properties": { "kind": { "type": "string", - "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", - "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { - "$ref": "v1.ListMeta", - "description": "standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + "$ref": "unversioned.ListMeta", + "description": "Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "items": { "type": "array", "items": { "$ref": "v1.ServiceAccount" }, - "description": "list of ServiceAccounts; see http://releases.k8s.io/v1.0.4/docs/service_accounts.md#service-accounts" + "description": "List of ServiceAccounts. More info: http://releases.k8s.io/release-1.2/docs/design/service_accounts.md#service-accounts" } } }, "v1.ServiceAccount": { "id": "v1.ServiceAccount", + "description": "ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets", "properties": { "kind": { "type": "string", - "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", - "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", - "description": "standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "secrets": { "type": "array", "items": { "$ref": "v1.ObjectReference" }, - "description": "list of secrets that can be used by pods running as this service account; see http://releases.k8s.io/v1.0.4/docs/secrets.md" + "description": "Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: http://releases.k8s.io/release-1.2/docs/user-guide/secrets.md" }, "imagePullSecrets": { "type": "array", "items": { "$ref": "v1.LocalObjectReference" }, - "description": "list of references to secrets in the same namespace available for pulling container images; see http://releases.k8s.io/v1.0.4/docs/secrets.md#manually-specifying-an-imagepullsecret" + "description": "ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: http://releases.k8s.io/release-1.2/docs/user-guide/secrets.md#manually-specifying-an-imagepullsecret" } } }, "v1.ServiceList": { "id": "v1.ServiceList", + "description": "ServiceList holds a list of services.", "required": [ "items" ], "properties": { "kind": { "type": "string", - "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", - "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { - "$ref": "v1.ListMeta", - "description": "standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + "$ref": "unversioned.ListMeta", + "description": "Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "items": { "type": "array", "items": { "$ref": "v1.Service" }, - "description": "list of services" + "description": "List of services" } } }, "v1.Service": { "id": "v1.Service", + "description": "Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy.", "properties": { "kind": { "type": "string", - "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", - "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", - "description": "standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "spec": { "$ref": "v1.ServiceSpec", - "description": "specification of the desired behavior of the service; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status" + "description": "Spec defines the behavior of a service. http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" }, "status": { "$ref": "v1.ServiceStatus", - "description": "most recently observed status of the service; populated by the system, read-only; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status" + "description": "Most recently observed status of the service. Populated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" } } }, "v1.ServiceSpec": { "id": "v1.ServiceSpec", + "description": "ServiceSpec describes the attributes that a user creates on a service.", "required": [ "ports" ], @@ -12587,97 +17961,111 @@ "items": { "$ref": "v1.ServicePort" }, - "description": "ports exposed by the service; see http://releases.k8s.io/v1.0.4/docs/services.md#virtual-ips-and-service-proxies" + "description": "The list of ports that are exposed by this service. More info: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#virtual-ips-and-service-proxies" }, "selector": { - "type": "string", - "description": "label keys and values that must match in order to receive traffic for this service; if empty, all pods are selected, if not specified, endpoints must be manually specified; see http://releases.k8s.io/v1.0.4/docs/services.md#overview" + "type": "object", + "description": "This service will route traffic to pods having labels matching this selector. Label keys and values that must match in order to receive traffic for this service. If empty, all pods are selected, if not specified, endpoints must be manually specified. More info: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#overview" }, "clusterIP": { "type": "string", - "description": "IP address of the service; usually assigned by the system; if specified, it will be allocated to the service if unused or else creation of the service will fail; cannot be updated; 'None' can be specified for a headless service when proxying is not required; see http://releases.k8s.io/v1.0.4/docs/services.md#virtual-ips-and-service-proxies" + "description": "ClusterIP is usually assigned by the master and is the IP address of the service. If specified, it will be allocated to the service if it is unused or else creation of the service will fail. Valid values are None, empty string (\"\"), or a valid IP address. 'None' can be specified for a headless service when proxying is not required. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#virtual-ips-and-service-proxies" }, "type": { "type": "string", - "description": "type of this service; must be ClusterIP, NodePort, or LoadBalancer; defaults to ClusterIP; see http://releases.k8s.io/v1.0.4/docs/services.md#external-services" + "description": "Type of exposed service. Must be ClusterIP, NodePort, or LoadBalancer. Defaults to ClusterIP. More info: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#external-services" + }, + "externalIPs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "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. A previous form of this functionality exists as the deprecatedPublicIPs field. When using this field, callers should also clear the deprecatedPublicIPs field." }, "deprecatedPublicIPs": { "type": "array", "items": { "type": "string" }, - "description": "deprecated. externally visible IPs (e.g. load balancers) that should be proxied to this service" + "description": "deprecatedPublicIPs is deprecated and replaced by the externalIPs field with almost the exact same semantics. This field is retained in the v1 API for compatibility until at least 8/20/2016. It will be removed from any new API revisions. If both deprecatedPublicIPs *and* externalIPs are set, deprecatedPublicIPs is used." }, "sessionAffinity": { "type": "string", - "description": "enable client IP based session affinity; must be ClientIP or None; defaults to None; see http://releases.k8s.io/v1.0.4/docs/services.md#virtual-ips-and-service-proxies" + "description": "Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#virtual-ips-and-service-proxies" + }, + "loadBalancerIP": { + "type": "string", + "description": "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." } } }, "v1.ServicePort": { "id": "v1.ServicePort", + "description": "ServicePort contains information on service's port.", "required": [ - "port", - "nodePort" + "port" ], "properties": { "name": { "type": "string", - "description": "the name of this port; optional if only one port is defined" + "description": "The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. This maps to the 'Name' field in EndpointPort objects. Optional if only one ServicePort is defined on this service." }, "protocol": { "type": "string", - "description": "the protocol used by this port; must be UDP or TCP; TCP if unspecified" + "description": "The IP protocol for this port. Supports \"TCP\" and \"UDP\". Default is TCP." }, "port": { "type": "integer", "format": "int32", - "description": "the port number that is exposed" + "description": "The port that will be exposed by this service." }, "targetPort": { "type": "string", - "description": "number or name of the port to access on the pods targeted by the service; defaults to the service port; number must be in the range 1 to 65535; name must be an IANA_SVC_NAME; see http://releases.k8s.io/v1.0.4/docs/services.md#defining-a-service" + "description": "Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#defining-a-service" }, "nodePort": { "type": "integer", "format": "int32", - "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; see http://releases.k8s.io/v1.0.4/docs/services.md#type--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. More info: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#type--nodeport" } } }, "v1.ServiceStatus": { "id": "v1.ServiceStatus", + "description": "ServiceStatus represents the current status of a service.", "properties": { "loadBalancer": { "$ref": "v1.LoadBalancerStatus", - "description": "status of load-balancer" + "description": "LoadBalancer contains the current status of the load-balancer, if one is present." } } }, "v1.LoadBalancerStatus": { "id": "v1.LoadBalancerStatus", + "description": "LoadBalancerStatus represents the status of a load-balancer.", "properties": { "ingress": { "type": "array", "items": { "$ref": "v1.LoadBalancerIngress" }, - "description": "load-balancer ingress points" + "description": "Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points." } } }, "v1.LoadBalancerIngress": { "id": "v1.LoadBalancerIngress", + "description": "LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.", "properties": { "ip": { "type": "string", - "description": "IP address of ingress point" + "description": "IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)" }, "hostname": { "type": "string", - "description": "hostname of ingress point" + "description": "Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)" } } } } - } + } \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 148ae26..05a9c08 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,4 +5,4 @@ pbr>=1.6 six>=1.9.0 # MIT urllib3>=1.8.3 # MIT -python-dateutil>=2.4.2 # BSD +python-dateutil>=2.4.2 # BSD \ No newline at end of file