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
This commit is contained in:
parent
7b79e6c74b
commit
5d1a429016
@ -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 ..
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -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
|
||||
|
@ -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
|
||||
|
@ -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.
|
@ -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
|
76
k8sclient/client/models/unversioned_patch.py
Normal file
76
k8sclient/client/models/unversioned_patch.py
Normal file
@ -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()
|
274
k8sclient/client/models/unversioned_status.py
Normal file
274
k8sclient/client/models/unversioned_status.py
Normal file
@ -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()
|
@ -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
|
@ -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
|
@ -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
|
||||
|
149
k8sclient/client/models/v1_azure_file_volume_source.py
Normal file
149
k8sclient/client/models/v1_azure_file_volume_source.py
Normal file
@ -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()
|
@ -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
|
||||
|
@ -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]
|
||||
|
224
k8sclient/client/models/v1_ceph_fs_volume_source.py
Normal file
224
k8sclient/client/models/v1_ceph_fs_volume_source.py
Normal file
@ -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()
|
149
k8sclient/client/models/v1_cinder_volume_source.py
Normal file
149
k8sclient/client/models/v1_cinder_volume_source.py
Normal file
@ -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()
|
@ -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
|
||||
|
@ -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]
|
||||
|
@ -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]
|
||||
|
174
k8sclient/client/models/v1_config_map.py
Normal file
174
k8sclient/client/models/v1_config_map.py
Normal file
@ -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()
|
124
k8sclient/client/models/v1_config_map_key_selector.py
Normal file
124
k8sclient/client/models/v1_config_map_key_selector.py
Normal file
@ -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()
|
174
k8sclient/client/models/v1_config_map_list.py
Normal file
174
k8sclient/client/models/v1_config_map_list.py
Normal file
@ -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()
|
124
k8sclient/client/models/v1_config_map_volume_source.py
Normal file
124
k8sclient/client/models/v1_config_map_volume_source.py
Normal file
@ -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()
|
@ -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
|
||||
|
124
k8sclient/client/models/v1_container_image.py
Normal file
124
k8sclient/client/models/v1_container_image.py
Normal file
@ -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()
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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_id>'
|
||||
Container's ID in the format 'docker://<container_id>'
|
||||
|
||||
: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_id>'
|
||||
Container's ID in the format 'docker://<container_id>'
|
||||
|
||||
:param container_id: The container_id of this V1ContainerStateTerminated.
|
||||
:type: str
|
||||
|
@ -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
|
||||
|
@ -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://<container_id>'; see http://releases.k8s.io/v1.0.4/docs/container-environment.md#container-information
|
||||
Container's ID in the format 'docker://<container_id>'. 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://<container_id>'; see http://releases.k8s.io/v1.0.4/docs/container-environment.md#container-information
|
||||
Container's ID in the format 'docker://<container_id>'. 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
|
||||
|
99
k8sclient/client/models/v1_daemon_endpoint.py
Normal file
99
k8sclient/client/models/v1_daemon_endpoint.py
Normal file
@ -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()
|
@ -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
|
||||
|
124
k8sclient/client/models/v1_downward_api_volume_file.py
Normal file
124
k8sclient/client/models/v1_downward_api_volume_file.py
Normal file
@ -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()
|
99
k8sclient/client/models/v1_downward_api_volume_source.py
Normal file
99
k8sclient/client/models/v1_downward_api_volume_source.py
Normal file
@ -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()
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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]
|
||||
|
@ -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]
|
||||
|
@ -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]
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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]
|
||||
|
@ -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
|
||||
|
@ -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]
|
||||
|
174
k8sclient/client/models/v1_fc_volume_source.py
Normal file
174
k8sclient/client/models/v1_fc_volume_source.py
Normal file
@ -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()
|
199
k8sclient/client/models/v1_flex_volume_source.py
Normal file
199
k8sclient/client/models/v1_flex_volume_source.py
Normal file
@ -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()
|
99
k8sclient/client/models/v1_flocker_volume_source.py
Normal file
99
k8sclient/client/models/v1_flocker_volume_source.py
Normal file
@ -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()
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
124
k8sclient/client/models/v1_http_header.py
Normal file
124
k8sclient/client/models/v1_http_header.py
Normal file
@ -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()
|
@ -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
|
||||
|
124
k8sclient/client/models/v1_key_to_path.py
Normal file
124
k8sclient/client/models/v1_key_to_path.py
Normal file
@ -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()
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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]
|
||||
|
@ -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]
|
||||
|
@ -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
|
||||
|
@ -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]
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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]
|
||||
|
@ -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]
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
99
k8sclient/client/models/v1_node_daemon_endpoints.py
Normal file
99
k8sclient/client/models/v1_node_daemon_endpoints.py
Normal file
@ -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()
|
@ -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]
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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]
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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]
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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]
|
||||
|
199
k8sclient/client/models/v1_pod_security_context.py
Normal file
199
k8sclient/client/models/v1_pod_security_context.py
Normal file
@ -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()
|
@ -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]
|
||||
|
@ -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]
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user