kubernetes.client.models package

Submodules

kubernetes.client.models.intstr_int_or_string module

kubernetes.client.models.resource_quantity module

kubernetes.client.models.runtime_raw_extension module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.runtime_raw_extension.RuntimeRawExtension(raw=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'raw': 'Raw'}
raw

Gets the raw of this RuntimeRawExtension. Raw is the underlying serialization of this object.

Returns:The raw of this RuntimeRawExtension.
Return type:str
swagger_types = {'raw': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.unversioned_api_group module

kubernetes.client.models.unversioned_api_group_list module

kubernetes.client.models.unversioned_api_resource module

kubernetes.client.models.unversioned_api_resource_list module

kubernetes.client.models.unversioned_api_versions module

kubernetes.client.models.unversioned_group_version_for_discovery module

kubernetes.client.models.unversioned_label_selector module

kubernetes.client.models.unversioned_label_selector_requirement module

kubernetes.client.models.unversioned_list_meta module

kubernetes.client.models.unversioned_server_address_by_client_cidr module

kubernetes.client.models.unversioned_status module

kubernetes.client.models.unversioned_status_cause module

kubernetes.client.models.unversioned_status_details module

kubernetes.client.models.unversioned_time module

kubernetes.client.models.v1_attached_volume module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_attached_volume.V1AttachedVolume(device_path=None, name=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'device_path': 'devicePath', 'name': 'name'}
device_path

Gets the device_path of this V1AttachedVolume. DevicePath represents the device path where the volume should be available

Returns:The device_path of this V1AttachedVolume.
Return type:str
name

Gets the name of this V1AttachedVolume. Name of the attached volume

Returns:The name of this V1AttachedVolume.
Return type:str
swagger_types = {'device_path': 'str', 'name': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_aws_elastic_block_store_volume_source module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_aws_elastic_block_store_volume_source.V1AWSElasticBlockStoreVolumeSource(fs_type=None, partition=None, read_only=None, volume_id=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'fs_type': 'fsType', 'partition': 'partition', 'read_only': 'readOnly', 'volume_id': 'volumeID'}
fs_type

Gets the fs_type of this V1AWSElasticBlockStoreVolumeSource. Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: “ext4”, “xfs”, “ntfs”. Implicitly inferred to be “ext4” if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore

Returns:The fs_type of this V1AWSElasticBlockStoreVolumeSource.
Return type:str
partition

Gets the partition of this V1AWSElasticBlockStoreVolumeSource. 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).

Returns:The partition of this V1AWSElasticBlockStoreVolumeSource.
Return type:int
read_only

Gets the read_only of this V1AWSElasticBlockStoreVolumeSource. Specify “true” to force and set the ReadOnly property in VolumeMounts to “true”. If omitted, the default is “false”. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore

Returns:The read_only of this V1AWSElasticBlockStoreVolumeSource.
Return type:bool
swagger_types = {'fs_type': 'str', 'partition': 'int', 'read_only': 'bool', 'volume_id': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

volume_id

Gets the volume_id of this V1AWSElasticBlockStoreVolumeSource. Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore

Returns:The volume_id of this V1AWSElasticBlockStoreVolumeSource.
Return type:str

kubernetes.client.models.v1_azure_disk_volume_source module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_azure_disk_volume_source.V1AzureDiskVolumeSource(caching_mode=None, disk_name=None, disk_uri=None, fs_type=None, kind=None, read_only=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'caching_mode': 'cachingMode', 'disk_name': 'diskName', 'disk_uri': 'diskURI', 'fs_type': 'fsType', 'kind': 'kind', 'read_only': 'readOnly'}
caching_mode

Gets the caching_mode of this V1AzureDiskVolumeSource. Host Caching mode: None, Read Only, Read Write.

Returns:The caching_mode of this V1AzureDiskVolumeSource.
Return type:str
disk_name

Gets the disk_name of this V1AzureDiskVolumeSource. The Name of the data disk in the blob storage

Returns:The disk_name of this V1AzureDiskVolumeSource.
Return type:str
disk_uri

Gets the disk_uri of this V1AzureDiskVolumeSource. The URI the data disk in the blob storage

Returns:The disk_uri of this V1AzureDiskVolumeSource.
Return type:str
fs_type

Gets the fs_type of this V1AzureDiskVolumeSource. 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.

Returns:The fs_type of this V1AzureDiskVolumeSource.
Return type:str
kind

Gets the kind of this V1AzureDiskVolumeSource. Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared

Returns:The kind of this V1AzureDiskVolumeSource.
Return type:str
read_only

Gets the read_only of this V1AzureDiskVolumeSource. Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.

Returns:The read_only of this V1AzureDiskVolumeSource.
Return type:bool
swagger_types = {'caching_mode': 'str', 'disk_name': 'str', 'disk_uri': 'str', 'fs_type': 'str', 'kind': 'str', 'read_only': 'bool'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_azure_file_volume_source module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_azure_file_volume_source.V1AzureFileVolumeSource(read_only=None, secret_name=None, share_name=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'read_only': 'readOnly', 'secret_name': 'secretName', 'share_name': 'shareName'}
read_only

Gets the read_only of this V1AzureFileVolumeSource. Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.

Returns:The read_only of this V1AzureFileVolumeSource.
Return type:bool
secret_name

Gets the secret_name of this V1AzureFileVolumeSource. the name of secret that contains Azure Storage Account Name and Key

Returns:The secret_name of this V1AzureFileVolumeSource.
Return type:str
share_name

Gets the share_name of this V1AzureFileVolumeSource. Share Name

Returns:The share_name of this V1AzureFileVolumeSource.
Return type:str
swagger_types = {'read_only': 'bool', 'secret_name': 'str', 'share_name': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_binding module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_binding.V1Binding(api_version=None, kind=None, metadata=None, target=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1Binding. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1Binding.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'kind': 'kind', 'metadata': 'metadata', 'target': 'target'}
kind

Gets the kind of this V1Binding. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1Binding.
Return type:str
metadata

Gets the metadata of this V1Binding. Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

Returns:The metadata of this V1Binding.
Return type:V1ObjectMeta
swagger_types = {'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'target': 'V1ObjectReference'}
target

Gets the target of this V1Binding. The target object that you want to bind to the standard object.

Returns:The target of this V1Binding.
Return type:V1ObjectReference
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_capabilities module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_capabilities.V1Capabilities(add=None, drop=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

add

Gets the add of this V1Capabilities. Added capabilities

Returns:The add of this V1Capabilities.
Return type:list[str]
attribute_map = {'add': 'add', 'drop': 'drop'}
drop

Gets the drop of this V1Capabilities. Removed capabilities

Returns:The drop of this V1Capabilities.
Return type:list[str]
swagger_types = {'add': 'list[str]', 'drop': 'list[str]'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_ceph_fs_volume_source module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_ceph_fs_volume_source.V1CephFSVolumeSource(monitors=None, path=None, read_only=None, secret_file=None, secret_ref=None, user=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'monitors': 'monitors', 'path': 'path', 'read_only': 'readOnly', 'secret_file': 'secretFile', 'secret_ref': 'secretRef', 'user': 'user'}
monitors

Gets the monitors of this V1CephFSVolumeSource. Required: Monitors is a collection of Ceph monitors More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it

Returns:The monitors of this V1CephFSVolumeSource.
Return type:list[str]
path

Gets the path of this V1CephFSVolumeSource. Optional: Used as the mounted root, rather than the full Ceph tree, default is /

Returns:The path of this V1CephFSVolumeSource.
Return type:str
read_only

Gets the read_only of this V1CephFSVolumeSource. Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it

Returns:The read_only of this V1CephFSVolumeSource.
Return type:bool
secret_file

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: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it

Returns:The secret_file of this V1CephFSVolumeSource.
Return type:str
secret_ref

Gets the secret_ref of this V1CephFSVolumeSource. Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it

Returns:The secret_ref of this V1CephFSVolumeSource.
Return type:V1LocalObjectReference
swagger_types = {'monitors': 'list[str]', 'path': 'str', 'read_only': 'bool', 'secret_file': 'str', 'secret_ref': 'V1LocalObjectReference', 'user': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

user

Gets the user of this V1CephFSVolumeSource. Optional: User is the rados user name, default is admin More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it

Returns:The user of this V1CephFSVolumeSource.
Return type:str

kubernetes.client.models.v1_cinder_volume_source module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_cinder_volume_source.V1CinderVolumeSource(fs_type=None, read_only=None, secret_ref=None, volume_id=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'fs_type': 'fsType', 'read_only': 'readOnly', 'secret_ref': 'secretRef', 'volume_id': 'volumeID'}
fs_type

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: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md

Returns:The fs_type of this V1CinderVolumeSource.
Return type:str
read_only

Gets the read_only of this V1CinderVolumeSource. Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md

Returns:The read_only of this V1CinderVolumeSource.
Return type:bool
secret_ref

Gets the secret_ref of this V1CinderVolumeSource. Optional: points to a secret object containing parameters used to connect to OpenStack.

Returns:The secret_ref of this V1CinderVolumeSource.
Return type:V1LocalObjectReference
swagger_types = {'fs_type': 'str', 'read_only': 'bool', 'secret_ref': 'V1LocalObjectReference', 'volume_id': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

volume_id

Gets the volume_id of this V1CinderVolumeSource. volume id used to identify the volume in cinder More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md

Returns:The volume_id of this V1CinderVolumeSource.
Return type:str

kubernetes.client.models.v1_component_condition module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_component_condition.V1ComponentCondition(error=None, message=None, status=None, type=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'error': 'error', 'message': 'message', 'status': 'status', 'type': 'type'}
error

Gets the error of this V1ComponentCondition. Condition error code for a component. For example, a health check error code.

Returns:The error of this V1ComponentCondition.
Return type:str
message

Gets the message of this V1ComponentCondition. Message about the condition for a component. For example, information about a health check.

Returns:The message of this V1ComponentCondition.
Return type:str
status

Gets the status of this V1ComponentCondition. Status of the condition for a component. Valid values for “Healthy”: “True”, “False”, or “Unknown”.

Returns:The status of this V1ComponentCondition.
Return type:str
swagger_types = {'error': 'str', 'message': 'str', 'status': 'str', 'type': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

type

Gets the type of this V1ComponentCondition. Type of condition for a component. Valid value: “Healthy”

Returns:The type of this V1ComponentCondition.
Return type:str

kubernetes.client.models.v1_component_status module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_component_status.V1ComponentStatus(api_version=None, conditions=None, kind=None, metadata=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1ComponentStatus. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1ComponentStatus.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'conditions': 'conditions', 'kind': 'kind', 'metadata': 'metadata'}
conditions

Gets the conditions of this V1ComponentStatus. List of component conditions observed

Returns:The conditions of this V1ComponentStatus.
Return type:list[V1ComponentCondition]
kind

Gets the kind of this V1ComponentStatus. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1ComponentStatus.
Return type:str
metadata

Gets the metadata of this V1ComponentStatus. Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

Returns:The metadata of this V1ComponentStatus.
Return type:V1ObjectMeta
swagger_types = {'api_version': 'str', 'conditions': 'list[V1ComponentCondition]', 'kind': 'str', 'metadata': 'V1ObjectMeta'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_component_status_list module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_component_status_list.V1ComponentStatusList(api_version=None, items=None, kind=None, metadata=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1ComponentStatusList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1ComponentStatusList.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'items': 'items', 'kind': 'kind', 'metadata': 'metadata'}
items

Gets the items of this V1ComponentStatusList. List of ComponentStatus objects.

Returns:The items of this V1ComponentStatusList.
Return type:list[V1ComponentStatus]
kind

Gets the kind of this V1ComponentStatusList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1ComponentStatusList.
Return type:str
metadata

Gets the metadata of this V1ComponentStatusList. Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The metadata of this V1ComponentStatusList.
Return type:V1ListMeta
swagger_types = {'api_version': 'str', 'items': 'list[V1ComponentStatus]', 'kind': 'str', 'metadata': 'V1ListMeta'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_config_map module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_config_map.V1ConfigMap(api_version=None, binary_data=None, data=None, kind=None, metadata=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

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: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1ConfigMap.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'binary_data': 'binaryData', 'data': 'data', 'kind': 'kind', 'metadata': 'metadata'}
binary_data

Gets the binary_data of this V1ConfigMap. BinaryData contains the binary data. Each key must consist of alphanumeric characters, ‘-‘, ‘_’ or ‘.’. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet.

Returns:The binary_data of this V1ConfigMap.
Return type:dict(str, str)
data

Gets the data of this V1ConfigMap. Data contains the configuration data. Each key must consist of alphanumeric characters, ‘-‘, ‘_’ or ‘.’. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process.

Returns:The data of this V1ConfigMap.
Return type:dict(str, str)
kind

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: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1ConfigMap.
Return type:str
metadata

Gets the metadata of this V1ConfigMap. Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

Returns:The metadata of this V1ConfigMap.
Return type:V1ObjectMeta
swagger_types = {'api_version': 'str', 'binary_data': 'dict(str, str)', 'data': 'dict(str, str)', 'kind': 'str', 'metadata': 'V1ObjectMeta'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_config_map_key_selector module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_config_map_key_selector.V1ConfigMapKeySelector(key=None, name=None, optional=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'key': 'key', 'name': 'name', 'optional': 'optional'}
key

Gets the key of this V1ConfigMapKeySelector. The key to select.

Returns:The key of this V1ConfigMapKeySelector.
Return type:str
name

Gets the name of this V1ConfigMapKeySelector. Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

Returns:The name of this V1ConfigMapKeySelector.
Return type:str
optional

Gets the optional of this V1ConfigMapKeySelector. Specify whether the ConfigMap or it’s key must be defined

Returns:The optional of this V1ConfigMapKeySelector.
Return type:bool
swagger_types = {'key': 'str', 'name': 'str', 'optional': 'bool'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_config_map_list module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_config_map_list.V1ConfigMapList(api_version=None, items=None, kind=None, metadata=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

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: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1ConfigMapList.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'items': 'items', 'kind': 'kind', 'metadata': 'metadata'}
items

Gets the items of this V1ConfigMapList. Items is the list of ConfigMaps.

Returns:The items of this V1ConfigMapList.
Return type:list[V1ConfigMap]
kind

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: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1ConfigMapList.
Return type:str
metadata

Gets the metadata of this V1ConfigMapList. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

Returns:The metadata of this V1ConfigMapList.
Return type:V1ListMeta
swagger_types = {'api_version': 'str', 'items': 'list[V1ConfigMap]', 'kind': 'str', 'metadata': 'V1ListMeta'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_config_map_volume_source module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_config_map_volume_source.V1ConfigMapVolumeSource(default_mode=None, items=None, name=None, optional=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'default_mode': 'defaultMode', 'items': 'items', 'name': 'name', 'optional': 'optional'}
default_mode

Gets the default_mode of this V1ConfigMapVolumeSource. Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.

Returns:The default_mode of this V1ConfigMapVolumeSource.
Return type:int
items

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 unless it is marked optional. Paths must be relative and may not contain the ‘..’ path or start with ‘..’.

Returns:The items of this V1ConfigMapVolumeSource.
Return type:list[V1KeyToPath]
name

Gets the name of this V1ConfigMapVolumeSource. Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

Returns:The name of this V1ConfigMapVolumeSource.
Return type:str
optional

Gets the optional of this V1ConfigMapVolumeSource. Specify whether the ConfigMap or it’s keys must be defined

Returns:The optional of this V1ConfigMapVolumeSource.
Return type:bool
swagger_types = {'default_mode': 'int', 'items': 'list[V1KeyToPath]', 'name': 'str', 'optional': 'bool'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_container module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_container.V1Container(args=None, command=None, env=None, env_from=None, image=None, image_pull_policy=None, lifecycle=None, liveness_probe=None, name=None, ports=None, readiness_probe=None, resources=None, security_context=None, stdin=None, stdin_once=None, termination_message_path=None, termination_message_policy=None, tty=None, volume_devices=None, volume_mounts=None, working_dir=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

args

Gets the args of this V1Container. Arguments to the entrypoint. The docker image’s CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container’s environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

Returns:The args of this V1Container.
Return type:list[str]
attribute_map = {'args': 'args', 'command': 'command', 'env': 'env', 'env_from': 'envFrom', 'image': 'image', 'image_pull_policy': 'imagePullPolicy', 'lifecycle': 'lifecycle', 'liveness_probe': 'livenessProbe', 'name': 'name', 'ports': 'ports', 'readiness_probe': 'readinessProbe', 'resources': 'resources', 'security_context': 'securityContext', 'stdin': 'stdin', 'stdin_once': 'stdinOnce', 'termination_message_path': 'terminationMessagePath', 'termination_message_policy': 'terminationMessagePolicy', 'tty': 'tty', 'volume_devices': 'volumeDevices', 'volume_mounts': 'volumeMounts', 'working_dir': 'workingDir'}
command

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. Variable references $(VAR_NAME) are expanded using the container’s environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

Returns:The command of this V1Container.
Return type:list[str]
env

Gets the env of this V1Container. List of environment variables to set in the container. Cannot be updated.

Returns:The env of this V1Container.
Return type:list[V1EnvVar]
env_from

Gets the env_from of this V1Container. List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.

Returns:The env_from of this V1Container.
Return type:list[V1EnvFromSource]
image

Gets the image of this V1Container. Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.

Returns:The image of this V1Container.
Return type:str
image_pull_policy

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. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images

Returns:The image_pull_policy of this V1Container.
Return type:str
lifecycle

Gets the lifecycle of this V1Container. Actions that the management system should take in response to container lifecycle events. Cannot be updated.

Returns:The lifecycle of this V1Container.
Return type:V1Lifecycle
liveness_probe

Gets the liveness_probe of this V1Container. Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes

Returns:The liveness_probe of this V1Container.
Return type:V1Probe
name

Gets the name of this V1Container. Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.

Returns:The name of this V1Container.
Return type:str
ports

Gets the ports of this V1Container. 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.

Returns:The ports of this V1Container.
Return type:list[V1ContainerPort]
readiness_probe

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. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes

Returns:The readiness_probe of this V1Container.
Return type:V1Probe
resources

Gets the resources of this V1Container. Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/

Returns:The resources of this V1Container.
Return type:V1ResourceRequirements
security_context

Gets the security_context of this V1Container. Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/

Returns:The security_context of this V1Container.
Return type:V1SecurityContext
stdin

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.

Returns:The stdin of this V1Container.
Return type:bool
stdin_once

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

Returns:The stdin_once of this V1Container.
Return type:bool
swagger_types = {'args': 'list[str]', 'command': 'list[str]', 'env': 'list[V1EnvVar]', 'env_from': 'list[V1EnvFromSource]', 'image': 'str', 'image_pull_policy': 'str', 'lifecycle': 'V1Lifecycle', 'liveness_probe': 'V1Probe', 'name': 'str', 'ports': 'list[V1ContainerPort]', 'readiness_probe': 'V1Probe', 'resources': 'V1ResourceRequirements', 'security_context': 'V1SecurityContext', 'stdin': 'bool', 'stdin_once': 'bool', 'termination_message_path': 'str', 'termination_message_policy': 'str', 'tty': 'bool', 'volume_devices': 'list[V1VolumeDevice]', 'volume_mounts': 'list[V1VolumeMount]', 'working_dir': 'str'}
termination_message_path

Gets the termination_message_path of this V1Container. Optional: Path at which the file to which the container’s termination message will be written is mounted into the container’s filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.

Returns:The termination_message_path of this V1Container.
Return type:str
termination_message_policy

Gets the termination_message_policy of this V1Container. Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.

Returns:The termination_message_policy of this V1Container.
Return type:str
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

tty

Gets the tty of this V1Container. Whether this container should allocate a TTY for itself, also requires ‘stdin’ to be true. Default is false.

Returns:The tty of this V1Container.
Return type:bool
volume_devices

Gets the volume_devices of this V1Container. volumeDevices is the list of block devices to be used by the container. This is an alpha feature and may change in the future.

Returns:The volume_devices of this V1Container.
Return type:list[V1VolumeDevice]
volume_mounts

Gets the volume_mounts of this V1Container. Pod volumes to mount into the container’s filesystem. Cannot be updated.

Returns:The volume_mounts of this V1Container.
Return type:list[V1VolumeMount]
working_dir

Gets the working_dir of this V1Container. 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.

Returns:The working_dir of this V1Container.
Return type:str

kubernetes.client.models.v1_container_image module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_container_image.V1ContainerImage(names=None, size_bytes=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'names': 'names', 'size_bytes': 'sizeBytes'}
names

Gets the names of this V1ContainerImage. Names by which this image is known. e.g. [“k8s.gcr.io/hyperkube:v1.0.7”, “dockerhub.io/google_containers/hyperkube:v1.0.7”]

Returns:The names of this V1ContainerImage.
Return type:list[str]
size_bytes

Gets the size_bytes of this V1ContainerImage. The size of the image in bytes.

Returns:The size_bytes of this V1ContainerImage.
Return type:int
swagger_types = {'names': 'list[str]', 'size_bytes': 'int'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_container_port module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_container_port.V1ContainerPort(container_port=None, host_ip=None, host_port=None, name=None, protocol=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'container_port': 'containerPort', 'host_ip': 'hostIP', 'host_port': 'hostPort', 'name': 'name', 'protocol': 'protocol'}
container_port

Gets the container_port of this V1ContainerPort. Number of port to expose on the pod’s IP address. This must be a valid port number, 0 < x < 65536.

Returns:The container_port of this V1ContainerPort.
Return type:int
host_ip

Gets the host_ip of this V1ContainerPort. What host IP to bind the external port to.

Returns:The host_ip of this V1ContainerPort.
Return type:str
host_port

Gets the host_port of this V1ContainerPort. 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.

Returns:The host_port of this V1ContainerPort.
Return type:int
name

Gets the name of this V1ContainerPort. 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.

Returns:The name of this V1ContainerPort.
Return type:str
protocol

Gets the protocol of this V1ContainerPort. Protocol for port. Must be UDP, TCP, or SCTP. Defaults to “TCP”.

Returns:The protocol of this V1ContainerPort.
Return type:str
swagger_types = {'container_port': 'int', 'host_ip': 'str', 'host_port': 'int', 'name': 'str', 'protocol': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_container_state module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_container_state.V1ContainerState(running=None, terminated=None, waiting=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'running': 'running', 'terminated': 'terminated', 'waiting': 'waiting'}
running

Gets the running of this V1ContainerState. Details about a running container

Returns:The running of this V1ContainerState.
Return type:V1ContainerStateRunning
swagger_types = {'running': 'V1ContainerStateRunning', 'terminated': 'V1ContainerStateTerminated', 'waiting': 'V1ContainerStateWaiting'}
terminated

Gets the terminated of this V1ContainerState. Details about a terminated container

Returns:The terminated of this V1ContainerState.
Return type:V1ContainerStateTerminated
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

waiting

Gets the waiting of this V1ContainerState. Details about a waiting container

Returns:The waiting of this V1ContainerState.
Return type:V1ContainerStateWaiting

kubernetes.client.models.v1_container_state_running module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_container_state_running.V1ContainerStateRunning(started_at=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'started_at': 'startedAt'}
started_at

Gets the started_at of this V1ContainerStateRunning. Time at which the container was last (re-)started

Returns:The started_at of this V1ContainerStateRunning.
Return type:datetime
swagger_types = {'started_at': 'datetime'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_container_state_terminated module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_container_state_terminated.V1ContainerStateTerminated(container_id=None, exit_code=None, finished_at=None, message=None, reason=None, signal=None, started_at=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'container_id': 'containerID', 'exit_code': 'exitCode', 'finished_at': 'finishedAt', 'message': 'message', 'reason': 'reason', 'signal': 'signal', 'started_at': 'startedAt'}
container_id

Gets the container_id of this V1ContainerStateTerminated. Container’s ID in the format ‘docker://<container_id>’

Returns:The container_id of this V1ContainerStateTerminated.
Return type:str
exit_code

Gets the exit_code of this V1ContainerStateTerminated. Exit status from the last termination of the container

Returns:The exit_code of this V1ContainerStateTerminated.
Return type:int
finished_at

Gets the finished_at of this V1ContainerStateTerminated. Time at which the container last terminated

Returns:The finished_at of this V1ContainerStateTerminated.
Return type:datetime
message

Gets the message of this V1ContainerStateTerminated. Message regarding the last termination of the container

Returns:The message of this V1ContainerStateTerminated.
Return type:str
reason

Gets the reason of this V1ContainerStateTerminated. (brief) reason from the last termination of the container

Returns:The reason of this V1ContainerStateTerminated.
Return type:str
signal

Gets the signal of this V1ContainerStateTerminated. Signal from the last termination of the container

Returns:The signal of this V1ContainerStateTerminated.
Return type:int
started_at

Gets the started_at of this V1ContainerStateTerminated. Time at which previous execution of the container started

Returns:The started_at of this V1ContainerStateTerminated.
Return type:datetime
swagger_types = {'container_id': 'str', 'exit_code': 'int', 'finished_at': 'datetime', 'message': 'str', 'reason': 'str', 'signal': 'int', 'started_at': 'datetime'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_container_state_waiting module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_container_state_waiting.V1ContainerStateWaiting(message=None, reason=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'message': 'message', 'reason': 'reason'}
message

Gets the message of this V1ContainerStateWaiting. Message regarding why the container is not yet running.

Returns:The message of this V1ContainerStateWaiting.
Return type:str
reason

Gets the reason of this V1ContainerStateWaiting. (brief) reason the container is not yet running.

Returns:The reason of this V1ContainerStateWaiting.
Return type:str
swagger_types = {'message': 'str', 'reason': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_container_status module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_container_status.V1ContainerStatus(container_id=None, image=None, image_id=None, last_state=None, name=None, ready=None, restart_count=None, state=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'container_id': 'containerID', 'image': 'image', 'image_id': 'imageID', 'last_state': 'lastState', 'name': 'name', 'ready': 'ready', 'restart_count': 'restartCount', 'state': 'state'}
container_id

Gets the container_id of this V1ContainerStatus. Container’s ID in the format ‘docker://<container_id>’.

Returns:The container_id of this V1ContainerStatus.
Return type:str
image

Gets the image of this V1ContainerStatus. The image the container is running. More info: https://kubernetes.io/docs/concepts/containers/images

Returns:The image of this V1ContainerStatus.
Return type:str
image_id

Gets the image_id of this V1ContainerStatus. ImageID of the container’s image.

Returns:The image_id of this V1ContainerStatus.
Return type:str
last_state

Gets the last_state of this V1ContainerStatus. Details about the container’s last termination condition.

Returns:The last_state of this V1ContainerStatus.
Return type:V1ContainerState
name

Gets the name of this V1ContainerStatus. This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated.

Returns:The name of this V1ContainerStatus.
Return type:str
ready

Gets the ready of this V1ContainerStatus. Specifies whether the container has passed its readiness probe.

Returns:The ready of this V1ContainerStatus.
Return type:bool
restart_count

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. 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.

Returns:The restart_count of this V1ContainerStatus.
Return type:int
state

Gets the state of this V1ContainerStatus. Details about the container’s current condition.

Returns:The state of this V1ContainerStatus.
Return type:V1ContainerState
swagger_types = {'container_id': 'str', 'image': 'str', 'image_id': 'str', 'last_state': 'V1ContainerState', 'name': 'str', 'ready': 'bool', 'restart_count': 'int', 'state': 'V1ContainerState'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_cross_version_object_reference module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_cross_version_object_reference.V1CrossVersionObjectReference(api_version=None, kind=None, name=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1CrossVersionObjectReference. API version of the referent

Returns:The api_version of this V1CrossVersionObjectReference.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'kind': 'kind', 'name': 'name'}
kind

Gets the kind of this V1CrossVersionObjectReference. Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1CrossVersionObjectReference.
Return type:str
name

Gets the name of this V1CrossVersionObjectReference. Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names

Returns:The name of this V1CrossVersionObjectReference.
Return type:str
swagger_types = {'api_version': 'str', 'kind': 'str', 'name': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_daemon_endpoint module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_daemon_endpoint.V1DaemonEndpoint(port=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'port': 'Port'}
port

Gets the port of this V1DaemonEndpoint. Port number of the given endpoint.

Returns:The port of this V1DaemonEndpoint.
Return type:int
swagger_types = {'port': 'int'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_delete_options module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_delete_options.V1DeleteOptions(api_version=None, dry_run=None, grace_period_seconds=None, kind=None, orphan_dependents=None, preconditions=None, propagation_policy=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1DeleteOptions. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1DeleteOptions.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'dry_run': 'dryRun', 'grace_period_seconds': 'gracePeriodSeconds', 'kind': 'kind', 'orphan_dependents': 'orphanDependents', 'preconditions': 'preconditions', 'propagation_policy': 'propagationPolicy'}
dry_run

Gets the dry_run of this V1DeleteOptions. When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

Returns:The dry_run of this V1DeleteOptions.
Return type:list[str]
grace_period_seconds

Gets the grace_period_seconds of this V1DeleteOptions. 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.

Returns:The grace_period_seconds of this V1DeleteOptions.
Return type:int
kind

Gets the kind of this V1DeleteOptions. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1DeleteOptions.
Return type:str
orphan_dependents

Gets the orphan_dependents of this V1DeleteOptions. Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the “orphan” finalizer will be added to/removed from the object’s finalizers list. Either this field or PropagationPolicy may be set, but not both.

Returns:The orphan_dependents of this V1DeleteOptions.
Return type:bool
preconditions

Gets the preconditions of this V1DeleteOptions. Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned.

Returns:The preconditions of this V1DeleteOptions.
Return type:V1Preconditions
propagation_policy

Gets the propagation_policy of this V1DeleteOptions. Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: ‘Orphan’ - orphan the dependents; ‘Background’ - allow the garbage collector to delete the dependents in the background; ‘Foreground’ - a cascading policy that deletes all dependents in the foreground.

Returns:The propagation_policy of this V1DeleteOptions.
Return type:str
swagger_types = {'api_version': 'str', 'dry_run': 'list[str]', 'grace_period_seconds': 'int', 'kind': 'str', 'orphan_dependents': 'bool', 'preconditions': 'V1Preconditions', 'propagation_policy': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_downward_api_volume_file module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_downward_api_volume_file.V1DownwardAPIVolumeFile(field_ref=None, mode=None, path=None, resource_field_ref=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'field_ref': 'fieldRef', 'mode': 'mode', 'path': 'path', 'resource_field_ref': 'resourceFieldRef'}
field_ref

Gets the field_ref of this V1DownwardAPIVolumeFile. Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.

Returns:The field_ref of this V1DownwardAPIVolumeFile.
Return type:V1ObjectFieldSelector
mode

Gets the mode of this V1DownwardAPIVolumeFile. Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.

Returns:The mode of this V1DownwardAPIVolumeFile.
Return type:int
path

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 ‘..’

Returns:The path of this V1DownwardAPIVolumeFile.
Return type:str
resource_field_ref

Gets the resource_field_ref of this V1DownwardAPIVolumeFile. Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.

Returns:The resource_field_ref of this V1DownwardAPIVolumeFile.
Return type:V1ResourceFieldSelector
swagger_types = {'field_ref': 'V1ObjectFieldSelector', 'mode': 'int', 'path': 'str', 'resource_field_ref': 'V1ResourceFieldSelector'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_downward_api_volume_source module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_downward_api_volume_source.V1DownwardAPIVolumeSource(default_mode=None, items=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'default_mode': 'defaultMode', 'items': 'items'}
default_mode

Gets the default_mode of this V1DownwardAPIVolumeSource. Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.

Returns:The default_mode of this V1DownwardAPIVolumeSource.
Return type:int
items

Gets the items of this V1DownwardAPIVolumeSource. Items is a list of downward API volume file

Returns:The items of this V1DownwardAPIVolumeSource.
Return type:list[V1DownwardAPIVolumeFile]
swagger_types = {'default_mode': 'int', 'items': 'list[V1DownwardAPIVolumeFile]'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_empty_dir_volume_source module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_empty_dir_volume_source.V1EmptyDirVolumeSource(medium=None, size_limit=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'medium': 'medium', 'size_limit': 'sizeLimit'}
medium

Gets the medium of this V1EmptyDirVolumeSource. 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: https://kubernetes.io/docs/concepts/storage/volumes#emptydir

Returns:The medium of this V1EmptyDirVolumeSource.
Return type:str
size_limit

Gets the size_limit of this V1EmptyDirVolumeSource. Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir

Returns:The size_limit of this V1EmptyDirVolumeSource.
Return type:str
swagger_types = {'medium': 'str', 'size_limit': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_endpoint_address module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_endpoint_address.V1EndpointAddress(hostname=None, ip=None, node_name=None, target_ref=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'hostname': 'hostname', 'ip': 'ip', 'node_name': 'nodeName', 'target_ref': 'targetRef'}
hostname

Gets the hostname of this V1EndpointAddress. The Hostname of this endpoint

Returns:The hostname of this V1EndpointAddress.
Return type:str
ip

Gets the ip of this V1EndpointAddress. 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). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready.

Returns:The ip of this V1EndpointAddress.
Return type:str
node_name

Gets the node_name of this V1EndpointAddress. Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.

Returns:The node_name of this V1EndpointAddress.
Return type:str
swagger_types = {'hostname': 'str', 'ip': 'str', 'node_name': 'str', 'target_ref': 'V1ObjectReference'}
target_ref

Gets the target_ref of this V1EndpointAddress. Reference to object providing the endpoint.

Returns:The target_ref of this V1EndpointAddress.
Return type:V1ObjectReference
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_endpoint_port module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_endpoint_port.V1EndpointPort(name=None, port=None, protocol=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'name': 'name', 'port': 'port', 'protocol': 'protocol'}
name

Gets the name of this V1EndpointPort. The name of this port (corresponds to ServicePort.Name). Must be a DNS_LABEL. Optional only if one port is defined.

Returns:The name of this V1EndpointPort.
Return type:str
port

Gets the port of this V1EndpointPort. The port number of the endpoint.

Returns:The port of this V1EndpointPort.
Return type:int
protocol

Gets the protocol of this V1EndpointPort. The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.

Returns:The protocol of this V1EndpointPort.
Return type:str
swagger_types = {'name': 'str', 'port': 'int', 'protocol': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_endpoint_subset module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_endpoint_subset.V1EndpointSubset(addresses=None, not_ready_addresses=None, ports=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

addresses

Gets the addresses of this V1EndpointSubset. 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.

Returns:The addresses of this V1EndpointSubset.
Return type:list[V1EndpointAddress]
attribute_map = {'addresses': 'addresses', 'not_ready_addresses': 'notReadyAddresses', 'ports': 'ports'}
not_ready_addresses

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.

Returns:The not_ready_addresses of this V1EndpointSubset.
Return type:list[V1EndpointAddress]
ports

Gets the ports of this V1EndpointSubset. Port numbers available on the related IP addresses.

Returns:The ports of this V1EndpointSubset.
Return type:list[V1EndpointPort]
swagger_types = {'addresses': 'list[V1EndpointAddress]', 'not_ready_addresses': 'list[V1EndpointAddress]', 'ports': 'list[V1EndpointPort]'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_endpoints module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_endpoints.V1Endpoints(api_version=None, kind=None, metadata=None, subsets=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1Endpoints. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1Endpoints.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'kind': 'kind', 'metadata': 'metadata', 'subsets': 'subsets'}
kind

Gets the kind of this V1Endpoints. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1Endpoints.
Return type:str
metadata

Gets the metadata of this V1Endpoints. Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

Returns:The metadata of this V1Endpoints.
Return type:V1ObjectMeta
subsets

Gets the subsets of this V1Endpoints. 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.

Returns:The subsets of this V1Endpoints.
Return type:list[V1EndpointSubset]
swagger_types = {'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'subsets': 'list[V1EndpointSubset]'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_endpoints_list module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_endpoints_list.V1EndpointsList(api_version=None, items=None, kind=None, metadata=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1EndpointsList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1EndpointsList.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'items': 'items', 'kind': 'kind', 'metadata': 'metadata'}
items

Gets the items of this V1EndpointsList. List of endpoints.

Returns:The items of this V1EndpointsList.
Return type:list[V1Endpoints]
kind

Gets the kind of this V1EndpointsList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1EndpointsList.
Return type:str
metadata

Gets the metadata of this V1EndpointsList. Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The metadata of this V1EndpointsList.
Return type:V1ListMeta
swagger_types = {'api_version': 'str', 'items': 'list[V1Endpoints]', 'kind': 'str', 'metadata': 'V1ListMeta'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_env_var module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_env_var.V1EnvVar(name=None, value=None, value_from=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'name': 'name', 'value': 'value', 'value_from': 'valueFrom'}
name

Gets the name of this V1EnvVar. Name of the environment variable. Must be a C_IDENTIFIER.

Returns:The name of this V1EnvVar.
Return type:str
swagger_types = {'name': 'str', 'value': 'str', 'value_from': 'V1EnvVarSource'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

value

Gets the value of this V1EnvVar. 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 “”.

Returns:The value of this V1EnvVar.
Return type:str
value_from

Gets the value_from of this V1EnvVar. Source for the environment variable’s value. Cannot be used if value is not empty.

Returns:The value_from of this V1EnvVar.
Return type:V1EnvVarSource

kubernetes.client.models.v1_env_var_source module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_env_var_source.V1EnvVarSource(config_map_key_ref=None, field_ref=None, resource_field_ref=None, secret_key_ref=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'config_map_key_ref': 'configMapKeyRef', 'field_ref': 'fieldRef', 'resource_field_ref': 'resourceFieldRef', 'secret_key_ref': 'secretKeyRef'}
config_map_key_ref

Gets the config_map_key_ref of this V1EnvVarSource. Selects a key of a ConfigMap.

Returns:The config_map_key_ref of this V1EnvVarSource.
Return type:V1ConfigMapKeySelector
field_ref

Gets the field_ref of this V1EnvVarSource. Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP.

Returns:The field_ref of this V1EnvVarSource.
Return type:V1ObjectFieldSelector
resource_field_ref

Gets the resource_field_ref of this V1EnvVarSource. Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.

Returns:The resource_field_ref of this V1EnvVarSource.
Return type:V1ResourceFieldSelector
secret_key_ref

Gets the secret_key_ref of this V1EnvVarSource. Selects a key of a secret in the pod’s namespace

Returns:The secret_key_ref of this V1EnvVarSource.
Return type:V1SecretKeySelector
swagger_types = {'config_map_key_ref': 'V1ConfigMapKeySelector', 'field_ref': 'V1ObjectFieldSelector', 'resource_field_ref': 'V1ResourceFieldSelector', 'secret_key_ref': 'V1SecretKeySelector'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_event module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_event.V1Event(action=None, api_version=None, count=None, event_time=None, first_timestamp=None, involved_object=None, kind=None, last_timestamp=None, message=None, metadata=None, reason=None, related=None, reporting_component=None, reporting_instance=None, series=None, source=None, type=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

action

Gets the action of this V1Event. What action was taken/failed regarding to the Regarding object.

Returns:The action of this V1Event.
Return type:str
api_version

Gets the api_version of this V1Event. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1Event.
Return type:str
attribute_map = {'action': 'action', 'api_version': 'apiVersion', 'count': 'count', 'event_time': 'eventTime', 'first_timestamp': 'firstTimestamp', 'involved_object': 'involvedObject', 'kind': 'kind', 'last_timestamp': 'lastTimestamp', 'message': 'message', 'metadata': 'metadata', 'reason': 'reason', 'related': 'related', 'reporting_component': 'reportingComponent', 'reporting_instance': 'reportingInstance', 'series': 'series', 'source': 'source', 'type': 'type'}
count

Gets the count of this V1Event. The number of times this event has occurred.

Returns:The count of this V1Event.
Return type:int
event_time

Gets the event_time of this V1Event. Time when this Event was first observed.

Returns:The event_time of this V1Event.
Return type:datetime
first_timestamp

Gets the first_timestamp of this V1Event. The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)

Returns:The first_timestamp of this V1Event.
Return type:datetime
involved_object

Gets the involved_object of this V1Event. The object that this event is about.

Returns:The involved_object of this V1Event.
Return type:V1ObjectReference
kind

Gets the kind of this V1Event. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1Event.
Return type:str
last_timestamp

Gets the last_timestamp of this V1Event. The time at which the most recent occurrence of this event was recorded.

Returns:The last_timestamp of this V1Event.
Return type:datetime
message

Gets the message of this V1Event. A human-readable description of the status of this operation.

Returns:The message of this V1Event.
Return type:str
metadata

Gets the metadata of this V1Event. Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

Returns:The metadata of this V1Event.
Return type:V1ObjectMeta
reason

Gets the reason of this V1Event. This should be a short, machine understandable string that gives the reason for the transition into the object’s current status.

Returns:The reason of this V1Event.
Return type:str
related

Gets the related of this V1Event. Optional secondary object for more complex actions.

Returns:The related of this V1Event.
Return type:V1ObjectReference
reporting_component

Gets the reporting_component of this V1Event. Name of the controller that emitted this Event, e.g. kubernetes.io/kubelet.

Returns:The reporting_component of this V1Event.
Return type:str
reporting_instance

Gets the reporting_instance of this V1Event. ID of the controller instance, e.g. kubelet-xyzf.

Returns:The reporting_instance of this V1Event.
Return type:str
series

Gets the series of this V1Event. Data about the Event series this event represents or nil if it’s a singleton Event.

Returns:The series of this V1Event.
Return type:V1EventSeries
source

Gets the source of this V1Event. The component reporting this event. Should be a short machine understandable string.

Returns:The source of this V1Event.
Return type:V1EventSource
swagger_types = {'action': 'str', 'api_version': 'str', 'count': 'int', 'event_time': 'datetime', 'first_timestamp': 'datetime', 'involved_object': 'V1ObjectReference', 'kind': 'str', 'last_timestamp': 'datetime', 'message': 'str', 'metadata': 'V1ObjectMeta', 'reason': 'str', 'related': 'V1ObjectReference', 'reporting_component': 'str', 'reporting_instance': 'str', 'series': 'V1EventSeries', 'source': 'V1EventSource', 'type': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

type

Gets the type of this V1Event. Type of this event (Normal, Warning), new types could be added in the future

Returns:The type of this V1Event.
Return type:str

kubernetes.client.models.v1_event_list module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_event_list.V1EventList(api_version=None, items=None, kind=None, metadata=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1EventList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1EventList.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'items': 'items', 'kind': 'kind', 'metadata': 'metadata'}
items

Gets the items of this V1EventList. List of events

Returns:The items of this V1EventList.
Return type:list[V1Event]
kind

Gets the kind of this V1EventList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1EventList.
Return type:str
metadata

Gets the metadata of this V1EventList. Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The metadata of this V1EventList.
Return type:V1ListMeta
swagger_types = {'api_version': 'str', 'items': 'list[V1Event]', 'kind': 'str', 'metadata': 'V1ListMeta'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_event_source module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_event_source.V1EventSource(component=None, host=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'component': 'component', 'host': 'host'}
component

Gets the component of this V1EventSource. Component from which the event is generated.

Returns:The component of this V1EventSource.
Return type:str
host

Gets the host of this V1EventSource. Node name on which the event is generated.

Returns:The host of this V1EventSource.
Return type:str
swagger_types = {'component': 'str', 'host': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_exec_action module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_exec_action.V1ExecAction(command=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'command': 'command'}
command

Gets the command of this V1ExecAction. 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.

Returns:The command of this V1ExecAction.
Return type:list[str]
swagger_types = {'command': 'list[str]'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_fc_volume_source module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_fc_volume_source.V1FCVolumeSource(fs_type=None, lun=None, read_only=None, target_ww_ns=None, wwids=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'fs_type': 'fsType', 'lun': 'lun', 'read_only': 'readOnly', 'target_ww_ns': 'targetWWNs', 'wwids': 'wwids'}
fs_type

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.

Returns:The fs_type of this V1FCVolumeSource.
Return type:str
lun

Gets the lun of this V1FCVolumeSource. Optional: FC target lun number

Returns:The lun of this V1FCVolumeSource.
Return type:int
read_only

Gets the read_only of this V1FCVolumeSource. Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.

Returns:The read_only of this V1FCVolumeSource.
Return type:bool
swagger_types = {'fs_type': 'str', 'lun': 'int', 'read_only': 'bool', 'target_ww_ns': 'list[str]', 'wwids': 'list[str]'}
target_ww_ns

Gets the target_ww_ns of this V1FCVolumeSource. Optional: FC target worldwide names (WWNs)

Returns:The target_ww_ns of this V1FCVolumeSource.
Return type:list[str]
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

wwids

Gets the wwids of this V1FCVolumeSource. Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.

Returns:The wwids of this V1FCVolumeSource.
Return type:list[str]

kubernetes.client.models.v1_flex_volume_source module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_flex_volume_source.V1FlexVolumeSource(driver=None, fs_type=None, options=None, read_only=None, secret_ref=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'driver': 'driver', 'fs_type': 'fsType', 'options': 'options', 'read_only': 'readOnly', 'secret_ref': 'secretRef'}
driver

Gets the driver of this V1FlexVolumeSource. Driver is the name of the driver to use for this volume.

Returns:The driver of this V1FlexVolumeSource.
Return type:str
fs_type

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.

Returns:The fs_type of this V1FlexVolumeSource.
Return type:str
options

Gets the options of this V1FlexVolumeSource. Optional: Extra command options if any.

Returns:The options of this V1FlexVolumeSource.
Return type:dict(str, str)
read_only

Gets the read_only of this V1FlexVolumeSource. Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.

Returns:The read_only of this V1FlexVolumeSource.
Return type:bool
secret_ref

Gets the secret_ref of this V1FlexVolumeSource. Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts.

Returns:The secret_ref of this V1FlexVolumeSource.
Return type:V1LocalObjectReference
swagger_types = {'driver': 'str', 'fs_type': 'str', 'options': 'dict(str, str)', 'read_only': 'bool', 'secret_ref': 'V1LocalObjectReference'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_flocker_volume_source module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_flocker_volume_source.V1FlockerVolumeSource(dataset_name=None, dataset_uuid=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'dataset_name': 'datasetName', 'dataset_uuid': 'datasetUUID'}
dataset_name

Gets the dataset_name of this V1FlockerVolumeSource. Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated

Returns:The dataset_name of this V1FlockerVolumeSource.
Return type:str
dataset_uuid

Gets the dataset_uuid of this V1FlockerVolumeSource. UUID of the dataset. This is unique identifier of a Flocker dataset

Returns:The dataset_uuid of this V1FlockerVolumeSource.
Return type:str
swagger_types = {'dataset_name': 'str', 'dataset_uuid': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_gce_persistent_disk_volume_source module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_gce_persistent_disk_volume_source.V1GCEPersistentDiskVolumeSource(fs_type=None, partition=None, pd_name=None, read_only=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'fs_type': 'fsType', 'partition': 'partition', 'pd_name': 'pdName', 'read_only': 'readOnly'}
fs_type

Gets the fs_type of this V1GCEPersistentDiskVolumeSource. Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: “ext4”, “xfs”, “ntfs”. Implicitly inferred to be “ext4” if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk

Returns:The fs_type of this V1GCEPersistentDiskVolumeSource.
Return type:str
partition

Gets the partition of this V1GCEPersistentDiskVolumeSource. The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as “1”. Similarly, the volume partition for /dev/sda is “0” (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk

Returns:The partition of this V1GCEPersistentDiskVolumeSource.
Return type:int
pd_name

Gets the pd_name of this V1GCEPersistentDiskVolumeSource. Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk

Returns:The pd_name of this V1GCEPersistentDiskVolumeSource.
Return type:str
read_only

Gets the read_only of this V1GCEPersistentDiskVolumeSource. ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk

Returns:The read_only of this V1GCEPersistentDiskVolumeSource.
Return type:bool
swagger_types = {'fs_type': 'str', 'partition': 'int', 'pd_name': 'str', 'read_only': 'bool'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_git_repo_volume_source module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_git_repo_volume_source.V1GitRepoVolumeSource(directory=None, repository=None, revision=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'directory': 'directory', 'repository': 'repository', 'revision': 'revision'}
directory

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.

Returns:The directory of this V1GitRepoVolumeSource.
Return type:str
repository

Gets the repository of this V1GitRepoVolumeSource. Repository URL

Returns:The repository of this V1GitRepoVolumeSource.
Return type:str
revision

Gets the revision of this V1GitRepoVolumeSource. Commit hash for the specified revision.

Returns:The revision of this V1GitRepoVolumeSource.
Return type:str
swagger_types = {'directory': 'str', 'repository': 'str', 'revision': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_glusterfs_volume_source module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_glusterfs_volume_source.V1GlusterfsVolumeSource(endpoints=None, path=None, read_only=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'endpoints': 'endpoints', 'path': 'path', 'read_only': 'readOnly'}
endpoints

Gets the endpoints of this V1GlusterfsVolumeSource. EndpointsName is the endpoint name that details Glusterfs topology. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod

Returns:The endpoints of this V1GlusterfsVolumeSource.
Return type:str
path

Gets the path of this V1GlusterfsVolumeSource. Path is the Glusterfs volume path. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod

Returns:The path of this V1GlusterfsVolumeSource.
Return type:str
read_only

Gets the read_only of this V1GlusterfsVolumeSource. ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod

Returns:The read_only of this V1GlusterfsVolumeSource.
Return type:bool
swagger_types = {'endpoints': 'str', 'path': 'str', 'read_only': 'bool'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_handler module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_handler.V1Handler(_exec=None, http_get=None, tcp_socket=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'_exec': 'exec', 'http_get': 'httpGet', 'tcp_socket': 'tcpSocket'}
http_get

Gets the http_get of this V1Handler. HTTPGet specifies the http request to perform.

Returns:The http_get of this V1Handler.
Return type:V1HTTPGetAction
swagger_types = {'_exec': 'V1ExecAction', 'http_get': 'V1HTTPGetAction', 'tcp_socket': 'V1TCPSocketAction'}
tcp_socket

Gets the tcp_socket of this V1Handler. TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported

Returns:The tcp_socket of this V1Handler.
Return type:V1TCPSocketAction
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_horizontal_pod_autoscaler module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_horizontal_pod_autoscaler.V1HorizontalPodAutoscaler(api_version=None, kind=None, metadata=None, spec=None, status=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1HorizontalPodAutoscaler. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1HorizontalPodAutoscaler.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'kind': 'kind', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status'}
kind

Gets the kind of this V1HorizontalPodAutoscaler. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1HorizontalPodAutoscaler.
Return type:str
metadata

Gets the metadata of this V1HorizontalPodAutoscaler. Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

Returns:The metadata of this V1HorizontalPodAutoscaler.
Return type:V1ObjectMeta
spec

Gets the spec of this V1HorizontalPodAutoscaler. behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status.

Returns:The spec of this V1HorizontalPodAutoscaler.
Return type:V1HorizontalPodAutoscalerSpec
status

Gets the status of this V1HorizontalPodAutoscaler. current information about the autoscaler.

Returns:The status of this V1HorizontalPodAutoscaler.
Return type:V1HorizontalPodAutoscalerStatus
swagger_types = {'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1HorizontalPodAutoscalerSpec', 'status': 'V1HorizontalPodAutoscalerStatus'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_horizontal_pod_autoscaler_list module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_horizontal_pod_autoscaler_list.V1HorizontalPodAutoscalerList(api_version=None, items=None, kind=None, metadata=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1HorizontalPodAutoscalerList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1HorizontalPodAutoscalerList.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'items': 'items', 'kind': 'kind', 'metadata': 'metadata'}
items

Gets the items of this V1HorizontalPodAutoscalerList. list of horizontal pod autoscaler objects.

Returns:The items of this V1HorizontalPodAutoscalerList.
Return type:list[V1HorizontalPodAutoscaler]
kind

Gets the kind of this V1HorizontalPodAutoscalerList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1HorizontalPodAutoscalerList.
Return type:str
metadata

Gets the metadata of this V1HorizontalPodAutoscalerList. Standard list metadata.

Returns:The metadata of this V1HorizontalPodAutoscalerList.
Return type:V1ListMeta
swagger_types = {'api_version': 'str', 'items': 'list[V1HorizontalPodAutoscaler]', 'kind': 'str', 'metadata': 'V1ListMeta'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_horizontal_pod_autoscaler_spec module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_horizontal_pod_autoscaler_spec.V1HorizontalPodAutoscalerSpec(max_replicas=None, min_replicas=None, scale_target_ref=None, target_cpu_utilization_percentage=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'max_replicas': 'maxReplicas', 'min_replicas': 'minReplicas', 'scale_target_ref': 'scaleTargetRef', 'target_cpu_utilization_percentage': 'targetCPUUtilizationPercentage'}
max_replicas

Gets the max_replicas of this V1HorizontalPodAutoscalerSpec. upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.

Returns:The max_replicas of this V1HorizontalPodAutoscalerSpec.
Return type:int
min_replicas

Gets the min_replicas of this V1HorizontalPodAutoscalerSpec. lower limit for the number of pods that can be set by the autoscaler, default 1.

Returns:The min_replicas of this V1HorizontalPodAutoscalerSpec.
Return type:int
scale_target_ref

Gets the scale_target_ref of this V1HorizontalPodAutoscalerSpec. reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource.

Returns:The scale_target_ref of this V1HorizontalPodAutoscalerSpec.
Return type:V1CrossVersionObjectReference
swagger_types = {'max_replicas': 'int', 'min_replicas': 'int', 'scale_target_ref': 'V1CrossVersionObjectReference', 'target_cpu_utilization_percentage': 'int'}
target_cpu_utilization_percentage

Gets the target_cpu_utilization_percentage of this V1HorizontalPodAutoscalerSpec. target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used.

Returns:The target_cpu_utilization_percentage of this V1HorizontalPodAutoscalerSpec.
Return type:int
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_horizontal_pod_autoscaler_status module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_horizontal_pod_autoscaler_status.V1HorizontalPodAutoscalerStatus(current_cpu_utilization_percentage=None, current_replicas=None, desired_replicas=None, last_scale_time=None, observed_generation=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'current_cpu_utilization_percentage': 'currentCPUUtilizationPercentage', 'current_replicas': 'currentReplicas', 'desired_replicas': 'desiredReplicas', 'last_scale_time': 'lastScaleTime', 'observed_generation': 'observedGeneration'}
current_cpu_utilization_percentage

Gets the current_cpu_utilization_percentage of this V1HorizontalPodAutoscalerStatus. current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU.

Returns:The current_cpu_utilization_percentage of this V1HorizontalPodAutoscalerStatus.
Return type:int
current_replicas

Gets the current_replicas of this V1HorizontalPodAutoscalerStatus. current number of replicas of pods managed by this autoscaler.

Returns:The current_replicas of this V1HorizontalPodAutoscalerStatus.
Return type:int
desired_replicas

Gets the desired_replicas of this V1HorizontalPodAutoscalerStatus. desired number of replicas of pods managed by this autoscaler.

Returns:The desired_replicas of this V1HorizontalPodAutoscalerStatus.
Return type:int
last_scale_time

Gets the last_scale_time of this V1HorizontalPodAutoscalerStatus. last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed.

Returns:The last_scale_time of this V1HorizontalPodAutoscalerStatus.
Return type:datetime
observed_generation

Gets the observed_generation of this V1HorizontalPodAutoscalerStatus. most recent generation observed by this autoscaler.

Returns:The observed_generation of this V1HorizontalPodAutoscalerStatus.
Return type:int
swagger_types = {'current_cpu_utilization_percentage': 'int', 'current_replicas': 'int', 'desired_replicas': 'int', 'last_scale_time': 'datetime', 'observed_generation': 'int'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_host_path_volume_source module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_host_path_volume_source.V1HostPathVolumeSource(path=None, type=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'path': 'path', 'type': 'type'}
path

Gets the path of this V1HostPathVolumeSource. Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath

Returns:The path of this V1HostPathVolumeSource.
Return type:str
swagger_types = {'path': 'str', 'type': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

type

Gets the type of this V1HostPathVolumeSource. Type for HostPath Volume Defaults to “” More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath

Returns:The type of this V1HostPathVolumeSource.
Return type:str

kubernetes.client.models.v1_http_get_action module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_http_get_action.V1HTTPGetAction(host=None, http_headers=None, path=None, port=None, scheme=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'host': 'host', 'http_headers': 'httpHeaders', 'path': 'path', 'port': 'port', 'scheme': 'scheme'}
host

Gets the host of this V1HTTPGetAction. Host name to connect to, defaults to the pod IP. You probably want to set “Host” in httpHeaders instead.

Returns:The host of this V1HTTPGetAction.
Return type:str
http_headers

Gets the http_headers of this V1HTTPGetAction. Custom headers to set in the request. HTTP allows repeated headers.

Returns:The http_headers of this V1HTTPGetAction.
Return type:list[V1HTTPHeader]
path

Gets the path of this V1HTTPGetAction. Path to access on the HTTP server.

Returns:The path of this V1HTTPGetAction.
Return type:str
port

Gets the port of this V1HTTPGetAction. 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.

Returns:The port of this V1HTTPGetAction.
Return type:object
scheme

Gets the scheme of this V1HTTPGetAction. Scheme to use for connecting to the host. Defaults to HTTP.

Returns:The scheme of this V1HTTPGetAction.
Return type:str
swagger_types = {'host': 'str', 'http_headers': 'list[V1HTTPHeader]', 'path': 'str', 'port': 'object', 'scheme': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_http_header module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_http_header.V1HTTPHeader(name=None, value=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'name': 'name', 'value': 'value'}
name

Gets the name of this V1HTTPHeader. The header field name

Returns:The name of this V1HTTPHeader.
Return type:str
swagger_types = {'name': 'str', 'value': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

value

Gets the value of this V1HTTPHeader. The header field value

Returns:The value of this V1HTTPHeader.
Return type:str

kubernetes.client.models.v1_iscsi_volume_source module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_iscsi_volume_source.V1ISCSIVolumeSource(chap_auth_discovery=None, chap_auth_session=None, fs_type=None, initiator_name=None, iqn=None, iscsi_interface=None, lun=None, portals=None, read_only=None, secret_ref=None, target_portal=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'chap_auth_discovery': 'chapAuthDiscovery', 'chap_auth_session': 'chapAuthSession', 'fs_type': 'fsType', 'initiator_name': 'initiatorName', 'iqn': 'iqn', 'iscsi_interface': 'iscsiInterface', 'lun': 'lun', 'portals': 'portals', 'read_only': 'readOnly', 'secret_ref': 'secretRef', 'target_portal': 'targetPortal'}
chap_auth_discovery

Gets the chap_auth_discovery of this V1ISCSIVolumeSource. whether support iSCSI Discovery CHAP authentication

Returns:The chap_auth_discovery of this V1ISCSIVolumeSource.
Return type:bool
chap_auth_session

Gets the chap_auth_session of this V1ISCSIVolumeSource. whether support iSCSI Session CHAP authentication

Returns:The chap_auth_session of this V1ISCSIVolumeSource.
Return type:bool
fs_type

Gets the fs_type of this V1ISCSIVolumeSource. Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: “ext4”, “xfs”, “ntfs”. Implicitly inferred to be “ext4” if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi

Returns:The fs_type of this V1ISCSIVolumeSource.
Return type:str
initiator_name

Gets the initiator_name of this V1ISCSIVolumeSource. Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface <target portal>:<volume name> will be created for the connection.

Returns:The initiator_name of this V1ISCSIVolumeSource.
Return type:str
iqn

Gets the iqn of this V1ISCSIVolumeSource. Target iSCSI Qualified Name.

Returns:The iqn of this V1ISCSIVolumeSource.
Return type:str
iscsi_interface

Gets the iscsi_interface of this V1ISCSIVolumeSource. iSCSI Interface Name that uses an iSCSI transport. Defaults to ‘default’ (tcp).

Returns:The iscsi_interface of this V1ISCSIVolumeSource.
Return type:str
lun

Gets the lun of this V1ISCSIVolumeSource. iSCSI Target Lun number.

Returns:The lun of this V1ISCSIVolumeSource.
Return type:int
portals

Gets the portals of this V1ISCSIVolumeSource. iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).

Returns:The portals of this V1ISCSIVolumeSource.
Return type:list[str]
read_only

Gets the read_only of this V1ISCSIVolumeSource. ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.

Returns:The read_only of this V1ISCSIVolumeSource.
Return type:bool
secret_ref

Gets the secret_ref of this V1ISCSIVolumeSource. CHAP Secret for iSCSI target and initiator authentication

Returns:The secret_ref of this V1ISCSIVolumeSource.
Return type:V1LocalObjectReference
swagger_types = {'chap_auth_discovery': 'bool', 'chap_auth_session': 'bool', 'fs_type': 'str', 'initiator_name': 'str', 'iqn': 'str', 'iscsi_interface': 'str', 'lun': 'int', 'portals': 'list[str]', 'read_only': 'bool', 'secret_ref': 'V1LocalObjectReference', 'target_portal': 'str'}
target_portal

Gets the target_portal of this V1ISCSIVolumeSource. 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).

Returns:The target_portal of this V1ISCSIVolumeSource.
Return type:str
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_job module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_job.V1Job(api_version=None, kind=None, metadata=None, spec=None, status=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1Job. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1Job.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'kind': 'kind', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status'}
kind

Gets the kind of this V1Job. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1Job.
Return type:str
metadata

Gets the metadata of this V1Job. Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

Returns:The metadata of this V1Job.
Return type:V1ObjectMeta
spec

Gets the spec of this V1Job. Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

Returns:The spec of this V1Job.
Return type:V1JobSpec
status

Gets the status of this V1Job. Current status of a job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

Returns:The status of this V1Job.
Return type:V1JobStatus
swagger_types = {'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1JobSpec', 'status': 'V1JobStatus'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_job_condition module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_job_condition.V1JobCondition(last_probe_time=None, last_transition_time=None, message=None, reason=None, status=None, type=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'last_probe_time': 'lastProbeTime', 'last_transition_time': 'lastTransitionTime', 'message': 'message', 'reason': 'reason', 'status': 'status', 'type': 'type'}
last_probe_time

Gets the last_probe_time of this V1JobCondition. Last time the condition was checked.

Returns:The last_probe_time of this V1JobCondition.
Return type:datetime
last_transition_time

Gets the last_transition_time of this V1JobCondition. Last time the condition transit from one status to another.

Returns:The last_transition_time of this V1JobCondition.
Return type:datetime
message

Gets the message of this V1JobCondition. Human readable message indicating details about last transition.

Returns:The message of this V1JobCondition.
Return type:str
reason

Gets the reason of this V1JobCondition. (brief) reason for the condition’s last transition.

Returns:The reason of this V1JobCondition.
Return type:str
status

Gets the status of this V1JobCondition. Status of the condition, one of True, False, Unknown.

Returns:The status of this V1JobCondition.
Return type:str
swagger_types = {'last_probe_time': 'datetime', 'last_transition_time': 'datetime', 'message': 'str', 'reason': 'str', 'status': 'str', 'type': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

type

Gets the type of this V1JobCondition. Type of job condition, Complete or Failed.

Returns:The type of this V1JobCondition.
Return type:str

kubernetes.client.models.v1_job_list module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_job_list.V1JobList(api_version=None, items=None, kind=None, metadata=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1JobList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1JobList.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'items': 'items', 'kind': 'kind', 'metadata': 'metadata'}
items

Gets the items of this V1JobList. items is the list of Jobs.

Returns:The items of this V1JobList.
Return type:list[V1Job]
kind

Gets the kind of this V1JobList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1JobList.
Return type:str
metadata

Gets the metadata of this V1JobList. Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

Returns:The metadata of this V1JobList.
Return type:V1ListMeta
swagger_types = {'api_version': 'str', 'items': 'list[V1Job]', 'kind': 'str', 'metadata': 'V1ListMeta'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_job_spec module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_job_spec.V1JobSpec(active_deadline_seconds=None, backoff_limit=None, completions=None, manual_selector=None, parallelism=None, selector=None, template=None, ttl_seconds_after_finished=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

active_deadline_seconds

Gets the active_deadline_seconds of this V1JobSpec. Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer

Returns:The active_deadline_seconds of this V1JobSpec.
Return type:int
attribute_map = {'active_deadline_seconds': 'activeDeadlineSeconds', 'backoff_limit': 'backoffLimit', 'completions': 'completions', 'manual_selector': 'manualSelector', 'parallelism': 'parallelism', 'selector': 'selector', 'template': 'template', 'ttl_seconds_after_finished': 'ttlSecondsAfterFinished'}
backoff_limit

Gets the backoff_limit of this V1JobSpec. Specifies the number of retries before marking this job failed. Defaults to 6

Returns:The backoff_limit of this V1JobSpec.
Return type:int
completions

Gets the completions of this V1JobSpec. Specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/

Returns:The completions of this V1JobSpec.
Return type:int
manual_selector

Gets the manual_selector of this V1JobSpec. manualSelector controls generation of pod labels and pod selectors. Leave manualSelector unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see manualSelector=true in jobs that were created with the old extensions/v1beta1 API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector

Returns:The manual_selector of this V1JobSpec.
Return type:bool
parallelism

Gets the parallelism of this V1JobSpec. Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/

Returns:The parallelism of this V1JobSpec.
Return type:int
selector

Gets the selector of this V1JobSpec. A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors

Returns:The selector of this V1JobSpec.
Return type:V1LabelSelector
swagger_types = {'active_deadline_seconds': 'int', 'backoff_limit': 'int', 'completions': 'int', 'manual_selector': 'bool', 'parallelism': 'int', 'selector': 'V1LabelSelector', 'template': 'V1PodTemplateSpec', 'ttl_seconds_after_finished': 'int'}
template

Gets the template of this V1JobSpec. Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/

Returns:The template of this V1JobSpec.
Return type:V1PodTemplateSpec
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

ttl_seconds_after_finished

Gets the ttl_seconds_after_finished of this V1JobSpec. ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won’t be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature.

Returns:The ttl_seconds_after_finished of this V1JobSpec.
Return type:int

kubernetes.client.models.v1_job_status module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_job_status.V1JobStatus(active=None, completion_time=None, conditions=None, failed=None, start_time=None, succeeded=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

active

Gets the active of this V1JobStatus. The number of actively running pods.

Returns:The active of this V1JobStatus.
Return type:int
attribute_map = {'active': 'active', 'completion_time': 'completionTime', 'conditions': 'conditions', 'failed': 'failed', 'start_time': 'startTime', 'succeeded': 'succeeded'}
completion_time

Gets the completion_time of this V1JobStatus. Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.

Returns:The completion_time of this V1JobStatus.
Return type:datetime
conditions

Gets the conditions of this V1JobStatus. The latest available observations of an object’s current state. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/

Returns:The conditions of this V1JobStatus.
Return type:list[V1JobCondition]
failed

Gets the failed of this V1JobStatus. The number of pods which reached phase Failed.

Returns:The failed of this V1JobStatus.
Return type:int
start_time

Gets the start_time of this V1JobStatus. Represents time when the job was acknowledged by the job controller. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.

Returns:The start_time of this V1JobStatus.
Return type:datetime
succeeded

Gets the succeeded of this V1JobStatus. The number of pods which reached phase Succeeded.

Returns:The succeeded of this V1JobStatus.
Return type:int
swagger_types = {'active': 'int', 'completion_time': 'datetime', 'conditions': 'list[V1JobCondition]', 'failed': 'int', 'start_time': 'datetime', 'succeeded': 'int'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_key_to_path module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_key_to_path.V1KeyToPath(key=None, mode=None, path=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'key': 'key', 'mode': 'mode', 'path': 'path'}
key

Gets the key of this V1KeyToPath. The key to project.

Returns:The key of this V1KeyToPath.
Return type:str
mode

Gets the mode of this V1KeyToPath. Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.

Returns:The mode of this V1KeyToPath.
Return type:int
path

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 ‘..’.

Returns:The path of this V1KeyToPath.
Return type:str
swagger_types = {'key': 'str', 'mode': 'int', 'path': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_lifecycle module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_lifecycle.V1Lifecycle(post_start=None, pre_stop=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'post_start': 'postStart', 'pre_stop': 'preStop'}
post_start

Gets the post_start of this V1Lifecycle. 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: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks

Returns:The post_start of this V1Lifecycle.
Return type:V1Handler
pre_stop

Gets the pre_stop of this V1Lifecycle. 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: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks

Returns:The pre_stop of this V1Lifecycle.
Return type:V1Handler
swagger_types = {'post_start': 'V1Handler', 'pre_stop': 'V1Handler'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_limit_range module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_limit_range.V1LimitRange(api_version=None, kind=None, metadata=None, spec=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1LimitRange. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1LimitRange.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'kind': 'kind', 'metadata': 'metadata', 'spec': 'spec'}
kind

Gets the kind of this V1LimitRange. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1LimitRange.
Return type:str
metadata

Gets the metadata of this V1LimitRange. Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

Returns:The metadata of this V1LimitRange.
Return type:V1ObjectMeta
spec

Gets the spec of this V1LimitRange. Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

Returns:The spec of this V1LimitRange.
Return type:V1LimitRangeSpec
swagger_types = {'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1LimitRangeSpec'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_limit_range_item module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_limit_range_item.V1LimitRangeItem(default=None, default_request=None, max=None, max_limit_request_ratio=None, min=None, type=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'default': 'default', 'default_request': 'defaultRequest', 'max': 'max', 'max_limit_request_ratio': 'maxLimitRequestRatio', 'min': 'min', 'type': 'type'}
default

Gets the default of this V1LimitRangeItem. Default resource requirement limit value by resource name if resource limit is omitted.

Returns:The default of this V1LimitRangeItem.
Return type:dict(str, str)
default_request

Gets the default_request of this V1LimitRangeItem. DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.

Returns:The default_request of this V1LimitRangeItem.
Return type:dict(str, str)
max

Gets the max of this V1LimitRangeItem. Max usage constraints on this kind by resource name.

Returns:The max of this V1LimitRangeItem.
Return type:dict(str, str)
max_limit_request_ratio

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.

Returns:The max_limit_request_ratio of this V1LimitRangeItem.
Return type:dict(str, str)
min

Gets the min of this V1LimitRangeItem. Min usage constraints on this kind by resource name.

Returns:The min of this V1LimitRangeItem.
Return type:dict(str, str)
swagger_types = {'default': 'dict(str, str)', 'default_request': 'dict(str, str)', 'max': 'dict(str, str)', 'max_limit_request_ratio': 'dict(str, str)', 'min': 'dict(str, str)', 'type': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

type

Gets the type of this V1LimitRangeItem. Type of resource that this limit applies to.

Returns:The type of this V1LimitRangeItem.
Return type:str

kubernetes.client.models.v1_limit_range_list module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_limit_range_list.V1LimitRangeList(api_version=None, items=None, kind=None, metadata=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1LimitRangeList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1LimitRangeList.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'items': 'items', 'kind': 'kind', 'metadata': 'metadata'}
items

Gets the items of this V1LimitRangeList. Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/

Returns:The items of this V1LimitRangeList.
Return type:list[V1LimitRange]
kind

Gets the kind of this V1LimitRangeList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1LimitRangeList.
Return type:str
metadata

Gets the metadata of this V1LimitRangeList. Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The metadata of this V1LimitRangeList.
Return type:V1ListMeta
swagger_types = {'api_version': 'str', 'items': 'list[V1LimitRange]', 'kind': 'str', 'metadata': 'V1ListMeta'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_limit_range_spec module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_limit_range_spec.V1LimitRangeSpec(limits=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'limits': 'limits'}
limits

Gets the limits of this V1LimitRangeSpec. Limits is the list of LimitRangeItem objects that are enforced.

Returns:The limits of this V1LimitRangeSpec.
Return type:list[V1LimitRangeItem]
swagger_types = {'limits': 'list[V1LimitRangeItem]'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_load_balancer_ingress module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_load_balancer_ingress.V1LoadBalancerIngress(hostname=None, ip=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'hostname': 'hostname', 'ip': 'ip'}
hostname

Gets the hostname of this V1LoadBalancerIngress. Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)

Returns:The hostname of this V1LoadBalancerIngress.
Return type:str
ip

Gets the ip of this V1LoadBalancerIngress. IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)

Returns:The ip of this V1LoadBalancerIngress.
Return type:str
swagger_types = {'hostname': 'str', 'ip': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_load_balancer_status module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_load_balancer_status.V1LoadBalancerStatus(ingress=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'ingress': 'ingress'}
ingress

Gets the ingress of this V1LoadBalancerStatus. Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points.

Returns:The ingress of this V1LoadBalancerStatus.
Return type:list[V1LoadBalancerIngress]
swagger_types = {'ingress': 'list[V1LoadBalancerIngress]'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_local_object_reference module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_local_object_reference.V1LocalObjectReference(name=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'name': 'name'}
name

Gets the name of this V1LocalObjectReference. Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

Returns:The name of this V1LocalObjectReference.
Return type:str
swagger_types = {'name': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_namespace module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_namespace.V1Namespace(api_version=None, kind=None, metadata=None, spec=None, status=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1Namespace. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1Namespace.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'kind': 'kind', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status'}
kind

Gets the kind of this V1Namespace. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1Namespace.
Return type:str
metadata

Gets the metadata of this V1Namespace. Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

Returns:The metadata of this V1Namespace.
Return type:V1ObjectMeta
spec

Gets the spec of this V1Namespace. Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

Returns:The spec of this V1Namespace.
Return type:V1NamespaceSpec
status

Gets the status of this V1Namespace. Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

Returns:The status of this V1Namespace.
Return type:V1NamespaceStatus
swagger_types = {'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1NamespaceSpec', 'status': 'V1NamespaceStatus'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_namespace_list module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_namespace_list.V1NamespaceList(api_version=None, items=None, kind=None, metadata=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1NamespaceList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1NamespaceList.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'items': 'items', 'kind': 'kind', 'metadata': 'metadata'}
items

Gets the items of this V1NamespaceList. Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/

Returns:The items of this V1NamespaceList.
Return type:list[V1Namespace]
kind

Gets the kind of this V1NamespaceList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1NamespaceList.
Return type:str
metadata

Gets the metadata of this V1NamespaceList. Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The metadata of this V1NamespaceList.
Return type:V1ListMeta
swagger_types = {'api_version': 'str', 'items': 'list[V1Namespace]', 'kind': 'str', 'metadata': 'V1ListMeta'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_namespace_spec module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_namespace_spec.V1NamespaceSpec(finalizers=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'finalizers': 'finalizers'}
finalizers

Gets the finalizers of this V1NamespaceSpec. Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/

Returns:The finalizers of this V1NamespaceSpec.
Return type:list[str]
swagger_types = {'finalizers': 'list[str]'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_namespace_status module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_namespace_status.V1NamespaceStatus(phase=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'phase': 'phase'}
phase

Gets the phase of this V1NamespaceStatus. Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/

Returns:The phase of this V1NamespaceStatus.
Return type:str
swagger_types = {'phase': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_nfs_volume_source module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_nfs_volume_source.V1NFSVolumeSource(path=None, read_only=None, server=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'path': 'path', 'read_only': 'readOnly', 'server': 'server'}
path

Gets the path of this V1NFSVolumeSource. Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs

Returns:The path of this V1NFSVolumeSource.
Return type:str
read_only

Gets the read_only of this V1NFSVolumeSource. ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs

Returns:The read_only of this V1NFSVolumeSource.
Return type:bool
server

Gets the server of this V1NFSVolumeSource. Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs

Returns:The server of this V1NFSVolumeSource.
Return type:str
swagger_types = {'path': 'str', 'read_only': 'bool', 'server': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_node module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_node.V1Node(api_version=None, kind=None, metadata=None, spec=None, status=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1Node. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1Node.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'kind': 'kind', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status'}
kind

Gets the kind of this V1Node. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1Node.
Return type:str
metadata

Gets the metadata of this V1Node. Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

Returns:The metadata of this V1Node.
Return type:V1ObjectMeta
spec

Gets the spec of this V1Node. Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

Returns:The spec of this V1Node.
Return type:V1NodeSpec
status

Gets the status of this V1Node. Most recently observed status of the node. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

Returns:The status of this V1Node.
Return type:V1NodeStatus
swagger_types = {'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1NodeSpec', 'status': 'V1NodeStatus'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_node_address module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_node_address.V1NodeAddress(address=None, type=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

address

Gets the address of this V1NodeAddress. The node address.

Returns:The address of this V1NodeAddress.
Return type:str
attribute_map = {'address': 'address', 'type': 'type'}
swagger_types = {'address': 'str', 'type': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

type

Gets the type of this V1NodeAddress. Node address type, one of Hostname, ExternalIP or InternalIP.

Returns:The type of this V1NodeAddress.
Return type:str

kubernetes.client.models.v1_node_condition module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_node_condition.V1NodeCondition(last_heartbeat_time=None, last_transition_time=None, message=None, reason=None, status=None, type=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'last_heartbeat_time': 'lastHeartbeatTime', 'last_transition_time': 'lastTransitionTime', 'message': 'message', 'reason': 'reason', 'status': 'status', 'type': 'type'}
last_heartbeat_time

Gets the last_heartbeat_time of this V1NodeCondition. Last time we got an update on a given condition.

Returns:The last_heartbeat_time of this V1NodeCondition.
Return type:datetime
last_transition_time

Gets the last_transition_time of this V1NodeCondition. Last time the condition transit from one status to another.

Returns:The last_transition_time of this V1NodeCondition.
Return type:datetime
message

Gets the message of this V1NodeCondition. Human readable message indicating details about last transition.

Returns:The message of this V1NodeCondition.
Return type:str
reason

Gets the reason of this V1NodeCondition. (brief) reason for the condition’s last transition.

Returns:The reason of this V1NodeCondition.
Return type:str
status

Gets the status of this V1NodeCondition. Status of the condition, one of True, False, Unknown.

Returns:The status of this V1NodeCondition.
Return type:str
swagger_types = {'last_heartbeat_time': 'datetime', 'last_transition_time': 'datetime', 'message': 'str', 'reason': 'str', 'status': 'str', 'type': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

type

Gets the type of this V1NodeCondition. Type of node condition.

Returns:The type of this V1NodeCondition.
Return type:str

kubernetes.client.models.v1_node_daemon_endpoints module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_node_daemon_endpoints.V1NodeDaemonEndpoints(kubelet_endpoint=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'kubelet_endpoint': 'kubeletEndpoint'}
kubelet_endpoint

Gets the kubelet_endpoint of this V1NodeDaemonEndpoints. Endpoint on which Kubelet is listening.

Returns:The kubelet_endpoint of this V1NodeDaemonEndpoints.
Return type:V1DaemonEndpoint
swagger_types = {'kubelet_endpoint': 'V1DaemonEndpoint'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_node_list module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_node_list.V1NodeList(api_version=None, items=None, kind=None, metadata=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1NodeList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1NodeList.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'items': 'items', 'kind': 'kind', 'metadata': 'metadata'}
items

Gets the items of this V1NodeList. List of nodes

Returns:The items of this V1NodeList.
Return type:list[V1Node]
kind

Gets the kind of this V1NodeList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1NodeList.
Return type:str
metadata

Gets the metadata of this V1NodeList. Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The metadata of this V1NodeList.
Return type:V1ListMeta
swagger_types = {'api_version': 'str', 'items': 'list[V1Node]', 'kind': 'str', 'metadata': 'V1ListMeta'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_node_spec module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_node_spec.V1NodeSpec(config_source=None, external_id=None, pod_cidr=None, provider_id=None, taints=None, unschedulable=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'config_source': 'configSource', 'external_id': 'externalID', 'pod_cidr': 'podCIDR', 'provider_id': 'providerID', 'taints': 'taints', 'unschedulable': 'unschedulable'}
config_source

Gets the config_source of this V1NodeSpec. If specified, the source to get node configuration from The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field

Returns:The config_source of this V1NodeSpec.
Return type:V1NodeConfigSource
external_id

Gets the external_id of this V1NodeSpec. Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966

Returns:The external_id of this V1NodeSpec.
Return type:str
pod_cidr

Gets the pod_cidr of this V1NodeSpec. PodCIDR represents the pod IP range assigned to the node.

Returns:The pod_cidr of this V1NodeSpec.
Return type:str
provider_id

Gets the provider_id of this V1NodeSpec. ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>

Returns:The provider_id of this V1NodeSpec.
Return type:str
swagger_types = {'config_source': 'V1NodeConfigSource', 'external_id': 'str', 'pod_cidr': 'str', 'provider_id': 'str', 'taints': 'list[V1Taint]', 'unschedulable': 'bool'}
taints

Gets the taints of this V1NodeSpec. If specified, the node’s taints.

Returns:The taints of this V1NodeSpec.
Return type:list[V1Taint]
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

unschedulable

Gets the unschedulable of this V1NodeSpec. Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration

Returns:The unschedulable of this V1NodeSpec.
Return type:bool

kubernetes.client.models.v1_node_status module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_node_status.V1NodeStatus(addresses=None, allocatable=None, capacity=None, conditions=None, config=None, daemon_endpoints=None, images=None, node_info=None, phase=None, volumes_attached=None, volumes_in_use=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

addresses

Gets the addresses of this V1NodeStatus. List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses

Returns:The addresses of this V1NodeStatus.
Return type:list[V1NodeAddress]
allocatable

Gets the allocatable of this V1NodeStatus. Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.

Returns:The allocatable of this V1NodeStatus.
Return type:dict(str, str)
attribute_map = {'addresses': 'addresses', 'allocatable': 'allocatable', 'capacity': 'capacity', 'conditions': 'conditions', 'config': 'config', 'daemon_endpoints': 'daemonEndpoints', 'images': 'images', 'node_info': 'nodeInfo', 'phase': 'phase', 'volumes_attached': 'volumesAttached', 'volumes_in_use': 'volumesInUse'}
capacity

Gets the capacity of this V1NodeStatus. Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity

Returns:The capacity of this V1NodeStatus.
Return type:dict(str, str)
conditions

Gets the conditions of this V1NodeStatus. Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition

Returns:The conditions of this V1NodeStatus.
Return type:list[V1NodeCondition]
config

Gets the config of this V1NodeStatus. Status of the config assigned to the node via the dynamic Kubelet config feature.

Returns:The config of this V1NodeStatus.
Return type:V1NodeConfigStatus
daemon_endpoints

Gets the daemon_endpoints of this V1NodeStatus. Endpoints of daemons running on the Node.

Returns:The daemon_endpoints of this V1NodeStatus.
Return type:V1NodeDaemonEndpoints
images

Gets the images of this V1NodeStatus. List of container images on this node

Returns:The images of this V1NodeStatus.
Return type:list[V1ContainerImage]
node_info

Gets the node_info of this V1NodeStatus. Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#info

Returns:The node_info of this V1NodeStatus.
Return type:V1NodeSystemInfo
phase

Gets the phase of this V1NodeStatus. NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated.

Returns:The phase of this V1NodeStatus.
Return type:str
swagger_types = {'addresses': 'list[V1NodeAddress]', 'allocatable': 'dict(str, str)', 'capacity': 'dict(str, str)', 'conditions': 'list[V1NodeCondition]', 'config': 'V1NodeConfigStatus', 'daemon_endpoints': 'V1NodeDaemonEndpoints', 'images': 'list[V1ContainerImage]', 'node_info': 'V1NodeSystemInfo', 'phase': 'str', 'volumes_attached': 'list[V1AttachedVolume]', 'volumes_in_use': 'list[str]'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

volumes_attached

Gets the volumes_attached of this V1NodeStatus. List of volumes that are attached to the node.

Returns:The volumes_attached of this V1NodeStatus.
Return type:list[V1AttachedVolume]
volumes_in_use

Gets the volumes_in_use of this V1NodeStatus. List of attachable volumes in use (mounted) by the node.

Returns:The volumes_in_use of this V1NodeStatus.
Return type:list[str]

kubernetes.client.models.v1_node_system_info module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_node_system_info.V1NodeSystemInfo(architecture=None, boot_id=None, container_runtime_version=None, kernel_version=None, kube_proxy_version=None, kubelet_version=None, machine_id=None, operating_system=None, os_image=None, system_uuid=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

architecture

Gets the architecture of this V1NodeSystemInfo. The Architecture reported by the node

Returns:The architecture of this V1NodeSystemInfo.
Return type:str
attribute_map = {'architecture': 'architecture', 'boot_id': 'bootID', 'container_runtime_version': 'containerRuntimeVersion', 'kernel_version': 'kernelVersion', 'kube_proxy_version': 'kubeProxyVersion', 'kubelet_version': 'kubeletVersion', 'machine_id': 'machineID', 'operating_system': 'operatingSystem', 'os_image': 'osImage', 'system_uuid': 'systemUUID'}
boot_id

Gets the boot_id of this V1NodeSystemInfo. Boot ID reported by the node.

Returns:The boot_id of this V1NodeSystemInfo.
Return type:str
container_runtime_version

Gets the container_runtime_version of this V1NodeSystemInfo. ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0).

Returns:The container_runtime_version of this V1NodeSystemInfo.
Return type:str
kernel_version

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).

Returns:The kernel_version of this V1NodeSystemInfo.
Return type:str
kube_proxy_version

Gets the kube_proxy_version of this V1NodeSystemInfo. KubeProxy Version reported by the node.

Returns:The kube_proxy_version of this V1NodeSystemInfo.
Return type:str
kubelet_version

Gets the kubelet_version of this V1NodeSystemInfo. Kubelet Version reported by the node.

Returns:The kubelet_version of this V1NodeSystemInfo.
Return type:str
machine_id

Gets the machine_id of this V1NodeSystemInfo. MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html

Returns:The machine_id of this V1NodeSystemInfo.
Return type:str
operating_system

Gets the operating_system of this V1NodeSystemInfo. The Operating System reported by the node

Returns:The operating_system of this V1NodeSystemInfo.
Return type:str
os_image

Gets the os_image of this V1NodeSystemInfo. OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).

Returns:The os_image of this V1NodeSystemInfo.
Return type:str
swagger_types = {'architecture': 'str', 'boot_id': 'str', 'container_runtime_version': 'str', 'kernel_version': 'str', 'kube_proxy_version': 'str', 'kubelet_version': 'str', 'machine_id': 'str', 'operating_system': 'str', 'os_image': 'str', 'system_uuid': 'str'}
system_uuid

Gets the system_uuid of this V1NodeSystemInfo. SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-US/Red_Hat_Subscription_Management/1/html/RHSM/getting-system-uuid.html

Returns:The system_uuid of this V1NodeSystemInfo.
Return type:str
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_object_field_selector module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_object_field_selector.V1ObjectFieldSelector(api_version=None, field_path=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1ObjectFieldSelector. Version of the schema the FieldPath is written in terms of, defaults to “v1”.

Returns:The api_version of this V1ObjectFieldSelector.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'field_path': 'fieldPath'}
field_path

Gets the field_path of this V1ObjectFieldSelector. Path of the field to select in the specified API version.

Returns:The field_path of this V1ObjectFieldSelector.
Return type:str
swagger_types = {'api_version': 'str', 'field_path': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_object_meta module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_object_meta.V1ObjectMeta(annotations=None, cluster_name=None, creation_timestamp=None, deletion_grace_period_seconds=None, deletion_timestamp=None, finalizers=None, generate_name=None, generation=None, initializers=None, labels=None, name=None, namespace=None, owner_references=None, resource_version=None, self_link=None, uid=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

annotations

Gets the annotations of this V1ObjectMeta. Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations

Returns:The annotations of this V1ObjectMeta.
Return type:dict(str, str)
attribute_map = {'annotations': 'annotations', 'cluster_name': 'clusterName', 'creation_timestamp': 'creationTimestamp', 'deletion_grace_period_seconds': 'deletionGracePeriodSeconds', 'deletion_timestamp': 'deletionTimestamp', 'finalizers': 'finalizers', 'generate_name': 'generateName', 'generation': 'generation', 'initializers': 'initializers', 'labels': 'labels', 'name': 'name', 'namespace': 'namespace', 'owner_references': 'ownerReferences', 'resource_version': 'resourceVersion', 'self_link': 'selfLink', 'uid': 'uid'}
cluster_name

Gets the cluster_name of this V1ObjectMeta. The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request.

Returns:The cluster_name of this V1ObjectMeta.
Return type:str
creation_timestamp

Gets the creation_timestamp of this V1ObjectMeta. CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

Returns:The creation_timestamp of this V1ObjectMeta.
Return type:datetime
deletion_grace_period_seconds

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.

Returns:The deletion_grace_period_seconds of this V1ObjectMeta.
Return type:int
deletion_timestamp

Gets the deletion_timestamp of this V1ObjectMeta. DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

Returns:The deletion_timestamp of this V1ObjectMeta.
Return type:datetime
finalizers

Gets the finalizers of this V1ObjectMeta. Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed.

Returns:The finalizers of this V1ObjectMeta.
Return type:list[str]
generate_name

Gets the generate_name of this V1ObjectMeta. GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency

Returns:The generate_name of this V1ObjectMeta.
Return type:str
generation

Gets the generation of this V1ObjectMeta. A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.

Returns:The generation of this V1ObjectMeta.
Return type:int
initializers

Gets the initializers of this V1ObjectMeta. An initializer is a controller which enforces some system invariant at object creation time. This field is a list of initializers that have not yet acted on this object. If nil or empty, this object has been completely initialized. Otherwise, the object is considered uninitialized and is hidden (in list/watch and get calls) from clients that haven’t explicitly asked to observe uninitialized objects. When an object is created, the system will populate this list with the current set of initializers. Only privileged users may set or modify this list. Once it is empty, it may not be modified further by any user.

Returns:The initializers of this V1ObjectMeta.
Return type:V1Initializers
labels

Gets the labels of this V1ObjectMeta. Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels

Returns:The labels of this V1ObjectMeta.
Return type:dict(str, str)
name

Gets the name of this V1ObjectMeta. Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names

Returns:The name of this V1ObjectMeta.
Return type:str
namespace

Gets the namespace of this V1ObjectMeta. 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. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces

Returns:The namespace of this V1ObjectMeta.
Return type:str
owner_references

Gets the owner_references of this V1ObjectMeta. List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.

Returns:The owner_references of this V1ObjectMeta.
Return type:list[V1OwnerReference]
resource_version

Gets the resource_version of this V1ObjectMeta. An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency

Returns:The resource_version of this V1ObjectMeta.
Return type:str

Gets the self_link of this V1ObjectMeta. SelfLink is a URL representing this object. Populated by the system. Read-only.

Returns:The self_link of this V1ObjectMeta.
Return type:str
swagger_types = {'annotations': 'dict(str, str)', 'cluster_name': 'str', 'creation_timestamp': 'datetime', 'deletion_grace_period_seconds': 'int', 'deletion_timestamp': 'datetime', 'finalizers': 'list[str]', 'generate_name': 'str', 'generation': 'int', 'initializers': 'V1Initializers', 'labels': 'dict(str, str)', 'name': 'str', 'namespace': 'str', 'owner_references': 'list[V1OwnerReference]', 'resource_version': 'str', 'self_link': 'str', 'uid': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

uid

Gets the uid of this V1ObjectMeta. 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. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids

Returns:The uid of this V1ObjectMeta.
Return type:str

kubernetes.client.models.v1_object_reference module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_object_reference.V1ObjectReference(api_version=None, field_path=None, kind=None, name=None, namespace=None, resource_version=None, uid=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1ObjectReference. API version of the referent.

Returns:The api_version of this V1ObjectReference.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'field_path': 'fieldPath', 'kind': 'kind', 'name': 'name', 'namespace': 'namespace', 'resource_version': 'resourceVersion', 'uid': 'uid'}
field_path

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]. 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.

Returns:The field_path of this V1ObjectReference.
Return type:str
kind

Gets the kind of this V1ObjectReference. Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1ObjectReference.
Return type:str
name

Gets the name of this V1ObjectReference. Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

Returns:The name of this V1ObjectReference.
Return type:str
namespace

Gets the namespace of this V1ObjectReference. Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/

Returns:The namespace of this V1ObjectReference.
Return type:str
resource_version

Gets the resource_version of this V1ObjectReference. Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency

Returns:The resource_version of this V1ObjectReference.
Return type:str
swagger_types = {'api_version': 'str', 'field_path': 'str', 'kind': 'str', 'name': 'str', 'namespace': 'str', 'resource_version': 'str', 'uid': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

uid

Gets the uid of this V1ObjectReference. UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids

Returns:The uid of this V1ObjectReference.
Return type:str

kubernetes.client.models.v1_owner_reference module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_owner_reference.V1OwnerReference(api_version=None, block_owner_deletion=None, controller=None, kind=None, name=None, uid=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1OwnerReference. API version of the referent.

Returns:The api_version of this V1OwnerReference.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'block_owner_deletion': 'blockOwnerDeletion', 'controller': 'controller', 'kind': 'kind', 'name': 'name', 'uid': 'uid'}
block_owner_deletion

Gets the block_owner_deletion of this V1OwnerReference. If true, AND if the owner has the “foregroundDeletion” finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs “delete” permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.

Returns:The block_owner_deletion of this V1OwnerReference.
Return type:bool
controller

Gets the controller of this V1OwnerReference. If true, this reference points to the managing controller.

Returns:The controller of this V1OwnerReference.
Return type:bool
kind

Gets the kind of this V1OwnerReference. Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1OwnerReference.
Return type:str
name

Gets the name of this V1OwnerReference. Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names

Returns:The name of this V1OwnerReference.
Return type:str
swagger_types = {'api_version': 'str', 'block_owner_deletion': 'bool', 'controller': 'bool', 'kind': 'str', 'name': 'str', 'uid': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

uid

Gets the uid of this V1OwnerReference. UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids

Returns:The uid of this V1OwnerReference.
Return type:str

kubernetes.client.models.v1_persistent_volume module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_persistent_volume.V1PersistentVolume(api_version=None, kind=None, metadata=None, spec=None, status=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1PersistentVolume. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1PersistentVolume.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'kind': 'kind', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status'}
kind

Gets the kind of this V1PersistentVolume. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1PersistentVolume.
Return type:str
metadata

Gets the metadata of this V1PersistentVolume. Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

Returns:The metadata of this V1PersistentVolume.
Return type:V1ObjectMeta
spec

Gets the spec of this V1PersistentVolume. Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes

Returns:The spec of this V1PersistentVolume.
Return type:V1PersistentVolumeSpec
status

Gets the status of this V1PersistentVolume. Status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes

Returns:The status of this V1PersistentVolume.
Return type:V1PersistentVolumeStatus
swagger_types = {'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1PersistentVolumeSpec', 'status': 'V1PersistentVolumeStatus'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_persistent_volume_claim module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_persistent_volume_claim.V1PersistentVolumeClaim(api_version=None, kind=None, metadata=None, spec=None, status=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1PersistentVolumeClaim. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1PersistentVolumeClaim.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'kind': 'kind', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status'}
kind

Gets the kind of this V1PersistentVolumeClaim. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1PersistentVolumeClaim.
Return type:str
metadata

Gets the metadata of this V1PersistentVolumeClaim. Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

Returns:The metadata of this V1PersistentVolumeClaim.
Return type:V1ObjectMeta
spec

Gets the spec of this V1PersistentVolumeClaim. Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims

Returns:The spec of this V1PersistentVolumeClaim.
Return type:V1PersistentVolumeClaimSpec
status

Gets the status of this V1PersistentVolumeClaim. Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims

Returns:The status of this V1PersistentVolumeClaim.
Return type:V1PersistentVolumeClaimStatus
swagger_types = {'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1PersistentVolumeClaimSpec', 'status': 'V1PersistentVolumeClaimStatus'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_persistent_volume_claim_list module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_persistent_volume_claim_list.V1PersistentVolumeClaimList(api_version=None, items=None, kind=None, metadata=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1PersistentVolumeClaimList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1PersistentVolumeClaimList.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'items': 'items', 'kind': 'kind', 'metadata': 'metadata'}
items

Gets the items of this V1PersistentVolumeClaimList. A list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims

Returns:The items of this V1PersistentVolumeClaimList.
Return type:list[V1PersistentVolumeClaim]
kind

Gets the kind of this V1PersistentVolumeClaimList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1PersistentVolumeClaimList.
Return type:str
metadata

Gets the metadata of this V1PersistentVolumeClaimList. Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The metadata of this V1PersistentVolumeClaimList.
Return type:V1ListMeta
swagger_types = {'api_version': 'str', 'items': 'list[V1PersistentVolumeClaim]', 'kind': 'str', 'metadata': 'V1ListMeta'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_persistent_volume_claim_spec module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_persistent_volume_claim_spec.V1PersistentVolumeClaimSpec(access_modes=None, data_source=None, resources=None, selector=None, storage_class_name=None, volume_mode=None, volume_name=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

access_modes

Gets the access_modes of this V1PersistentVolumeClaimSpec. AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1

Returns:The access_modes of this V1PersistentVolumeClaimSpec.
Return type:list[str]
attribute_map = {'access_modes': 'accessModes', 'data_source': 'dataSource', 'resources': 'resources', 'selector': 'selector', 'storage_class_name': 'storageClassName', 'volume_mode': 'volumeMode', 'volume_name': 'volumeName'}
data_source

Gets the data_source of this V1PersistentVolumeClaimSpec. This field requires the VolumeSnapshotDataSource alpha feature gate to be enabled and currently VolumeSnapshot is the only supported data source. If the provisioner can support VolumeSnapshot data source, it will create a new volume and data will be restored to the volume at the same time. If the provisioner does not support VolumeSnapshot data source, volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change.

Returns:The data_source of this V1PersistentVolumeClaimSpec.
Return type:V1TypedLocalObjectReference
resources

Gets the resources of this V1PersistentVolumeClaimSpec. Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources

Returns:The resources of this V1PersistentVolumeClaimSpec.
Return type:V1ResourceRequirements
selector

Gets the selector of this V1PersistentVolumeClaimSpec. A label query over volumes to consider for binding.

Returns:The selector of this V1PersistentVolumeClaimSpec.
Return type:V1LabelSelector
storage_class_name

Gets the storage_class_name of this V1PersistentVolumeClaimSpec. Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1

Returns:The storage_class_name of this V1PersistentVolumeClaimSpec.
Return type:str
swagger_types = {'access_modes': 'list[str]', 'data_source': 'V1TypedLocalObjectReference', 'resources': 'V1ResourceRequirements', 'selector': 'V1LabelSelector', 'storage_class_name': 'str', 'volume_mode': 'str', 'volume_name': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

volume_mode

Gets the volume_mode of this V1PersistentVolumeClaimSpec. volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. This is an alpha feature and may change in the future.

Returns:The volume_mode of this V1PersistentVolumeClaimSpec.
Return type:str
volume_name

Gets the volume_name of this V1PersistentVolumeClaimSpec. VolumeName is the binding reference to the PersistentVolume backing this claim.

Returns:The volume_name of this V1PersistentVolumeClaimSpec.
Return type:str

kubernetes.client.models.v1_persistent_volume_claim_status module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_persistent_volume_claim_status.V1PersistentVolumeClaimStatus(access_modes=None, capacity=None, conditions=None, phase=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

access_modes

Gets the access_modes of this V1PersistentVolumeClaimStatus. AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1

Returns:The access_modes of this V1PersistentVolumeClaimStatus.
Return type:list[str]
attribute_map = {'access_modes': 'accessModes', 'capacity': 'capacity', 'conditions': 'conditions', 'phase': 'phase'}
capacity

Gets the capacity of this V1PersistentVolumeClaimStatus. Represents the actual resources of the underlying volume.

Returns:The capacity of this V1PersistentVolumeClaimStatus.
Return type:dict(str, str)
conditions

Gets the conditions of this V1PersistentVolumeClaimStatus. Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to ‘ResizeStarted’.

Returns:The conditions of this V1PersistentVolumeClaimStatus.
Return type:list[V1PersistentVolumeClaimCondition]
phase

Gets the phase of this V1PersistentVolumeClaimStatus. Phase represents the current phase of PersistentVolumeClaim.

Returns:The phase of this V1PersistentVolumeClaimStatus.
Return type:str
swagger_types = {'access_modes': 'list[str]', 'capacity': 'dict(str, str)', 'conditions': 'list[V1PersistentVolumeClaimCondition]', 'phase': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_persistent_volume_claim_volume_source module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_persistent_volume_claim_volume_source.V1PersistentVolumeClaimVolumeSource(claim_name=None, read_only=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'claim_name': 'claimName', 'read_only': 'readOnly'}
claim_name

Gets the claim_name of this V1PersistentVolumeClaimVolumeSource. ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims

Returns:The claim_name of this V1PersistentVolumeClaimVolumeSource.
Return type:str
read_only

Gets the read_only of this V1PersistentVolumeClaimVolumeSource. Will force the ReadOnly setting in VolumeMounts. Default false.

Returns:The read_only of this V1PersistentVolumeClaimVolumeSource.
Return type:bool
swagger_types = {'claim_name': 'str', 'read_only': 'bool'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_persistent_volume_list module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_persistent_volume_list.V1PersistentVolumeList(api_version=None, items=None, kind=None, metadata=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1PersistentVolumeList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1PersistentVolumeList.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'items': 'items', 'kind': 'kind', 'metadata': 'metadata'}
items

Gets the items of this V1PersistentVolumeList. List of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes

Returns:The items of this V1PersistentVolumeList.
Return type:list[V1PersistentVolume]
kind

Gets the kind of this V1PersistentVolumeList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1PersistentVolumeList.
Return type:str
metadata

Gets the metadata of this V1PersistentVolumeList. Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The metadata of this V1PersistentVolumeList.
Return type:V1ListMeta
swagger_types = {'api_version': 'str', 'items': 'list[V1PersistentVolume]', 'kind': 'str', 'metadata': 'V1ListMeta'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_persistent_volume_spec module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_persistent_volume_spec.V1PersistentVolumeSpec(access_modes=None, aws_elastic_block_store=None, azure_disk=None, azure_file=None, capacity=None, cephfs=None, cinder=None, claim_ref=None, csi=None, fc=None, flex_volume=None, flocker=None, gce_persistent_disk=None, glusterfs=None, host_path=None, iscsi=None, local=None, mount_options=None, nfs=None, node_affinity=None, persistent_volume_reclaim_policy=None, photon_persistent_disk=None, portworx_volume=None, quobyte=None, rbd=None, scale_io=None, storage_class_name=None, storageos=None, volume_mode=None, vsphere_volume=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

access_modes

Gets the access_modes of this V1PersistentVolumeSpec. AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes

Returns:The access_modes of this V1PersistentVolumeSpec.
Return type:list[str]
attribute_map = {'access_modes': 'accessModes', 'aws_elastic_block_store': 'awsElasticBlockStore', 'azure_disk': 'azureDisk', 'azure_file': 'azureFile', 'capacity': 'capacity', 'cephfs': 'cephfs', 'cinder': 'cinder', 'claim_ref': 'claimRef', 'csi': 'csi', 'fc': 'fc', 'flex_volume': 'flexVolume', 'flocker': 'flocker', 'gce_persistent_disk': 'gcePersistentDisk', 'glusterfs': 'glusterfs', 'host_path': 'hostPath', 'iscsi': 'iscsi', 'local': 'local', 'mount_options': 'mountOptions', 'nfs': 'nfs', 'node_affinity': 'nodeAffinity', 'persistent_volume_reclaim_policy': 'persistentVolumeReclaimPolicy', 'photon_persistent_disk': 'photonPersistentDisk', 'portworx_volume': 'portworxVolume', 'quobyte': 'quobyte', 'rbd': 'rbd', 'scale_io': 'scaleIO', 'storage_class_name': 'storageClassName', 'storageos': 'storageos', 'volume_mode': 'volumeMode', 'vsphere_volume': 'vsphereVolume'}
aws_elastic_block_store

Gets the aws_elastic_block_store of this V1PersistentVolumeSpec. AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet’s host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore

Returns:The aws_elastic_block_store of this V1PersistentVolumeSpec.
Return type:V1AWSElasticBlockStoreVolumeSource
azure_disk

Gets the azure_disk of this V1PersistentVolumeSpec. AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.

Returns:The azure_disk of this V1PersistentVolumeSpec.
Return type:V1AzureDiskVolumeSource
azure_file

Gets the azure_file of this V1PersistentVolumeSpec. AzureFile represents an Azure File Service mount on the host and bind mount to the pod.

Returns:The azure_file of this V1PersistentVolumeSpec.
Return type:V1AzureFilePersistentVolumeSource
capacity

Gets the capacity of this V1PersistentVolumeSpec. A description of the persistent volume’s resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity

Returns:The capacity of this V1PersistentVolumeSpec.
Return type:dict(str, str)
cephfs

Gets the cephfs of this V1PersistentVolumeSpec. CephFS represents a Ceph FS mount on the host that shares a pod’s lifetime

Returns:The cephfs of this V1PersistentVolumeSpec.
Return type:V1CephFSPersistentVolumeSource
cinder

Gets the cinder of this V1PersistentVolumeSpec. Cinder represents a cinder volume attached and mounted on kubelets host machine More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md

Returns:The cinder of this V1PersistentVolumeSpec.
Return type:V1CinderPersistentVolumeSource
claim_ref

Gets the claim_ref of this V1PersistentVolumeSpec. 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: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding

Returns:The claim_ref of this V1PersistentVolumeSpec.
Return type:V1ObjectReference
csi

Gets the csi of this V1PersistentVolumeSpec. CSI represents storage that handled by an external CSI driver (Beta feature).

Returns:The csi of this V1PersistentVolumeSpec.
Return type:V1CSIPersistentVolumeSource
fc

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.

Returns:The fc of this V1PersistentVolumeSpec.
Return type:V1FCVolumeSource
flex_volume

Gets the flex_volume of this V1PersistentVolumeSpec. FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.

Returns:The flex_volume of this V1PersistentVolumeSpec.
Return type:V1FlexPersistentVolumeSource
flocker

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

Returns:The flocker of this V1PersistentVolumeSpec.
Return type:V1FlockerVolumeSource
gce_persistent_disk

Gets the gce_persistent_disk of this V1PersistentVolumeSpec. 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: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk

Returns:The gce_persistent_disk of this V1PersistentVolumeSpec.
Return type:V1GCEPersistentDiskVolumeSource
glusterfs

Gets the glusterfs of this V1PersistentVolumeSpec. Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md

Returns:The glusterfs of this V1PersistentVolumeSpec.
Return type:V1GlusterfsVolumeSource
host_path

Gets the host_path of this V1PersistentVolumeSpec. 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: https://kubernetes.io/docs/concepts/storage/volumes#hostpath

Returns:The host_path of this V1PersistentVolumeSpec.
Return type:V1HostPathVolumeSource
iscsi

Gets the iscsi of this V1PersistentVolumeSpec. 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.

Returns:The iscsi of this V1PersistentVolumeSpec.
Return type:V1ISCSIPersistentVolumeSource
local

Gets the local of this V1PersistentVolumeSpec. Local represents directly-attached storage with node affinity

Returns:The local of this V1PersistentVolumeSpec.
Return type:V1LocalVolumeSource
mount_options

Gets the mount_options of this V1PersistentVolumeSpec. A list of mount options, e.g. [“ro”, “soft”]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options

Returns:The mount_options of this V1PersistentVolumeSpec.
Return type:list[str]
nfs

Gets the nfs of this V1PersistentVolumeSpec. NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs

Returns:The nfs of this V1PersistentVolumeSpec.
Return type:V1NFSVolumeSource
node_affinity

Gets the node_affinity of this V1PersistentVolumeSpec. NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume.

Returns:The node_affinity of this V1PersistentVolumeSpec.
Return type:V1VolumeNodeAffinity
persistent_volume_reclaim_policy

Gets the persistent_volume_reclaim_policy of this V1PersistentVolumeSpec. What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming

Returns:The persistent_volume_reclaim_policy of this V1PersistentVolumeSpec.
Return type:str
photon_persistent_disk

Gets the photon_persistent_disk of this V1PersistentVolumeSpec. PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine

Returns:The photon_persistent_disk of this V1PersistentVolumeSpec.
Return type:V1PhotonPersistentDiskVolumeSource
portworx_volume

Gets the portworx_volume of this V1PersistentVolumeSpec. PortworxVolume represents a portworx volume attached and mounted on kubelets host machine

Returns:The portworx_volume of this V1PersistentVolumeSpec.
Return type:V1PortworxVolumeSource
quobyte

Gets the quobyte of this V1PersistentVolumeSpec. Quobyte represents a Quobyte mount on the host that shares a pod’s lifetime

Returns:The quobyte of this V1PersistentVolumeSpec.
Return type:V1QuobyteVolumeSource
rbd

Gets the rbd of this V1PersistentVolumeSpec. RBD represents a Rados Block Device mount on the host that shares a pod’s lifetime. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md

Returns:The rbd of this V1PersistentVolumeSpec.
Return type:V1RBDPersistentVolumeSource
scale_io

Gets the scale_io of this V1PersistentVolumeSpec. ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.

Returns:The scale_io of this V1PersistentVolumeSpec.
Return type:V1ScaleIOPersistentVolumeSource
storage_class_name

Gets the storage_class_name of this V1PersistentVolumeSpec. Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass.

Returns:The storage_class_name of this V1PersistentVolumeSpec.
Return type:str
storageos

Gets the storageos of this V1PersistentVolumeSpec. StorageOS represents a StorageOS volume that is attached to the kubelet’s host machine and mounted into the pod More info: https://releases.k8s.io/HEAD/examples/volumes/storageos/README.md

Returns:The storageos of this V1PersistentVolumeSpec.
Return type:V1StorageOSPersistentVolumeSource
swagger_types = {'access_modes': 'list[str]', 'aws_elastic_block_store': 'V1AWSElasticBlockStoreVolumeSource', 'azure_disk': 'V1AzureDiskVolumeSource', 'azure_file': 'V1AzureFilePersistentVolumeSource', 'capacity': 'dict(str, str)', 'cephfs': 'V1CephFSPersistentVolumeSource', 'cinder': 'V1CinderPersistentVolumeSource', 'claim_ref': 'V1ObjectReference', 'csi': 'V1CSIPersistentVolumeSource', 'fc': 'V1FCVolumeSource', 'flex_volume': 'V1FlexPersistentVolumeSource', 'flocker': 'V1FlockerVolumeSource', 'gce_persistent_disk': 'V1GCEPersistentDiskVolumeSource', 'glusterfs': 'V1GlusterfsVolumeSource', 'host_path': 'V1HostPathVolumeSource', 'iscsi': 'V1ISCSIPersistentVolumeSource', 'local': 'V1LocalVolumeSource', 'mount_options': 'list[str]', 'nfs': 'V1NFSVolumeSource', 'node_affinity': 'V1VolumeNodeAffinity', 'persistent_volume_reclaim_policy': 'str', 'photon_persistent_disk': 'V1PhotonPersistentDiskVolumeSource', 'portworx_volume': 'V1PortworxVolumeSource', 'quobyte': 'V1QuobyteVolumeSource', 'rbd': 'V1RBDPersistentVolumeSource', 'scale_io': 'V1ScaleIOPersistentVolumeSource', 'storage_class_name': 'str', 'storageos': 'V1StorageOSPersistentVolumeSource', 'volume_mode': 'str', 'vsphere_volume': 'V1VsphereVirtualDiskVolumeSource'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

volume_mode

Gets the volume_mode of this V1PersistentVolumeSpec. volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. This is an alpha feature and may change in the future.

Returns:The volume_mode of this V1PersistentVolumeSpec.
Return type:str
vsphere_volume

Gets the vsphere_volume of this V1PersistentVolumeSpec. VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine

Returns:The vsphere_volume of this V1PersistentVolumeSpec.
Return type:V1VsphereVirtualDiskVolumeSource

kubernetes.client.models.v1_persistent_volume_status module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_persistent_volume_status.V1PersistentVolumeStatus(message=None, phase=None, reason=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'message': 'message', 'phase': 'phase', 'reason': 'reason'}
message

Gets the message of this V1PersistentVolumeStatus. A human-readable message indicating details about why the volume is in this state.

Returns:The message of this V1PersistentVolumeStatus.
Return type:str
phase

Gets the phase of this V1PersistentVolumeStatus. Phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase

Returns:The phase of this V1PersistentVolumeStatus.
Return type:str
reason

Gets the reason of this V1PersistentVolumeStatus. Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.

Returns:The reason of this V1PersistentVolumeStatus.
Return type:str
swagger_types = {'message': 'str', 'phase': 'str', 'reason': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_photon_persistent_disk_volume_source module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_photon_persistent_disk_volume_source.V1PhotonPersistentDiskVolumeSource(fs_type=None, pd_id=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'fs_type': 'fsType', 'pd_id': 'pdID'}
fs_type

Gets the fs_type of this V1PhotonPersistentDiskVolumeSource. 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.

Returns:The fs_type of this V1PhotonPersistentDiskVolumeSource.
Return type:str
pd_id

Gets the pd_id of this V1PhotonPersistentDiskVolumeSource. ID that identifies Photon Controller persistent disk

Returns:The pd_id of this V1PhotonPersistentDiskVolumeSource.
Return type:str
swagger_types = {'fs_type': 'str', 'pd_id': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_pod module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_pod.V1Pod(api_version=None, kind=None, metadata=None, spec=None, status=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1Pod. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1Pod.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'kind': 'kind', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status'}
kind

Gets the kind of this V1Pod. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1Pod.
Return type:str
metadata

Gets the metadata of this V1Pod. Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

Returns:The metadata of this V1Pod.
Return type:V1ObjectMeta
spec

Gets the spec of this V1Pod. Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

Returns:The spec of this V1Pod.
Return type:V1PodSpec
status

Gets the status of this V1Pod. Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

Returns:The status of this V1Pod.
Return type:V1PodStatus
swagger_types = {'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1PodSpec', 'status': 'V1PodStatus'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_pod_condition module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_pod_condition.V1PodCondition(last_probe_time=None, last_transition_time=None, message=None, reason=None, status=None, type=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'last_probe_time': 'lastProbeTime', 'last_transition_time': 'lastTransitionTime', 'message': 'message', 'reason': 'reason', 'status': 'status', 'type': 'type'}
last_probe_time

Gets the last_probe_time of this V1PodCondition. Last time we probed the condition.

Returns:The last_probe_time of this V1PodCondition.
Return type:datetime
last_transition_time

Gets the last_transition_time of this V1PodCondition. Last time the condition transitioned from one status to another.

Returns:The last_transition_time of this V1PodCondition.
Return type:datetime
message

Gets the message of this V1PodCondition. Human-readable message indicating details about last transition.

Returns:The message of this V1PodCondition.
Return type:str
reason

Gets the reason of this V1PodCondition. Unique, one-word, CamelCase reason for the condition’s last transition.

Returns:The reason of this V1PodCondition.
Return type:str
status

Gets the status of this V1PodCondition. Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions

Returns:The status of this V1PodCondition.
Return type:str
swagger_types = {'last_probe_time': 'datetime', 'last_transition_time': 'datetime', 'message': 'str', 'reason': 'str', 'status': 'str', 'type': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

type

Gets the type of this V1PodCondition. Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions

Returns:The type of this V1PodCondition.
Return type:str

kubernetes.client.models.v1_pod_list module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_pod_list.V1PodList(api_version=None, items=None, kind=None, metadata=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1PodList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1PodList.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'items': 'items', 'kind': 'kind', 'metadata': 'metadata'}
items

Gets the items of this V1PodList. List of pods. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md

Returns:The items of this V1PodList.
Return type:list[V1Pod]
kind

Gets the kind of this V1PodList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1PodList.
Return type:str
metadata

Gets the metadata of this V1PodList. Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The metadata of this V1PodList.
Return type:V1ListMeta
swagger_types = {'api_version': 'str', 'items': 'list[V1Pod]', 'kind': 'str', 'metadata': 'V1ListMeta'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_pod_security_context module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_pod_security_context.V1PodSecurityContext(fs_group=None, run_as_group=None, run_as_non_root=None, run_as_user=None, se_linux_options=None, supplemental_groups=None, sysctls=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'fs_group': 'fsGroup', 'run_as_group': 'runAsGroup', 'run_as_non_root': 'runAsNonRoot', 'run_as_user': 'runAsUser', 'se_linux_options': 'seLinuxOptions', 'supplemental_groups': 'supplementalGroups', 'sysctls': 'sysctls'}
fs_group

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: 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR’d with rw-rw—- If unset, the Kubelet will not modify the ownership and permissions of any volume.

Returns:The fs_group of this V1PodSecurityContext.
Return type:int
run_as_group

Gets the run_as_group of this V1PodSecurityContext. The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.

Returns:The run_as_group of this V1PodSecurityContext.
Return type:int
run_as_non_root

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.

Returns:The run_as_non_root of this V1PodSecurityContext.
Return type:bool
run_as_user

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.

Returns:The run_as_user of this V1PodSecurityContext.
Return type:int
se_linux_options

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.

Returns:The se_linux_options of this V1PodSecurityContext.
Return type:V1SELinuxOptions
supplemental_groups

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.

Returns:The supplemental_groups of this V1PodSecurityContext.
Return type:list[int]
swagger_types = {'fs_group': 'int', 'run_as_group': 'int', 'run_as_non_root': 'bool', 'run_as_user': 'int', 'se_linux_options': 'V1SELinuxOptions', 'supplemental_groups': 'list[int]', 'sysctls': 'list[V1Sysctl]'}
sysctls

Gets the sysctls of this V1PodSecurityContext. Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch.

Returns:The sysctls of this V1PodSecurityContext.
Return type:list[V1Sysctl]
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_pod_spec module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_pod_spec.V1PodSpec(active_deadline_seconds=None, affinity=None, automount_service_account_token=None, containers=None, dns_config=None, dns_policy=None, host_aliases=None, host_ipc=None, host_network=None, host_pid=None, hostname=None, image_pull_secrets=None, init_containers=None, node_name=None, node_selector=None, priority=None, priority_class_name=None, readiness_gates=None, restart_policy=None, runtime_class_name=None, scheduler_name=None, security_context=None, service_account=None, service_account_name=None, share_process_namespace=None, subdomain=None, termination_grace_period_seconds=None, tolerations=None, volumes=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

active_deadline_seconds

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.

Returns:The active_deadline_seconds of this V1PodSpec.
Return type:int
affinity

Gets the affinity of this V1PodSpec. If specified, the pod’s scheduling constraints

Returns:The affinity of this V1PodSpec.
Return type:V1Affinity
attribute_map = {'active_deadline_seconds': 'activeDeadlineSeconds', 'affinity': 'affinity', 'automount_service_account_token': 'automountServiceAccountToken', 'containers': 'containers', 'dns_config': 'dnsConfig', 'dns_policy': 'dnsPolicy', 'host_aliases': 'hostAliases', 'host_ipc': 'hostIPC', 'host_network': 'hostNetwork', 'host_pid': 'hostPID', 'hostname': 'hostname', 'image_pull_secrets': 'imagePullSecrets', 'init_containers': 'initContainers', 'node_name': 'nodeName', 'node_selector': 'nodeSelector', 'priority': 'priority', 'priority_class_name': 'priorityClassName', 'readiness_gates': 'readinessGates', 'restart_policy': 'restartPolicy', 'runtime_class_name': 'runtimeClassName', 'scheduler_name': 'schedulerName', 'security_context': 'securityContext', 'service_account': 'serviceAccount', 'service_account_name': 'serviceAccountName', 'share_process_namespace': 'shareProcessNamespace', 'subdomain': 'subdomain', 'termination_grace_period_seconds': 'terminationGracePeriodSeconds', 'tolerations': 'tolerations', 'volumes': 'volumes'}
automount_service_account_token

Gets the automount_service_account_token of this V1PodSpec. AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.

Returns:The automount_service_account_token of this V1PodSpec.
Return type:bool
containers

Gets the containers of this V1PodSpec. 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.

Returns:The containers of this V1PodSpec.
Return type:list[V1Container]
dns_config

Gets the dns_config of this V1PodSpec. Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy.

Returns:The dns_config of this V1PodSpec.
Return type:V1PodDNSConfig
dns_policy

Gets the dns_policy of this V1PodSpec. Set DNS policy for the pod. Defaults to “ClusterFirst”. Valid values are ‘ClusterFirstWithHostNet’, ‘ClusterFirst’, ‘Default’ or ‘None’. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to ‘ClusterFirstWithHostNet’.

Returns:The dns_policy of this V1PodSpec.
Return type:str
host_aliases

Gets the host_aliases of this V1PodSpec. HostAliases is an optional list of hosts and IPs that will be injected into the pod’s hosts file if specified. This is only valid for non-hostNetwork pods.

Returns:The host_aliases of this V1PodSpec.
Return type:list[V1HostAlias]
host_ipc

Gets the host_ipc of this V1PodSpec. Use the host’s ipc namespace. Optional: Default to false.

Returns:The host_ipc of this V1PodSpec.
Return type:bool
host_network

Gets the host_network of this V1PodSpec. Host networking requested for this pod. Use the host’s network namespace. If this option is set, the ports that will be used must be specified. Default to false.

Returns:The host_network of this V1PodSpec.
Return type:bool
host_pid

Gets the host_pid of this V1PodSpec. Use the host’s pid namespace. Optional: Default to false.

Returns:The host_pid of this V1PodSpec.
Return type:bool
hostname

Gets the hostname of this V1PodSpec. Specifies the hostname of the Pod If not specified, the pod’s hostname will be set to a system-defined value.

Returns:The hostname of this V1PodSpec.
Return type:str
image_pull_secrets

Gets the image_pull_secrets of this V1PodSpec. ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod

Returns:The image_pull_secrets of this V1PodSpec.
Return type:list[V1LocalObjectReference]
init_containers

Gets the init_containers of this V1PodSpec. List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, or Liveness probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/

Returns:The init_containers of this V1PodSpec.
Return type:list[V1Container]
node_name

Gets the node_name of this V1PodSpec. 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.

Returns:The node_name of this V1PodSpec.
Return type:str
node_selector

Gets the node_selector of this V1PodSpec. NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node’s labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/

Returns:The node_selector of this V1PodSpec.
Return type:dict(str, str)
priority

Gets the priority of this V1PodSpec. The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority.

Returns:The priority of this V1PodSpec.
Return type:int
priority_class_name

Gets the priority_class_name of this V1PodSpec. If specified, indicates the pod’s priority. “system-node-critical” and “system-cluster-critical” are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.

Returns:The priority_class_name of this V1PodSpec.
Return type:str
readiness_gates

Gets the readiness_gates of this V1PodSpec. If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to “True” More info: https://github.com/kubernetes/community/blob/master/keps/sig-network/0007-pod-ready%2B%2B.md

Returns:The readiness_gates of this V1PodSpec.
Return type:list[V1PodReadinessGate]
restart_policy

Gets the restart_policy of this V1PodSpec. Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy

Returns:The restart_policy of this V1PodSpec.
Return type:str
runtime_class_name

Gets the runtime_class_name of this V1PodSpec. RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the “legacy” RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://github.com/kubernetes/community/blob/master/keps/sig-node/0014-runtime-class.md This is an alpha feature and may change in the future.

Returns:The runtime_class_name of this V1PodSpec.
Return type:str
scheduler_name

Gets the scheduler_name of this V1PodSpec. If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.

Returns:The scheduler_name of this V1PodSpec.
Return type:str
security_context

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.

Returns:The security_context of this V1PodSpec.
Return type:V1PodSecurityContext
service_account

Gets the service_account of this V1PodSpec. DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.

Returns:The service_account of this V1PodSpec.
Return type:str
service_account_name

Gets the service_account_name of this V1PodSpec. ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/

Returns:The service_account_name of this V1PodSpec.
Return type:str
share_process_namespace

Gets the share_process_namespace of this V1PodSpec. Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. This field is beta-level and may be disabled with the PodShareProcessNamespace feature.

Returns:The share_process_namespace of this V1PodSpec.
Return type:bool
subdomain

Gets the subdomain of this V1PodSpec. If specified, the fully qualified Pod hostname will be “<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>”. If not specified, the pod will not have a domainname at all.

Returns:The subdomain of this V1PodSpec.
Return type:str
swagger_types = {'active_deadline_seconds': 'int', 'affinity': 'V1Affinity', 'automount_service_account_token': 'bool', 'containers': 'list[V1Container]', 'dns_config': 'V1PodDNSConfig', 'dns_policy': 'str', 'host_aliases': 'list[V1HostAlias]', 'host_ipc': 'bool', 'host_network': 'bool', 'host_pid': 'bool', 'hostname': 'str', 'image_pull_secrets': 'list[V1LocalObjectReference]', 'init_containers': 'list[V1Container]', 'node_name': 'str', 'node_selector': 'dict(str, str)', 'priority': 'int', 'priority_class_name': 'str', 'readiness_gates': 'list[V1PodReadinessGate]', 'restart_policy': 'str', 'runtime_class_name': 'str', 'scheduler_name': 'str', 'security_context': 'V1PodSecurityContext', 'service_account': 'str', 'service_account_name': 'str', 'share_process_namespace': 'bool', 'subdomain': 'str', 'termination_grace_period_seconds': 'int', 'tolerations': 'list[V1Toleration]', 'volumes': 'list[V1Volume]'}
termination_grace_period_seconds

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 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.

Returns:The termination_grace_period_seconds of this V1PodSpec.
Return type:int
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

tolerations

Gets the tolerations of this V1PodSpec. If specified, the pod’s tolerations.

Returns:The tolerations of this V1PodSpec.
Return type:list[V1Toleration]
volumes

Gets the volumes of this V1PodSpec. List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes

Returns:The volumes of this V1PodSpec.
Return type:list[V1Volume]

kubernetes.client.models.v1_pod_status module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_pod_status.V1PodStatus(conditions=None, container_statuses=None, host_ip=None, init_container_statuses=None, message=None, nominated_node_name=None, phase=None, pod_ip=None, qos_class=None, reason=None, start_time=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'conditions': 'conditions', 'container_statuses': 'containerStatuses', 'host_ip': 'hostIP', 'init_container_statuses': 'initContainerStatuses', 'message': 'message', 'nominated_node_name': 'nominatedNodeName', 'phase': 'phase', 'pod_ip': 'podIP', 'qos_class': 'qosClass', 'reason': 'reason', 'start_time': 'startTime'}
conditions

Gets the conditions of this V1PodStatus. Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions

Returns:The conditions of this V1PodStatus.
Return type:list[V1PodCondition]
container_statuses

Gets the container_statuses of this V1PodStatus. The list has one entry per container in the manifest. Each entry is currently the output of docker inspect. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status

Returns:The container_statuses of this V1PodStatus.
Return type:list[V1ContainerStatus]
host_ip

Gets the host_ip of this V1PodStatus. IP address of the host to which the pod is assigned. Empty if not yet scheduled.

Returns:The host_ip of this V1PodStatus.
Return type:str
init_container_statuses

Gets the init_container_statuses of this V1PodStatus. The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status

Returns:The init_container_statuses of this V1PodStatus.
Return type:list[V1ContainerStatus]
message

Gets the message of this V1PodStatus. A human readable message indicating details about why the pod is in this condition.

Returns:The message of this V1PodStatus.
Return type:str
nominated_node_name

Gets the nominated_node_name of this V1PodStatus. nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled.

Returns:The nominated_node_name of this V1PodStatus.
Return type:str
phase

Gets the phase of this V1PodStatus. The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod’s status. There are five possible phase values: Pending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase

Returns:The phase of this V1PodStatus.
Return type:str
pod_ip

Gets the pod_ip of this V1PodStatus. IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.

Returns:The pod_ip of this V1PodStatus.
Return type:str
qos_class

Gets the qos_class of this V1PodStatus. The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md

Returns:The qos_class of this V1PodStatus.
Return type:str
reason

Gets the reason of this V1PodStatus. A brief CamelCase message indicating details about why the pod is in this state. e.g. ‘Evicted’

Returns:The reason of this V1PodStatus.
Return type:str
start_time

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.

Returns:The start_time of this V1PodStatus.
Return type:datetime
swagger_types = {'conditions': 'list[V1PodCondition]', 'container_statuses': 'list[V1ContainerStatus]', 'host_ip': 'str', 'init_container_statuses': 'list[V1ContainerStatus]', 'message': 'str', 'nominated_node_name': 'str', 'phase': 'str', 'pod_ip': 'str', 'qos_class': 'str', 'reason': 'str', 'start_time': 'datetime'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_pod_template module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_pod_template.V1PodTemplate(api_version=None, kind=None, metadata=None, template=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1PodTemplate. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1PodTemplate.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'kind': 'kind', 'metadata': 'metadata', 'template': 'template'}
kind

Gets the kind of this V1PodTemplate. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1PodTemplate.
Return type:str
metadata

Gets the metadata of this V1PodTemplate. Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

Returns:The metadata of this V1PodTemplate.
Return type:V1ObjectMeta
swagger_types = {'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'template': 'V1PodTemplateSpec'}
template

Gets the template of this V1PodTemplate. Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

Returns:The template of this V1PodTemplate.
Return type:V1PodTemplateSpec
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_pod_template_list module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_pod_template_list.V1PodTemplateList(api_version=None, items=None, kind=None, metadata=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1PodTemplateList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1PodTemplateList.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'items': 'items', 'kind': 'kind', 'metadata': 'metadata'}
items

Gets the items of this V1PodTemplateList. List of pod templates

Returns:The items of this V1PodTemplateList.
Return type:list[V1PodTemplate]
kind

Gets the kind of this V1PodTemplateList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1PodTemplateList.
Return type:str
metadata

Gets the metadata of this V1PodTemplateList. Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The metadata of this V1PodTemplateList.
Return type:V1ListMeta
swagger_types = {'api_version': 'str', 'items': 'list[V1PodTemplate]', 'kind': 'str', 'metadata': 'V1ListMeta'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_pod_template_spec module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_pod_template_spec.V1PodTemplateSpec(metadata=None, spec=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'metadata': 'metadata', 'spec': 'spec'}
metadata

Gets the metadata of this V1PodTemplateSpec. Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

Returns:The metadata of this V1PodTemplateSpec.
Return type:V1ObjectMeta
spec

Gets the spec of this V1PodTemplateSpec. Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

Returns:The spec of this V1PodTemplateSpec.
Return type:V1PodSpec
swagger_types = {'metadata': 'V1ObjectMeta', 'spec': 'V1PodSpec'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_preconditions module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_preconditions.V1Preconditions(uid=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'uid': 'uid'}
swagger_types = {'uid': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

uid

Gets the uid of this V1Preconditions. Specifies the target UID.

Returns:The uid of this V1Preconditions.
Return type:str

kubernetes.client.models.v1_probe module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_probe.V1Probe(_exec=None, failure_threshold=None, http_get=None, initial_delay_seconds=None, period_seconds=None, success_threshold=None, tcp_socket=None, timeout_seconds=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'_exec': 'exec', 'failure_threshold': 'failureThreshold', 'http_get': 'httpGet', 'initial_delay_seconds': 'initialDelaySeconds', 'period_seconds': 'periodSeconds', 'success_threshold': 'successThreshold', 'tcp_socket': 'tcpSocket', 'timeout_seconds': 'timeoutSeconds'}
failure_threshold

Gets the failure_threshold of this V1Probe. Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.

Returns:The failure_threshold of this V1Probe.
Return type:int
http_get

Gets the http_get of this V1Probe. HTTPGet specifies the http request to perform.

Returns:The http_get of this V1Probe.
Return type:V1HTTPGetAction
initial_delay_seconds

Gets the initial_delay_seconds of this V1Probe. Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes

Returns:The initial_delay_seconds of this V1Probe.
Return type:int
period_seconds

Gets the period_seconds of this V1Probe. How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.

Returns:The period_seconds of this V1Probe.
Return type:int
success_threshold

Gets the success_threshold of this V1Probe. Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1.

Returns:The success_threshold of this V1Probe.
Return type:int
swagger_types = {'_exec': 'V1ExecAction', 'failure_threshold': 'int', 'http_get': 'V1HTTPGetAction', 'initial_delay_seconds': 'int', 'period_seconds': 'int', 'success_threshold': 'int', 'tcp_socket': 'V1TCPSocketAction', 'timeout_seconds': 'int'}
tcp_socket

Gets the tcp_socket of this V1Probe. TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported

Returns:The tcp_socket of this V1Probe.
Return type:V1TCPSocketAction
timeout_seconds

Gets the timeout_seconds of this V1Probe. Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes

Returns:The timeout_seconds of this V1Probe.
Return type:int
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_quobyte_volume_source module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_quobyte_volume_source.V1QuobyteVolumeSource(group=None, read_only=None, registry=None, user=None, volume=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'group': 'group', 'read_only': 'readOnly', 'registry': 'registry', 'user': 'user', 'volume': 'volume'}
group

Gets the group of this V1QuobyteVolumeSource. Group to map volume access to Default is no group

Returns:The group of this V1QuobyteVolumeSource.
Return type:str
read_only

Gets the read_only of this V1QuobyteVolumeSource. ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false.

Returns:The read_only of this V1QuobyteVolumeSource.
Return type:bool
registry

Gets the registry of this V1QuobyteVolumeSource. Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes

Returns:The registry of this V1QuobyteVolumeSource.
Return type:str
swagger_types = {'group': 'str', 'read_only': 'bool', 'registry': 'str', 'user': 'str', 'volume': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

user

Gets the user of this V1QuobyteVolumeSource. User to map volume access to Defaults to serivceaccount user

Returns:The user of this V1QuobyteVolumeSource.
Return type:str
volume

Gets the volume of this V1QuobyteVolumeSource. Volume is a string that references an already created Quobyte volume by name.

Returns:The volume of this V1QuobyteVolumeSource.
Return type:str

kubernetes.client.models.v1_rbd_volume_source module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_rbd_volume_source.V1RBDVolumeSource(fs_type=None, image=None, keyring=None, monitors=None, pool=None, read_only=None, secret_ref=None, user=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'fs_type': 'fsType', 'image': 'image', 'keyring': 'keyring', 'monitors': 'monitors', 'pool': 'pool', 'read_only': 'readOnly', 'secret_ref': 'secretRef', 'user': 'user'}
fs_type

Gets the fs_type of this V1RBDVolumeSource. Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: “ext4”, “xfs”, “ntfs”. Implicitly inferred to be “ext4” if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd

Returns:The fs_type of this V1RBDVolumeSource.
Return type:str
image

Gets the image of this V1RBDVolumeSource. The rados image name. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it

Returns:The image of this V1RBDVolumeSource.
Return type:str
keyring

Gets the keyring of this V1RBDVolumeSource. Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it

Returns:The keyring of this V1RBDVolumeSource.
Return type:str
monitors

Gets the monitors of this V1RBDVolumeSource. A collection of Ceph monitors. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it

Returns:The monitors of this V1RBDVolumeSource.
Return type:list[str]
pool

Gets the pool of this V1RBDVolumeSource. The rados pool name. Default is rbd. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it

Returns:The pool of this V1RBDVolumeSource.
Return type:str
read_only

Gets the read_only of this V1RBDVolumeSource. ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it

Returns:The read_only of this V1RBDVolumeSource.
Return type:bool
secret_ref

Gets the secret_ref of this V1RBDVolumeSource. SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it

Returns:The secret_ref of this V1RBDVolumeSource.
Return type:V1LocalObjectReference
swagger_types = {'fs_type': 'str', 'image': 'str', 'keyring': 'str', 'monitors': 'list[str]', 'pool': 'str', 'read_only': 'bool', 'secret_ref': 'V1LocalObjectReference', 'user': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

user

Gets the user of this V1RBDVolumeSource. The rados user name. Default is admin. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it

Returns:The user of this V1RBDVolumeSource.
Return type:str

kubernetes.client.models.v1_replication_controller module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_replication_controller.V1ReplicationController(api_version=None, kind=None, metadata=None, spec=None, status=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1ReplicationController. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1ReplicationController.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'kind': 'kind', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status'}
kind

Gets the kind of this V1ReplicationController. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1ReplicationController.
Return type:str
metadata

Gets the metadata of this V1ReplicationController. If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

Returns:The metadata of this V1ReplicationController.
Return type:V1ObjectMeta
spec

Gets the spec of this V1ReplicationController. Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

Returns:The spec of this V1ReplicationController.
Return type:V1ReplicationControllerSpec
status

Gets the status of this V1ReplicationController. Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

Returns:The status of this V1ReplicationController.
Return type:V1ReplicationControllerStatus
swagger_types = {'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1ReplicationControllerSpec', 'status': 'V1ReplicationControllerStatus'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_replication_controller_condition module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_replication_controller_condition.V1ReplicationControllerCondition(last_transition_time=None, message=None, reason=None, status=None, type=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'last_transition_time': 'lastTransitionTime', 'message': 'message', 'reason': 'reason', 'status': 'status', 'type': 'type'}
last_transition_time

Gets the last_transition_time of this V1ReplicationControllerCondition. The last time the condition transitioned from one status to another.

Returns:The last_transition_time of this V1ReplicationControllerCondition.
Return type:datetime
message

Gets the message of this V1ReplicationControllerCondition. A human readable message indicating details about the transition.

Returns:The message of this V1ReplicationControllerCondition.
Return type:str
reason

Gets the reason of this V1ReplicationControllerCondition. The reason for the condition’s last transition.

Returns:The reason of this V1ReplicationControllerCondition.
Return type:str
status

Gets the status of this V1ReplicationControllerCondition. Status of the condition, one of True, False, Unknown.

Returns:The status of this V1ReplicationControllerCondition.
Return type:str
swagger_types = {'last_transition_time': 'datetime', 'message': 'str', 'reason': 'str', 'status': 'str', 'type': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

type

Gets the type of this V1ReplicationControllerCondition. Type of replication controller condition.

Returns:The type of this V1ReplicationControllerCondition.
Return type:str

kubernetes.client.models.v1_replication_controller_list module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_replication_controller_list.V1ReplicationControllerList(api_version=None, items=None, kind=None, metadata=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1ReplicationControllerList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1ReplicationControllerList.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'items': 'items', 'kind': 'kind', 'metadata': 'metadata'}
items

Gets the items of this V1ReplicationControllerList. List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller

Returns:The items of this V1ReplicationControllerList.
Return type:list[V1ReplicationController]
kind

Gets the kind of this V1ReplicationControllerList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1ReplicationControllerList.
Return type:str
metadata

Gets the metadata of this V1ReplicationControllerList. Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The metadata of this V1ReplicationControllerList.
Return type:V1ListMeta
swagger_types = {'api_version': 'str', 'items': 'list[V1ReplicationController]', 'kind': 'str', 'metadata': 'V1ListMeta'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_replication_controller_spec module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_replication_controller_spec.V1ReplicationControllerSpec(min_ready_seconds=None, replicas=None, selector=None, template=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'min_ready_seconds': 'minReadySeconds', 'replicas': 'replicas', 'selector': 'selector', 'template': 'template'}
min_ready_seconds

Gets the min_ready_seconds of this V1ReplicationControllerSpec. Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)

Returns:The min_ready_seconds of this V1ReplicationControllerSpec.
Return type:int
replicas

Gets the replicas of this V1ReplicationControllerSpec. Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller

Returns:The replicas of this V1ReplicationControllerSpec.
Return type:int
selector

Gets the selector of this V1ReplicationControllerSpec. Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors

Returns:The selector of this V1ReplicationControllerSpec.
Return type:dict(str, str)
swagger_types = {'min_ready_seconds': 'int', 'replicas': 'int', 'selector': 'dict(str, str)', 'template': 'V1PodTemplateSpec'}
template

Gets the template of this V1ReplicationControllerSpec. Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template

Returns:The template of this V1ReplicationControllerSpec.
Return type:V1PodTemplateSpec
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_replication_controller_status module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_replication_controller_status.V1ReplicationControllerStatus(available_replicas=None, conditions=None, fully_labeled_replicas=None, observed_generation=None, ready_replicas=None, replicas=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'available_replicas': 'availableReplicas', 'conditions': 'conditions', 'fully_labeled_replicas': 'fullyLabeledReplicas', 'observed_generation': 'observedGeneration', 'ready_replicas': 'readyReplicas', 'replicas': 'replicas'}
available_replicas

Gets the available_replicas of this V1ReplicationControllerStatus. The number of available replicas (ready for at least minReadySeconds) for this replication controller.

Returns:The available_replicas of this V1ReplicationControllerStatus.
Return type:int
conditions

Gets the conditions of this V1ReplicationControllerStatus. Represents the latest available observations of a replication controller’s current state.

Returns:The conditions of this V1ReplicationControllerStatus.
Return type:list[V1ReplicationControllerCondition]
fully_labeled_replicas

Gets the fully_labeled_replicas of this V1ReplicationControllerStatus. The number of pods that have labels matching the labels of the pod template of the replication controller.

Returns:The fully_labeled_replicas of this V1ReplicationControllerStatus.
Return type:int
observed_generation

Gets the observed_generation of this V1ReplicationControllerStatus. ObservedGeneration reflects the generation of the most recently observed replication controller.

Returns:The observed_generation of this V1ReplicationControllerStatus.
Return type:int
ready_replicas

Gets the ready_replicas of this V1ReplicationControllerStatus. The number of ready replicas for this replication controller.

Returns:The ready_replicas of this V1ReplicationControllerStatus.
Return type:int
replicas

Gets the replicas of this V1ReplicationControllerStatus. Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller

Returns:The replicas of this V1ReplicationControllerStatus.
Return type:int
swagger_types = {'available_replicas': 'int', 'conditions': 'list[V1ReplicationControllerCondition]', 'fully_labeled_replicas': 'int', 'observed_generation': 'int', 'ready_replicas': 'int', 'replicas': 'int'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_resource_field_selector module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_resource_field_selector.V1ResourceFieldSelector(container_name=None, divisor=None, resource=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'container_name': 'containerName', 'divisor': 'divisor', 'resource': 'resource'}
container_name

Gets the container_name of this V1ResourceFieldSelector. Container name: required for volumes, optional for env vars

Returns:The container_name of this V1ResourceFieldSelector.
Return type:str
divisor

Gets the divisor of this V1ResourceFieldSelector. Specifies the output format of the exposed resources, defaults to “1”

Returns:The divisor of this V1ResourceFieldSelector.
Return type:str
resource

Gets the resource of this V1ResourceFieldSelector. Required: resource to select

Returns:The resource of this V1ResourceFieldSelector.
Return type:str
swagger_types = {'container_name': 'str', 'divisor': 'str', 'resource': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_resource_quota module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_resource_quota.V1ResourceQuota(api_version=None, kind=None, metadata=None, spec=None, status=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1ResourceQuota. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1ResourceQuota.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'kind': 'kind', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status'}
kind

Gets the kind of this V1ResourceQuota. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1ResourceQuota.
Return type:str
metadata

Gets the metadata of this V1ResourceQuota. Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

Returns:The metadata of this V1ResourceQuota.
Return type:V1ObjectMeta
spec

Gets the spec of this V1ResourceQuota. Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

Returns:The spec of this V1ResourceQuota.
Return type:V1ResourceQuotaSpec
status

Gets the status of this V1ResourceQuota. Status defines the actual enforced quota and its current usage. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

Returns:The status of this V1ResourceQuota.
Return type:V1ResourceQuotaStatus
swagger_types = {'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1ResourceQuotaSpec', 'status': 'V1ResourceQuotaStatus'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_resource_quota_list module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_resource_quota_list.V1ResourceQuotaList(api_version=None, items=None, kind=None, metadata=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1ResourceQuotaList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1ResourceQuotaList.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'items': 'items', 'kind': 'kind', 'metadata': 'metadata'}
items

Gets the items of this V1ResourceQuotaList. Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/

Returns:The items of this V1ResourceQuotaList.
Return type:list[V1ResourceQuota]
kind

Gets the kind of this V1ResourceQuotaList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1ResourceQuotaList.
Return type:str
metadata

Gets the metadata of this V1ResourceQuotaList. Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The metadata of this V1ResourceQuotaList.
Return type:V1ListMeta
swagger_types = {'api_version': 'str', 'items': 'list[V1ResourceQuota]', 'kind': 'str', 'metadata': 'V1ListMeta'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_resource_quota_spec module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_resource_quota_spec.V1ResourceQuotaSpec(hard=None, scope_selector=None, scopes=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'hard': 'hard', 'scope_selector': 'scopeSelector', 'scopes': 'scopes'}
hard

Gets the hard of this V1ResourceQuotaSpec. hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/

Returns:The hard of this V1ResourceQuotaSpec.
Return type:dict(str, str)
scope_selector

Gets the scope_selector of this V1ResourceQuotaSpec. scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.

Returns:The scope_selector of this V1ResourceQuotaSpec.
Return type:V1ScopeSelector
scopes

Gets the scopes of this V1ResourceQuotaSpec. A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.

Returns:The scopes of this V1ResourceQuotaSpec.
Return type:list[str]
swagger_types = {'hard': 'dict(str, str)', 'scope_selector': 'V1ScopeSelector', 'scopes': 'list[str]'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_resource_quota_status module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_resource_quota_status.V1ResourceQuotaStatus(hard=None, used=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'hard': 'hard', 'used': 'used'}
hard

Gets the hard of this V1ResourceQuotaStatus. Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/

Returns:The hard of this V1ResourceQuotaStatus.
Return type:dict(str, str)
swagger_types = {'hard': 'dict(str, str)', 'used': 'dict(str, str)'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

used

Gets the used of this V1ResourceQuotaStatus. Used is the current observed total usage of the resource in the namespace.

Returns:The used of this V1ResourceQuotaStatus.
Return type:dict(str, str)

kubernetes.client.models.v1_resource_requirements module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_resource_requirements.V1ResourceRequirements(limits=None, requests=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'limits': 'limits', 'requests': 'requests'}
limits

Gets the limits of this V1ResourceRequirements. Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/

Returns:The limits of this V1ResourceRequirements.
Return type:dict(str, str)
requests

Gets the requests of this V1ResourceRequirements. Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/

Returns:The requests of this V1ResourceRequirements.
Return type:dict(str, str)
swagger_types = {'limits': 'dict(str, str)', 'requests': 'dict(str, str)'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_scale module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_scale.V1Scale(api_version=None, kind=None, metadata=None, spec=None, status=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1Scale. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1Scale.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'kind': 'kind', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status'}
kind

Gets the kind of this V1Scale. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1Scale.
Return type:str
metadata

Gets the metadata of this V1Scale. Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata.

Returns:The metadata of this V1Scale.
Return type:V1ObjectMeta
spec

Gets the spec of this V1Scale. defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status.

Returns:The spec of this V1Scale.
Return type:V1ScaleSpec
status

Gets the status of this V1Scale. current status of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. Read-only.

Returns:The status of this V1Scale.
Return type:V1ScaleStatus
swagger_types = {'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1ScaleSpec', 'status': 'V1ScaleStatus'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_scale_spec module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_scale_spec.V1ScaleSpec(replicas=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'replicas': 'replicas'}
replicas

Gets the replicas of this V1ScaleSpec. desired number of instances for the scaled object.

Returns:The replicas of this V1ScaleSpec.
Return type:int
swagger_types = {'replicas': 'int'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_scale_status module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_scale_status.V1ScaleStatus(replicas=None, selector=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'replicas': 'replicas', 'selector': 'selector'}
replicas

Gets the replicas of this V1ScaleStatus. actual number of observed instances of the scaled object.

Returns:The replicas of this V1ScaleStatus.
Return type:int
selector

Gets the selector of this V1ScaleStatus. label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: http://kubernetes.io/docs/user-guide/labels#label-selectors

Returns:The selector of this V1ScaleStatus.
Return type:str
swagger_types = {'replicas': 'int', 'selector': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_se_linux_options module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_se_linux_options.V1SELinuxOptions(level=None, role=None, type=None, user=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'level': 'level', 'role': 'role', 'type': 'type', 'user': 'user'}
level

Gets the level of this V1SELinuxOptions. Level is SELinux level label that applies to the container.

Returns:The level of this V1SELinuxOptions.
Return type:str
role

Gets the role of this V1SELinuxOptions. Role is a SELinux role label that applies to the container.

Returns:The role of this V1SELinuxOptions.
Return type:str
swagger_types = {'level': 'str', 'role': 'str', 'type': 'str', 'user': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

type

Gets the type of this V1SELinuxOptions. Type is a SELinux type label that applies to the container.

Returns:The type of this V1SELinuxOptions.
Return type:str
user

Gets the user of this V1SELinuxOptions. User is a SELinux user label that applies to the container.

Returns:The user of this V1SELinuxOptions.
Return type:str

kubernetes.client.models.v1_secret module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_secret.V1Secret(api_version=None, data=None, kind=None, metadata=None, string_data=None, type=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1Secret. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1Secret.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'data': 'data', 'kind': 'kind', 'metadata': 'metadata', 'string_data': 'stringData', 'type': 'type'}
data

Gets the data of this V1Secret. Data contains the secret data. Each key must consist of alphanumeric characters, ‘-‘, ‘_’ or ‘.’. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4

Returns:The data of this V1Secret.
Return type:dict(str, str)
kind

Gets the kind of this V1Secret. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1Secret.
Return type:str
metadata

Gets the metadata of this V1Secret. Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

Returns:The metadata of this V1Secret.
Return type:V1ObjectMeta
string_data

Gets the string_data of this V1Secret. stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API.

Returns:The string_data of this V1Secret.
Return type:dict(str, str)
swagger_types = {'api_version': 'str', 'data': 'dict(str, str)', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'string_data': 'dict(str, str)', 'type': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

type

Gets the type of this V1Secret. Used to facilitate programmatic handling of secret data.

Returns:The type of this V1Secret.
Return type:str

kubernetes.client.models.v1_secret_key_selector module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_secret_key_selector.V1SecretKeySelector(key=None, name=None, optional=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'key': 'key', 'name': 'name', 'optional': 'optional'}
key

Gets the key of this V1SecretKeySelector. The key of the secret to select from. Must be a valid secret key.

Returns:The key of this V1SecretKeySelector.
Return type:str
name

Gets the name of this V1SecretKeySelector. Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

Returns:The name of this V1SecretKeySelector.
Return type:str
optional

Gets the optional of this V1SecretKeySelector. Specify whether the Secret or it’s key must be defined

Returns:The optional of this V1SecretKeySelector.
Return type:bool
swagger_types = {'key': 'str', 'name': 'str', 'optional': 'bool'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_secret_list module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_secret_list.V1SecretList(api_version=None, items=None, kind=None, metadata=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1SecretList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1SecretList.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'items': 'items', 'kind': 'kind', 'metadata': 'metadata'}
items

Gets the items of this V1SecretList. Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret

Returns:The items of this V1SecretList.
Return type:list[V1Secret]
kind

Gets the kind of this V1SecretList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1SecretList.
Return type:str
metadata

Gets the metadata of this V1SecretList. Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The metadata of this V1SecretList.
Return type:V1ListMeta
swagger_types = {'api_version': 'str', 'items': 'list[V1Secret]', 'kind': 'str', 'metadata': 'V1ListMeta'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_secret_volume_source module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_secret_volume_source.V1SecretVolumeSource(default_mode=None, items=None, optional=None, secret_name=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'default_mode': 'defaultMode', 'items': 'items', 'optional': 'optional', 'secret_name': 'secretName'}
default_mode

Gets the default_mode of this V1SecretVolumeSource. Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.

Returns:The default_mode of this V1SecretVolumeSource.
Return type:int
items

Gets the items of this V1SecretVolumeSource. If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the ‘..’ path or start with ‘..’.

Returns:The items of this V1SecretVolumeSource.
Return type:list[V1KeyToPath]
optional

Gets the optional of this V1SecretVolumeSource. Specify whether the Secret or it’s keys must be defined

Returns:The optional of this V1SecretVolumeSource.
Return type:bool
secret_name

Gets the secret_name of this V1SecretVolumeSource. Name of the secret in the pod’s namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret

Returns:The secret_name of this V1SecretVolumeSource.
Return type:str
swagger_types = {'default_mode': 'int', 'items': 'list[V1KeyToPath]', 'optional': 'bool', 'secret_name': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_security_context module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_security_context.V1SecurityContext(allow_privilege_escalation=None, capabilities=None, privileged=None, proc_mount=None, read_only_root_filesystem=None, run_as_group=None, run_as_non_root=None, run_as_user=None, se_linux_options=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

allow_privilege_escalation

Gets the allow_privilege_escalation of this V1SecurityContext. AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN

Returns:The allow_privilege_escalation of this V1SecurityContext.
Return type:bool
attribute_map = {'allow_privilege_escalation': 'allowPrivilegeEscalation', 'capabilities': 'capabilities', 'privileged': 'privileged', 'proc_mount': 'procMount', 'read_only_root_filesystem': 'readOnlyRootFilesystem', 'run_as_group': 'runAsGroup', 'run_as_non_root': 'runAsNonRoot', 'run_as_user': 'runAsUser', 'se_linux_options': 'seLinuxOptions'}
capabilities

Gets the capabilities of this V1SecurityContext. The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime.

Returns:The capabilities of this V1SecurityContext.
Return type:V1Capabilities
privileged

Gets the privileged of this V1SecurityContext. Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false.

Returns:The privileged of this V1SecurityContext.
Return type:bool
proc_mount

Gets the proc_mount of this V1SecurityContext. procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled.

Returns:The proc_mount of this V1SecurityContext.
Return type:str
read_only_root_filesystem

Gets the read_only_root_filesystem of this V1SecurityContext. Whether this container has a read-only root filesystem. Default is false.

Returns:The read_only_root_filesystem of this V1SecurityContext.
Return type:bool
run_as_group

Gets the run_as_group of this V1SecurityContext. The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.

Returns:The run_as_group of this V1SecurityContext.
Return type:int
run_as_non_root

Gets the run_as_non_root of this V1SecurityContext. Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.

Returns:The run_as_non_root of this V1SecurityContext.
Return type:bool
run_as_user

Gets the run_as_user of this V1SecurityContext. The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.

Returns:The run_as_user of this V1SecurityContext.
Return type:int
se_linux_options

Gets the se_linux_options of this V1SecurityContext. The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.

Returns:The se_linux_options of this V1SecurityContext.
Return type:V1SELinuxOptions
swagger_types = {'allow_privilege_escalation': 'bool', 'capabilities': 'V1Capabilities', 'privileged': 'bool', 'proc_mount': 'str', 'read_only_root_filesystem': 'bool', 'run_as_group': 'int', 'run_as_non_root': 'bool', 'run_as_user': 'int', 'se_linux_options': 'V1SELinuxOptions'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_service module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_service.V1Service(api_version=None, kind=None, metadata=None, spec=None, status=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1Service. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1Service.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'kind': 'kind', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status'}
kind

Gets the kind of this V1Service. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1Service.
Return type:str
metadata

Gets the metadata of this V1Service. Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

Returns:The metadata of this V1Service.
Return type:V1ObjectMeta
spec

Gets the spec of this V1Service. Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

Returns:The spec of this V1Service.
Return type:V1ServiceSpec
status

Gets the status of this V1Service. Most recently observed status of the service. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

Returns:The status of this V1Service.
Return type:V1ServiceStatus
swagger_types = {'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1ServiceSpec', 'status': 'V1ServiceStatus'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_service_account module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_service_account.V1ServiceAccount(api_version=None, automount_service_account_token=None, image_pull_secrets=None, kind=None, metadata=None, secrets=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1ServiceAccount. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1ServiceAccount.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'automount_service_account_token': 'automountServiceAccountToken', 'image_pull_secrets': 'imagePullSecrets', 'kind': 'kind', 'metadata': 'metadata', 'secrets': 'secrets'}
automount_service_account_token

Gets the automount_service_account_token of this V1ServiceAccount. AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level.

Returns:The automount_service_account_token of this V1ServiceAccount.
Return type:bool
image_pull_secrets

Gets the image_pull_secrets of this V1ServiceAccount. ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod

Returns:The image_pull_secrets of this V1ServiceAccount.
Return type:list[V1LocalObjectReference]
kind

Gets the kind of this V1ServiceAccount. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1ServiceAccount.
Return type:str
metadata

Gets the metadata of this V1ServiceAccount. Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

Returns:The metadata of this V1ServiceAccount.
Return type:V1ObjectMeta
secrets

Gets the secrets of this V1ServiceAccount. Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: https://kubernetes.io/docs/concepts/configuration/secret

Returns:The secrets of this V1ServiceAccount.
Return type:list[V1ObjectReference]
swagger_types = {'api_version': 'str', 'automount_service_account_token': 'bool', 'image_pull_secrets': 'list[V1LocalObjectReference]', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'secrets': 'list[V1ObjectReference]'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_service_account_list module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_service_account_list.V1ServiceAccountList(api_version=None, items=None, kind=None, metadata=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1ServiceAccountList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1ServiceAccountList.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'items': 'items', 'kind': 'kind', 'metadata': 'metadata'}
items

Gets the items of this V1ServiceAccountList. List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/

Returns:The items of this V1ServiceAccountList.
Return type:list[V1ServiceAccount]
kind

Gets the kind of this V1ServiceAccountList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1ServiceAccountList.
Return type:str
metadata

Gets the metadata of this V1ServiceAccountList. Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The metadata of this V1ServiceAccountList.
Return type:V1ListMeta
swagger_types = {'api_version': 'str', 'items': 'list[V1ServiceAccount]', 'kind': 'str', 'metadata': 'V1ListMeta'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_service_list module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_service_list.V1ServiceList(api_version=None, items=None, kind=None, metadata=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1ServiceList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1ServiceList.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'items': 'items', 'kind': 'kind', 'metadata': 'metadata'}
items

Gets the items of this V1ServiceList. List of services

Returns:The items of this V1ServiceList.
Return type:list[V1Service]
kind

Gets the kind of this V1ServiceList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1ServiceList.
Return type:str
metadata

Gets the metadata of this V1ServiceList. Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The metadata of this V1ServiceList.
Return type:V1ListMeta
swagger_types = {'api_version': 'str', 'items': 'list[V1Service]', 'kind': 'str', 'metadata': 'V1ListMeta'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_service_port module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_service_port.V1ServicePort(name=None, node_port=None, port=None, protocol=None, target_port=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'name': 'name', 'node_port': 'nodePort', 'port': 'port', 'protocol': 'protocol', 'target_port': 'targetPort'}
name

Gets the name of this V1ServicePort. The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. This maps to the ‘Name’ field in EndpointPort objects. Optional if only one ServicePort is defined on this service.

Returns:The name of this V1ServicePort.
Return type:str
node_port

Gets the node_port of this V1ServicePort. The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport

Returns:The node_port of this V1ServicePort.
Return type:int
port

Gets the port of this V1ServicePort. The port that will be exposed by this service.

Returns:The port of this V1ServicePort.
Return type:int
protocol

Gets the protocol of this V1ServicePort. The IP protocol for this port. Supports “TCP”, “UDP”, and “SCTP”. Default is TCP.

Returns:The protocol of this V1ServicePort.
Return type:str
swagger_types = {'name': 'str', 'node_port': 'int', 'port': 'int', 'protocol': 'str', 'target_port': 'object'}
target_port

Gets the target_port of this V1ServicePort. Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod’s container ports. If this is not specified, the value of the ‘port’ field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the ‘port’ field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service

Returns:The target_port of this V1ServicePort.
Return type:object
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_service_spec module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_service_spec.V1ServiceSpec(cluster_ip=None, external_i_ps=None, external_name=None, external_traffic_policy=None, health_check_node_port=None, load_balancer_ip=None, load_balancer_source_ranges=None, ports=None, publish_not_ready_addresses=None, selector=None, session_affinity=None, session_affinity_config=None, type=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'cluster_ip': 'clusterIP', 'external_i_ps': 'externalIPs', 'external_name': 'externalName', 'external_traffic_policy': 'externalTrafficPolicy', 'health_check_node_port': 'healthCheckNodePort', 'load_balancer_ip': 'loadBalancerIP', 'load_balancer_source_ranges': 'loadBalancerSourceRanges', 'ports': 'ports', 'publish_not_ready_addresses': 'publishNotReadyAddresses', 'selector': 'selector', 'session_affinity': 'sessionAffinity', 'session_affinity_config': 'sessionAffinityConfig', 'type': 'type'}
cluster_ip

Gets the cluster_ip of this V1ServiceSpec. clusterIP is the IP address of the service and is usually assigned randomly by the master. If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are “None”, empty string (“”), or a valid IP address. “None” can be specified for headless services when proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies

Returns:The cluster_ip of this V1ServiceSpec.
Return type:str
external_i_ps

Gets the external_i_ps of this V1ServiceSpec. externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system.

Returns:The external_i_ps of this V1ServiceSpec.
Return type:list[str]
external_name

Gets the external_name of this V1ServiceSpec. externalName is the external reference that kubedns or equivalent will return as a CNAME record for this service. No proxying will be involved. Must be a valid RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires Type to be ExternalName.

Returns:The external_name of this V1ServiceSpec.
Return type:str
external_traffic_policy

Gets the external_traffic_policy of this V1ServiceSpec. externalTrafficPolicy denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints. “Local” preserves the client source IP and avoids a second hop for LoadBalancer and Nodeport type services, but risks potentially imbalanced traffic spreading. “Cluster” obscures the client source IP and may cause a second hop to another node, but should have good overall load-spreading.

Returns:The external_traffic_policy of this V1ServiceSpec.
Return type:str
health_check_node_port

Gets the health_check_node_port of this V1ServiceSpec. healthCheckNodePort specifies the healthcheck nodePort for the service. If not specified, HealthCheckNodePort is created by the service api backend with the allocated nodePort. Will use user-specified nodePort value if specified by the client. Only effects when Type is set to LoadBalancer and ExternalTrafficPolicy is set to Local.

Returns:The health_check_node_port of this V1ServiceSpec.
Return type:int
load_balancer_ip

Gets the load_balancer_ip of this V1ServiceSpec. Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature.

Returns:The load_balancer_ip of this V1ServiceSpec.
Return type:str
load_balancer_source_ranges

Gets the load_balancer_source_ranges of this V1ServiceSpec. If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.” More info: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/

Returns:The load_balancer_source_ranges of this V1ServiceSpec.
Return type:list[str]
ports

Gets the ports of this V1ServiceSpec. The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies

Returns:The ports of this V1ServiceSpec.
Return type:list[V1ServicePort]
publish_not_ready_addresses

Gets the publish_not_ready_addresses of this V1ServiceSpec. publishNotReadyAddresses, when set to true, indicates that DNS implementations must publish the notReadyAddresses of subsets for the Endpoints associated with the Service. The default value is false. The primary use case for setting this field is to use a StatefulSet’s Headless Service to propagate SRV records for its Pods without respect to their readiness for purpose of peer discovery.

Returns:The publish_not_ready_addresses of this V1ServiceSpec.
Return type:bool
selector

Gets the selector of this V1ServiceSpec. Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/

Returns:The selector of this V1ServiceSpec.
Return type:dict(str, str)
session_affinity

Gets the session_affinity of this V1ServiceSpec. Supports “ClientIP” and “None”. Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies

Returns:The session_affinity of this V1ServiceSpec.
Return type:str
session_affinity_config

Gets the session_affinity_config of this V1ServiceSpec. sessionAffinityConfig contains the configurations of session affinity.

Returns:The session_affinity_config of this V1ServiceSpec.
Return type:V1SessionAffinityConfig
swagger_types = {'cluster_ip': 'str', 'external_i_ps': 'list[str]', 'external_name': 'str', 'external_traffic_policy': 'str', 'health_check_node_port': 'int', 'load_balancer_ip': 'str', 'load_balancer_source_ranges': 'list[str]', 'ports': 'list[V1ServicePort]', 'publish_not_ready_addresses': 'bool', 'selector': 'dict(str, str)', 'session_affinity': 'str', 'session_affinity_config': 'V1SessionAffinityConfig', 'type': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

type

Gets the type of this V1ServiceSpec. type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. “ExternalName” maps to the specified externalName. “ClusterIP” allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object. If clusterIP is “None”, no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a stable IP. “NodePort” builds on ClusterIP and allocates a port on every node which routes to the clusterIP. “LoadBalancer” builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the clusterIP. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services—service-types

Returns:The type of this V1ServiceSpec.
Return type:str

kubernetes.client.models.v1_service_status module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_service_status.V1ServiceStatus(load_balancer=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'load_balancer': 'loadBalancer'}
load_balancer

Gets the load_balancer of this V1ServiceStatus. LoadBalancer contains the current status of the load-balancer, if one is present.

Returns:The load_balancer of this V1ServiceStatus.
Return type:V1LoadBalancerStatus
swagger_types = {'load_balancer': 'V1LoadBalancerStatus'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_tcp_socket_action module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_tcp_socket_action.V1TCPSocketAction(host=None, port=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'host': 'host', 'port': 'port'}
host

Gets the host of this V1TCPSocketAction. Optional: Host name to connect to, defaults to the pod IP.

Returns:The host of this V1TCPSocketAction.
Return type:str
port

Gets the port of this V1TCPSocketAction. 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.

Returns:The port of this V1TCPSocketAction.
Return type:object
swagger_types = {'host': 'str', 'port': 'object'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_volume module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_volume.V1Volume(aws_elastic_block_store=None, azure_disk=None, azure_file=None, cephfs=None, cinder=None, config_map=None, downward_api=None, empty_dir=None, fc=None, flex_volume=None, flocker=None, gce_persistent_disk=None, git_repo=None, glusterfs=None, host_path=None, iscsi=None, name=None, nfs=None, persistent_volume_claim=None, photon_persistent_disk=None, portworx_volume=None, projected=None, quobyte=None, rbd=None, scale_io=None, secret=None, storageos=None, vsphere_volume=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'aws_elastic_block_store': 'awsElasticBlockStore', 'azure_disk': 'azureDisk', 'azure_file': 'azureFile', 'cephfs': 'cephfs', 'cinder': 'cinder', 'config_map': 'configMap', 'downward_api': 'downwardAPI', 'empty_dir': 'emptyDir', 'fc': 'fc', 'flex_volume': 'flexVolume', 'flocker': 'flocker', 'gce_persistent_disk': 'gcePersistentDisk', 'git_repo': 'gitRepo', 'glusterfs': 'glusterfs', 'host_path': 'hostPath', 'iscsi': 'iscsi', 'name': 'name', 'nfs': 'nfs', 'persistent_volume_claim': 'persistentVolumeClaim', 'photon_persistent_disk': 'photonPersistentDisk', 'portworx_volume': 'portworxVolume', 'projected': 'projected', 'quobyte': 'quobyte', 'rbd': 'rbd', 'scale_io': 'scaleIO', 'secret': 'secret', 'storageos': 'storageos', 'vsphere_volume': 'vsphereVolume'}
aws_elastic_block_store

Gets the aws_elastic_block_store of this V1Volume. AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet’s host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore

Returns:The aws_elastic_block_store of this V1Volume.
Return type:V1AWSElasticBlockStoreVolumeSource
azure_disk

Gets the azure_disk of this V1Volume. AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.

Returns:The azure_disk of this V1Volume.
Return type:V1AzureDiskVolumeSource
azure_file

Gets the azure_file of this V1Volume. AzureFile represents an Azure File Service mount on the host and bind mount to the pod.

Returns:The azure_file of this V1Volume.
Return type:V1AzureFileVolumeSource
cephfs

Gets the cephfs of this V1Volume. CephFS represents a Ceph FS mount on the host that shares a pod’s lifetime

Returns:The cephfs of this V1Volume.
Return type:V1CephFSVolumeSource
cinder

Gets the cinder of this V1Volume. Cinder represents a cinder volume attached and mounted on kubelets host machine More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md

Returns:The cinder of this V1Volume.
Return type:V1CinderVolumeSource
config_map

Gets the config_map of this V1Volume. ConfigMap represents a configMap that should populate this volume

Returns:The config_map of this V1Volume.
Return type:V1ConfigMapVolumeSource
downward_api

Gets the downward_api of this V1Volume. DownwardAPI represents downward API about the pod that should populate this volume

Returns:The downward_api of this V1Volume.
Return type:V1DownwardAPIVolumeSource
empty_dir

Gets the empty_dir of this V1Volume. EmptyDir represents a temporary directory that shares a pod’s lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir

Returns:The empty_dir of this V1Volume.
Return type:V1EmptyDirVolumeSource
fc

Gets the fc of this V1Volume. FC represents a Fibre Channel resource that is attached to a kubelet’s host machine and then exposed to the pod.

Returns:The fc of this V1Volume.
Return type:V1FCVolumeSource
flex_volume

Gets the flex_volume of this V1Volume. FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.

Returns:The flex_volume of this V1Volume.
Return type:V1FlexVolumeSource
flocker

Gets the flocker of this V1Volume. Flocker represents a Flocker volume attached to a kubelet’s host machine. This depends on the Flocker control service being running

Returns:The flocker of this V1Volume.
Return type:V1FlockerVolumeSource
gce_persistent_disk

Gets the gce_persistent_disk of this V1Volume. GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet’s host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk

Returns:The gce_persistent_disk of this V1Volume.
Return type:V1GCEPersistentDiskVolumeSource
git_repo

Gets the git_repo of this V1Volume. GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod’s container.

Returns:The git_repo of this V1Volume.
Return type:V1GitRepoVolumeSource
glusterfs

Gets the glusterfs of this V1Volume. Glusterfs represents a Glusterfs mount on the host that shares a pod’s lifetime. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md

Returns:The glusterfs of this V1Volume.
Return type:V1GlusterfsVolumeSource
host_path

Gets the host_path of this V1Volume. HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath

Returns:The host_path of this V1Volume.
Return type:V1HostPathVolumeSource
iscsi

Gets the iscsi of this V1Volume. ISCSI represents an ISCSI Disk resource that is attached to a kubelet’s host machine and then exposed to the pod. More info: https://releases.k8s.io/HEAD/examples/volumes/iscsi/README.md

Returns:The iscsi of this V1Volume.
Return type:V1ISCSIVolumeSource
name

Gets the name of this V1Volume. Volume’s name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

Returns:The name of this V1Volume.
Return type:str
nfs

Gets the nfs of this V1Volume. NFS represents an NFS mount on the host that shares a pod’s lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs

Returns:The nfs of this V1Volume.
Return type:V1NFSVolumeSource
persistent_volume_claim

Gets the persistent_volume_claim of this V1Volume. PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims

Returns:The persistent_volume_claim of this V1Volume.
Return type:V1PersistentVolumeClaimVolumeSource
photon_persistent_disk

Gets the photon_persistent_disk of this V1Volume. PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine

Returns:The photon_persistent_disk of this V1Volume.
Return type:V1PhotonPersistentDiskVolumeSource
portworx_volume

Gets the portworx_volume of this V1Volume. PortworxVolume represents a portworx volume attached and mounted on kubelets host machine

Returns:The portworx_volume of this V1Volume.
Return type:V1PortworxVolumeSource
projected

Gets the projected of this V1Volume. Items for all in one resources secrets, configmaps, and downward API

Returns:The projected of this V1Volume.
Return type:V1ProjectedVolumeSource
quobyte

Gets the quobyte of this V1Volume. Quobyte represents a Quobyte mount on the host that shares a pod’s lifetime

Returns:The quobyte of this V1Volume.
Return type:V1QuobyteVolumeSource
rbd

Gets the rbd of this V1Volume. RBD represents a Rados Block Device mount on the host that shares a pod’s lifetime. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md

Returns:The rbd of this V1Volume.
Return type:V1RBDVolumeSource
scale_io

Gets the scale_io of this V1Volume. ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.

Returns:The scale_io of this V1Volume.
Return type:V1ScaleIOVolumeSource
secret

Gets the secret of this V1Volume. Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret

Returns:The secret of this V1Volume.
Return type:V1SecretVolumeSource
storageos

Gets the storageos of this V1Volume. StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.

Returns:The storageos of this V1Volume.
Return type:V1StorageOSVolumeSource
swagger_types = {'aws_elastic_block_store': 'V1AWSElasticBlockStoreVolumeSource', 'azure_disk': 'V1AzureDiskVolumeSource', 'azure_file': 'V1AzureFileVolumeSource', 'cephfs': 'V1CephFSVolumeSource', 'cinder': 'V1CinderVolumeSource', 'config_map': 'V1ConfigMapVolumeSource', 'downward_api': 'V1DownwardAPIVolumeSource', 'empty_dir': 'V1EmptyDirVolumeSource', 'fc': 'V1FCVolumeSource', 'flex_volume': 'V1FlexVolumeSource', 'flocker': 'V1FlockerVolumeSource', 'gce_persistent_disk': 'V1GCEPersistentDiskVolumeSource', 'git_repo': 'V1GitRepoVolumeSource', 'glusterfs': 'V1GlusterfsVolumeSource', 'host_path': 'V1HostPathVolumeSource', 'iscsi': 'V1ISCSIVolumeSource', 'name': 'str', 'nfs': 'V1NFSVolumeSource', 'persistent_volume_claim': 'V1PersistentVolumeClaimVolumeSource', 'photon_persistent_disk': 'V1PhotonPersistentDiskVolumeSource', 'portworx_volume': 'V1PortworxVolumeSource', 'projected': 'V1ProjectedVolumeSource', 'quobyte': 'V1QuobyteVolumeSource', 'rbd': 'V1RBDVolumeSource', 'scale_io': 'V1ScaleIOVolumeSource', 'secret': 'V1SecretVolumeSource', 'storageos': 'V1StorageOSVolumeSource', 'vsphere_volume': 'V1VsphereVirtualDiskVolumeSource'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

vsphere_volume

Gets the vsphere_volume of this V1Volume. VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine

Returns:The vsphere_volume of this V1Volume.
Return type:V1VsphereVirtualDiskVolumeSource

kubernetes.client.models.v1_volume_mount module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_volume_mount.V1VolumeMount(mount_path=None, mount_propagation=None, name=None, read_only=None, sub_path=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'mount_path': 'mountPath', 'mount_propagation': 'mountPropagation', 'name': 'name', 'read_only': 'readOnly', 'sub_path': 'subPath'}
mount_path

Gets the mount_path of this V1VolumeMount. Path within the container at which the volume should be mounted. Must not contain ‘:’.

Returns:The mount_path of this V1VolumeMount.
Return type:str
mount_propagation

Gets the mount_propagation of this V1VolumeMount. mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10.

Returns:The mount_propagation of this V1VolumeMount.
Return type:str
name

Gets the name of this V1VolumeMount. This must match the Name of a Volume.

Returns:The name of this V1VolumeMount.
Return type:str
read_only

Gets the read_only of this V1VolumeMount. Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.

Returns:The read_only of this V1VolumeMount.
Return type:bool
sub_path

Gets the sub_path of this V1VolumeMount. Path within the volume from which the container’s volume should be mounted. Defaults to “” (volume’s root).

Returns:The sub_path of this V1VolumeMount.
Return type:str
swagger_types = {'mount_path': 'str', 'mount_propagation': 'str', 'name': 'str', 'read_only': 'bool', 'sub_path': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1_vsphere_virtual_disk_volume_source module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1_vsphere_virtual_disk_volume_source.V1VsphereVirtualDiskVolumeSource(fs_type=None, storage_policy_id=None, storage_policy_name=None, volume_path=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'fs_type': 'fsType', 'storage_policy_id': 'storagePolicyID', 'storage_policy_name': 'storagePolicyName', 'volume_path': 'volumePath'}
fs_type

Gets the fs_type of this V1VsphereVirtualDiskVolumeSource. 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.

Returns:The fs_type of this V1VsphereVirtualDiskVolumeSource.
Return type:str
storage_policy_id

Gets the storage_policy_id of this V1VsphereVirtualDiskVolumeSource. Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.

Returns:The storage_policy_id of this V1VsphereVirtualDiskVolumeSource.
Return type:str
storage_policy_name

Gets the storage_policy_name of this V1VsphereVirtualDiskVolumeSource. Storage Policy Based Management (SPBM) profile name.

Returns:The storage_policy_name of this V1VsphereVirtualDiskVolumeSource.
Return type:str
swagger_types = {'fs_type': 'str', 'storage_policy_id': 'str', 'storage_policy_name': 'str', 'volume_path': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

volume_path

Gets the volume_path of this V1VsphereVirtualDiskVolumeSource. Path that identifies vSphere volume vmdk

Returns:The volume_path of this V1VsphereVirtualDiskVolumeSource.
Return type:str

kubernetes.client.models.v1alpha1_certificate_signing_request module

kubernetes.client.models.v1alpha1_certificate_signing_request_condition module

kubernetes.client.models.v1alpha1_certificate_signing_request_list module

kubernetes.client.models.v1alpha1_certificate_signing_request_spec module

kubernetes.client.models.v1alpha1_certificate_signing_request_status module

kubernetes.client.models.v1alpha1_cluster_role module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1alpha1_cluster_role.V1alpha1ClusterRole(aggregation_rule=None, api_version=None, kind=None, metadata=None, rules=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

aggregation_rule

Gets the aggregation_rule of this V1alpha1ClusterRole. AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller.

Returns:The aggregation_rule of this V1alpha1ClusterRole.
Return type:V1alpha1AggregationRule
api_version

Gets the api_version of this V1alpha1ClusterRole. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1alpha1ClusterRole.
Return type:str
attribute_map = {'aggregation_rule': 'aggregationRule', 'api_version': 'apiVersion', 'kind': 'kind', 'metadata': 'metadata', 'rules': 'rules'}
kind

Gets the kind of this V1alpha1ClusterRole. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1alpha1ClusterRole.
Return type:str
metadata

Gets the metadata of this V1alpha1ClusterRole. Standard object’s metadata.

Returns:The metadata of this V1alpha1ClusterRole.
Return type:V1ObjectMeta
rules

Gets the rules of this V1alpha1ClusterRole. Rules holds all the PolicyRules for this ClusterRole

Returns:The rules of this V1alpha1ClusterRole.
Return type:list[V1alpha1PolicyRule]
swagger_types = {'aggregation_rule': 'V1alpha1AggregationRule', 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'rules': 'list[V1alpha1PolicyRule]'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1alpha1_cluster_role_binding module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1alpha1_cluster_role_binding.V1alpha1ClusterRoleBinding(api_version=None, kind=None, metadata=None, role_ref=None, subjects=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1alpha1ClusterRoleBinding. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1alpha1ClusterRoleBinding.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'kind': 'kind', 'metadata': 'metadata', 'role_ref': 'roleRef', 'subjects': 'subjects'}
kind

Gets the kind of this V1alpha1ClusterRoleBinding. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1alpha1ClusterRoleBinding.
Return type:str
metadata

Gets the metadata of this V1alpha1ClusterRoleBinding. Standard object’s metadata.

Returns:The metadata of this V1alpha1ClusterRoleBinding.
Return type:V1ObjectMeta
role_ref

Gets the role_ref of this V1alpha1ClusterRoleBinding. RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.

Returns:The role_ref of this V1alpha1ClusterRoleBinding.
Return type:V1alpha1RoleRef
subjects

Gets the subjects of this V1alpha1ClusterRoleBinding. Subjects holds references to the objects the role applies to.

Returns:The subjects of this V1alpha1ClusterRoleBinding.
Return type:list[V1alpha1Subject]
swagger_types = {'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'role_ref': 'V1alpha1RoleRef', 'subjects': 'list[V1alpha1Subject]'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1alpha1_cluster_role_binding_list module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1alpha1_cluster_role_binding_list.V1alpha1ClusterRoleBindingList(api_version=None, items=None, kind=None, metadata=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1alpha1ClusterRoleBindingList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1alpha1ClusterRoleBindingList.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'items': 'items', 'kind': 'kind', 'metadata': 'metadata'}
items

Gets the items of this V1alpha1ClusterRoleBindingList. Items is a list of ClusterRoleBindings

Returns:The items of this V1alpha1ClusterRoleBindingList.
Return type:list[V1alpha1ClusterRoleBinding]
kind

Gets the kind of this V1alpha1ClusterRoleBindingList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1alpha1ClusterRoleBindingList.
Return type:str
metadata

Gets the metadata of this V1alpha1ClusterRoleBindingList. Standard object’s metadata.

Returns:The metadata of this V1alpha1ClusterRoleBindingList.
Return type:V1ListMeta
swagger_types = {'api_version': 'str', 'items': 'list[V1alpha1ClusterRoleBinding]', 'kind': 'str', 'metadata': 'V1ListMeta'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1alpha1_cluster_role_list module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1alpha1_cluster_role_list.V1alpha1ClusterRoleList(api_version=None, items=None, kind=None, metadata=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1alpha1ClusterRoleList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1alpha1ClusterRoleList.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'items': 'items', 'kind': 'kind', 'metadata': 'metadata'}
items

Gets the items of this V1alpha1ClusterRoleList. Items is a list of ClusterRoles

Returns:The items of this V1alpha1ClusterRoleList.
Return type:list[V1alpha1ClusterRole]
kind

Gets the kind of this V1alpha1ClusterRoleList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1alpha1ClusterRoleList.
Return type:str
metadata

Gets the metadata of this V1alpha1ClusterRoleList. Standard object’s metadata.

Returns:The metadata of this V1alpha1ClusterRoleList.
Return type:V1ListMeta
swagger_types = {'api_version': 'str', 'items': 'list[V1alpha1ClusterRole]', 'kind': 'str', 'metadata': 'V1ListMeta'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1alpha1_policy_rule module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1alpha1_policy_rule.V1alpha1PolicyRule(api_groups=None, non_resource_ur_ls=None, resource_names=None, resources=None, verbs=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_groups

Gets the api_groups of this V1alpha1PolicyRule. APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed.

Returns:The api_groups of this V1alpha1PolicyRule.
Return type:list[str]
attribute_map = {'api_groups': 'apiGroups', 'non_resource_ur_ls': 'nonResourceURLs', 'resource_names': 'resourceNames', 'resources': 'resources', 'verbs': 'verbs'}
non_resource_ur_ls

Gets the non_resource_ur_ls of this V1alpha1PolicyRule. NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different. Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as “pods” or “secrets”) or non-resource URL paths (such as “/api”), but not both.

Returns:The non_resource_ur_ls of this V1alpha1PolicyRule.
Return type:list[str]
resource_names

Gets the resource_names of this V1alpha1PolicyRule. ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.

Returns:The resource_names of this V1alpha1PolicyRule.
Return type:list[str]
resources

Gets the resources of this V1alpha1PolicyRule. Resources is a list of resources this rule applies to. ResourceAll represents all resources.

Returns:The resources of this V1alpha1PolicyRule.
Return type:list[str]
swagger_types = {'api_groups': 'list[str]', 'non_resource_ur_ls': 'list[str]', 'resource_names': 'list[str]', 'resources': 'list[str]', 'verbs': 'list[str]'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

verbs

Gets the verbs of this V1alpha1PolicyRule. Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds.

Returns:The verbs of this V1alpha1PolicyRule.
Return type:list[str]

kubernetes.client.models.v1alpha1_role module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1alpha1_role.V1alpha1Role(api_version=None, kind=None, metadata=None, rules=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1alpha1Role. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1alpha1Role.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'kind': 'kind', 'metadata': 'metadata', 'rules': 'rules'}
kind

Gets the kind of this V1alpha1Role. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1alpha1Role.
Return type:str
metadata

Gets the metadata of this V1alpha1Role. Standard object’s metadata.

Returns:The metadata of this V1alpha1Role.
Return type:V1ObjectMeta
rules

Gets the rules of this V1alpha1Role. Rules holds all the PolicyRules for this Role

Returns:The rules of this V1alpha1Role.
Return type:list[V1alpha1PolicyRule]
swagger_types = {'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'rules': 'list[V1alpha1PolicyRule]'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1alpha1_role_binding module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1alpha1_role_binding.V1alpha1RoleBinding(api_version=None, kind=None, metadata=None, role_ref=None, subjects=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1alpha1RoleBinding. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1alpha1RoleBinding.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'kind': 'kind', 'metadata': 'metadata', 'role_ref': 'roleRef', 'subjects': 'subjects'}
kind

Gets the kind of this V1alpha1RoleBinding. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1alpha1RoleBinding.
Return type:str
metadata

Gets the metadata of this V1alpha1RoleBinding. Standard object’s metadata.

Returns:The metadata of this V1alpha1RoleBinding.
Return type:V1ObjectMeta
role_ref

Gets the role_ref of this V1alpha1RoleBinding. RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.

Returns:The role_ref of this V1alpha1RoleBinding.
Return type:V1alpha1RoleRef
subjects

Gets the subjects of this V1alpha1RoleBinding. Subjects holds references to the objects the role applies to.

Returns:The subjects of this V1alpha1RoleBinding.
Return type:list[V1alpha1Subject]
swagger_types = {'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'role_ref': 'V1alpha1RoleRef', 'subjects': 'list[V1alpha1Subject]'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1alpha1_role_binding_list module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1alpha1_role_binding_list.V1alpha1RoleBindingList(api_version=None, items=None, kind=None, metadata=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1alpha1RoleBindingList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1alpha1RoleBindingList.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'items': 'items', 'kind': 'kind', 'metadata': 'metadata'}
items

Gets the items of this V1alpha1RoleBindingList. Items is a list of RoleBindings

Returns:The items of this V1alpha1RoleBindingList.
Return type:list[V1alpha1RoleBinding]
kind

Gets the kind of this V1alpha1RoleBindingList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1alpha1RoleBindingList.
Return type:str
metadata

Gets the metadata of this V1alpha1RoleBindingList. Standard object’s metadata.

Returns:The metadata of this V1alpha1RoleBindingList.
Return type:V1ListMeta
swagger_types = {'api_version': 'str', 'items': 'list[V1alpha1RoleBinding]', 'kind': 'str', 'metadata': 'V1ListMeta'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1alpha1_role_list module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1alpha1_role_list.V1alpha1RoleList(api_version=None, items=None, kind=None, metadata=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1alpha1RoleList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1alpha1RoleList.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'items': 'items', 'kind': 'kind', 'metadata': 'metadata'}
items

Gets the items of this V1alpha1RoleList. Items is a list of Roles

Returns:The items of this V1alpha1RoleList.
Return type:list[V1alpha1Role]
kind

Gets the kind of this V1alpha1RoleList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1alpha1RoleList.
Return type:str
metadata

Gets the metadata of this V1alpha1RoleList. Standard object’s metadata.

Returns:The metadata of this V1alpha1RoleList.
Return type:V1ListMeta
swagger_types = {'api_version': 'str', 'items': 'list[V1alpha1Role]', 'kind': 'str', 'metadata': 'V1ListMeta'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1alpha1_role_ref module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1alpha1_role_ref.V1alpha1RoleRef(api_group=None, kind=None, name=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_group

Gets the api_group of this V1alpha1RoleRef. APIGroup is the group for the resource being referenced

Returns:The api_group of this V1alpha1RoleRef.
Return type:str
attribute_map = {'api_group': 'apiGroup', 'kind': 'kind', 'name': 'name'}
kind

Gets the kind of this V1alpha1RoleRef. Kind is the type of resource being referenced

Returns:The kind of this V1alpha1RoleRef.
Return type:str
name

Gets the name of this V1alpha1RoleRef. Name is the name of resource being referenced

Returns:The name of this V1alpha1RoleRef.
Return type:str
swagger_types = {'api_group': 'str', 'kind': 'str', 'name': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1alpha1_subject module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1alpha1_subject.V1alpha1Subject(api_version=None, kind=None, name=None, namespace=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1alpha1Subject. APIVersion holds the API group and version of the referenced subject. Defaults to “v1” for ServiceAccount subjects. Defaults to “rbac.authorization.k8s.io/v1alpha1” for User and Group subjects.

Returns:The api_version of this V1alpha1Subject.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'kind': 'kind', 'name': 'name', 'namespace': 'namespace'}
kind

Gets the kind of this V1alpha1Subject. Kind of object being referenced. Values defined by this API group are “User”, “Group”, and “ServiceAccount”. If the Authorizer does not recognized the kind value, the Authorizer should report an error.

Returns:The kind of this V1alpha1Subject.
Return type:str
name

Gets the name of this V1alpha1Subject. Name of the object being referenced.

Returns:The name of this V1alpha1Subject.
Return type:str
namespace

Gets the namespace of this V1alpha1Subject. Namespace of the referenced object. If the object kind is non-namespace, such as “User” or “Group”, and this value is not empty the Authorizer should report an error.

Returns:The namespace of this V1alpha1Subject.
Return type:str
swagger_types = {'api_version': 'str', 'kind': 'str', 'name': 'str', 'namespace': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1beta1_api_version module

kubernetes.client.models.v1beta1_cpu_target_utilization module

kubernetes.client.models.v1beta1_daemon_set module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_daemon_set.V1beta1DaemonSet(api_version=None, kind=None, metadata=None, spec=None, status=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1beta1DaemonSet. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1beta1DaemonSet.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'kind': 'kind', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status'}
kind

Gets the kind of this V1beta1DaemonSet. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1beta1DaemonSet.
Return type:str
metadata

Gets the metadata of this V1beta1DaemonSet. Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

Returns:The metadata of this V1beta1DaemonSet.
Return type:V1ObjectMeta
spec

Gets the spec of this V1beta1DaemonSet. The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

Returns:The spec of this V1beta1DaemonSet.
Return type:V1beta1DaemonSetSpec
status

Gets the status of this V1beta1DaemonSet. The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

Returns:The status of this V1beta1DaemonSet.
Return type:V1beta1DaemonSetStatus
swagger_types = {'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1beta1DaemonSetSpec', 'status': 'V1beta1DaemonSetStatus'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1beta1_daemon_set_list module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_daemon_set_list.V1beta1DaemonSetList(api_version=None, items=None, kind=None, metadata=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1beta1DaemonSetList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1beta1DaemonSetList.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'items': 'items', 'kind': 'kind', 'metadata': 'metadata'}
items

Gets the items of this V1beta1DaemonSetList. A list of daemon sets.

Returns:The items of this V1beta1DaemonSetList.
Return type:list[V1beta1DaemonSet]
kind

Gets the kind of this V1beta1DaemonSetList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1beta1DaemonSetList.
Return type:str
metadata

Gets the metadata of this V1beta1DaemonSetList. Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

Returns:The metadata of this V1beta1DaemonSetList.
Return type:V1ListMeta
swagger_types = {'api_version': 'str', 'items': 'list[V1beta1DaemonSet]', 'kind': 'str', 'metadata': 'V1ListMeta'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1beta1_daemon_set_spec module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_daemon_set_spec.V1beta1DaemonSetSpec(min_ready_seconds=None, revision_history_limit=None, selector=None, template=None, template_generation=None, update_strategy=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'min_ready_seconds': 'minReadySeconds', 'revision_history_limit': 'revisionHistoryLimit', 'selector': 'selector', 'template': 'template', 'template_generation': 'templateGeneration', 'update_strategy': 'updateStrategy'}
min_ready_seconds

Gets the min_ready_seconds of this V1beta1DaemonSetSpec. The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready).

Returns:The min_ready_seconds of this V1beta1DaemonSetSpec.
Return type:int
revision_history_limit

Gets the revision_history_limit of this V1beta1DaemonSetSpec. The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.

Returns:The revision_history_limit of this V1beta1DaemonSetSpec.
Return type:int
selector

Gets the selector of this V1beta1DaemonSetSpec. A label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors

Returns:The selector of this V1beta1DaemonSetSpec.
Return type:V1LabelSelector
swagger_types = {'min_ready_seconds': 'int', 'revision_history_limit': 'int', 'selector': 'V1LabelSelector', 'template': 'V1PodTemplateSpec', 'template_generation': 'int', 'update_strategy': 'V1beta1DaemonSetUpdateStrategy'}
template

Gets the template of this V1beta1DaemonSetSpec. An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template’s node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template

Returns:The template of this V1beta1DaemonSetSpec.
Return type:V1PodTemplateSpec
template_generation

Gets the template_generation of this V1beta1DaemonSetSpec. DEPRECATED. A sequence number representing a specific generation of the template. Populated by the system. It can be set only during the creation.

Returns:The template_generation of this V1beta1DaemonSetSpec.
Return type:int
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

update_strategy

Gets the update_strategy of this V1beta1DaemonSetSpec. An update strategy to replace existing DaemonSet pods with new pods.

Returns:The update_strategy of this V1beta1DaemonSetSpec.
Return type:V1beta1DaemonSetUpdateStrategy

kubernetes.client.models.v1beta1_daemon_set_status module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_daemon_set_status.V1beta1DaemonSetStatus(collision_count=None, conditions=None, current_number_scheduled=None, desired_number_scheduled=None, number_available=None, number_misscheduled=None, number_ready=None, number_unavailable=None, observed_generation=None, updated_number_scheduled=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'collision_count': 'collisionCount', 'conditions': 'conditions', 'current_number_scheduled': 'currentNumberScheduled', 'desired_number_scheduled': 'desiredNumberScheduled', 'number_available': 'numberAvailable', 'number_misscheduled': 'numberMisscheduled', 'number_ready': 'numberReady', 'number_unavailable': 'numberUnavailable', 'observed_generation': 'observedGeneration', 'updated_number_scheduled': 'updatedNumberScheduled'}
collision_count

Gets the collision_count of this V1beta1DaemonSetStatus. Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.

Returns:The collision_count of this V1beta1DaemonSetStatus.
Return type:int
conditions

Gets the conditions of this V1beta1DaemonSetStatus. Represents the latest available observations of a DaemonSet’s current state.

Returns:The conditions of this V1beta1DaemonSetStatus.
Return type:list[V1beta1DaemonSetCondition]
current_number_scheduled

Gets the current_number_scheduled of this V1beta1DaemonSetStatus. The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/

Returns:The current_number_scheduled of this V1beta1DaemonSetStatus.
Return type:int
desired_number_scheduled

Gets the desired_number_scheduled of this V1beta1DaemonSetStatus. The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/

Returns:The desired_number_scheduled of this V1beta1DaemonSetStatus.
Return type:int
number_available

Gets the number_available of this V1beta1DaemonSetStatus. The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds)

Returns:The number_available of this V1beta1DaemonSetStatus.
Return type:int
number_misscheduled

Gets the number_misscheduled of this V1beta1DaemonSetStatus. The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/

Returns:The number_misscheduled of this V1beta1DaemonSetStatus.
Return type:int
number_ready

Gets the number_ready of this V1beta1DaemonSetStatus. The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready.

Returns:The number_ready of this V1beta1DaemonSetStatus.
Return type:int
number_unavailable

Gets the number_unavailable of this V1beta1DaemonSetStatus. The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds)

Returns:The number_unavailable of this V1beta1DaemonSetStatus.
Return type:int
observed_generation

Gets the observed_generation of this V1beta1DaemonSetStatus. The most recent generation observed by the daemon set controller.

Returns:The observed_generation of this V1beta1DaemonSetStatus.
Return type:int
swagger_types = {'collision_count': 'int', 'conditions': 'list[V1beta1DaemonSetCondition]', 'current_number_scheduled': 'int', 'desired_number_scheduled': 'int', 'number_available': 'int', 'number_misscheduled': 'int', 'number_ready': 'int', 'number_unavailable': 'int', 'observed_generation': 'int', 'updated_number_scheduled': 'int'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

updated_number_scheduled

Gets the updated_number_scheduled of this V1beta1DaemonSetStatus. The total number of nodes that are running updated daemon pod

Returns:The updated_number_scheduled of this V1beta1DaemonSetStatus.
Return type:int

kubernetes.client.models.v1beta1_deployment module

kubernetes.client.models.v1beta1_deployment_condition module

kubernetes.client.models.v1beta1_deployment_list module

kubernetes.client.models.v1beta1_deployment_rollback module

kubernetes.client.models.v1beta1_deployment_spec module

kubernetes.client.models.v1beta1_deployment_status module

kubernetes.client.models.v1beta1_deployment_strategy module

kubernetes.client.models.v1beta1_eviction module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_eviction.V1beta1Eviction(api_version=None, delete_options=None, kind=None, metadata=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1beta1Eviction. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1beta1Eviction.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'delete_options': 'deleteOptions', 'kind': 'kind', 'metadata': 'metadata'}
delete_options

Gets the delete_options of this V1beta1Eviction. DeleteOptions may be provided

Returns:The delete_options of this V1beta1Eviction.
Return type:V1DeleteOptions
kind

Gets the kind of this V1beta1Eviction. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1beta1Eviction.
Return type:str
metadata

Gets the metadata of this V1beta1Eviction. ObjectMeta describes the pod that is being evicted.

Returns:The metadata of this V1beta1Eviction.
Return type:V1ObjectMeta
swagger_types = {'api_version': 'str', 'delete_options': 'V1DeleteOptions', 'kind': 'str', 'metadata': 'V1ObjectMeta'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1beta1_horizontal_pod_autoscaler module

kubernetes.client.models.v1beta1_horizontal_pod_autoscaler_list module

kubernetes.client.models.v1beta1_horizontal_pod_autoscaler_spec module

kubernetes.client.models.v1beta1_horizontal_pod_autoscaler_status module

kubernetes.client.models.v1beta1_http_ingress_path module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_http_ingress_path.V1beta1HTTPIngressPath(backend=None, path=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'backend': 'backend', 'path': 'path'}
backend

Gets the backend of this V1beta1HTTPIngressPath. Backend defines the referenced service endpoint to which the traffic will be forwarded to.

Returns:The backend of this V1beta1HTTPIngressPath.
Return type:V1beta1IngressBackend
path

Gets the path of this V1beta1HTTPIngressPath. Path is an extended POSIX regex as defined by IEEE Std 1003.1, (i.e this follows the egrep/unix syntax, not the perl syntax) matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional “path” part of a URL as defined by RFC 3986. Paths must begin with a ‘/’. If unspecified, the path defaults to a catch all sending traffic to the backend.

Returns:The path of this V1beta1HTTPIngressPath.
Return type:str
swagger_types = {'backend': 'V1beta1IngressBackend', 'path': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1beta1_http_ingress_rule_value module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_http_ingress_rule_value.V1beta1HTTPIngressRuleValue(paths=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'paths': 'paths'}
paths

Gets the paths of this V1beta1HTTPIngressRuleValue. A collection of paths that map requests to backends.

Returns:The paths of this V1beta1HTTPIngressRuleValue.
Return type:list[V1beta1HTTPIngressPath]
swagger_types = {'paths': 'list[V1beta1HTTPIngressPath]'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1beta1_ingress module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_ingress.V1beta1Ingress(api_version=None, kind=None, metadata=None, spec=None, status=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1beta1Ingress. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1beta1Ingress.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'kind': 'kind', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status'}
kind

Gets the kind of this V1beta1Ingress. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1beta1Ingress.
Return type:str
metadata

Gets the metadata of this V1beta1Ingress. Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

Returns:The metadata of this V1beta1Ingress.
Return type:V1ObjectMeta
spec

Gets the spec of this V1beta1Ingress. Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

Returns:The spec of this V1beta1Ingress.
Return type:V1beta1IngressSpec
status

Gets the status of this V1beta1Ingress. Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

Returns:The status of this V1beta1Ingress.
Return type:V1beta1IngressStatus
swagger_types = {'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1beta1IngressSpec', 'status': 'V1beta1IngressStatus'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1beta1_ingress_backend module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_ingress_backend.V1beta1IngressBackend(service_name=None, service_port=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'service_name': 'serviceName', 'service_port': 'servicePort'}
service_name

Gets the service_name of this V1beta1IngressBackend. Specifies the name of the referenced service.

Returns:The service_name of this V1beta1IngressBackend.
Return type:str
service_port

Gets the service_port of this V1beta1IngressBackend. Specifies the port of the referenced service.

Returns:The service_port of this V1beta1IngressBackend.
Return type:object
swagger_types = {'service_name': 'str', 'service_port': 'object'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1beta1_ingress_list module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_ingress_list.V1beta1IngressList(api_version=None, items=None, kind=None, metadata=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1beta1IngressList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1beta1IngressList.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'items': 'items', 'kind': 'kind', 'metadata': 'metadata'}
items

Gets the items of this V1beta1IngressList. Items is the list of Ingress.

Returns:The items of this V1beta1IngressList.
Return type:list[V1beta1Ingress]
kind

Gets the kind of this V1beta1IngressList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1beta1IngressList.
Return type:str
metadata

Gets the metadata of this V1beta1IngressList. Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

Returns:The metadata of this V1beta1IngressList.
Return type:V1ListMeta
swagger_types = {'api_version': 'str', 'items': 'list[V1beta1Ingress]', 'kind': 'str', 'metadata': 'V1ListMeta'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1beta1_ingress_rule module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_ingress_rule.V1beta1IngressRule(host=None, http=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'host': 'host', 'http': 'http'}
host

Gets the host of this V1beta1IngressRule. Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the “host” part of the URI as defined in the RFC: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the IP in the Spec of the parent Ingress. 2. The : delimiter is not respected because ports are not allowed. Currently the port of an Ingress is implicitly :80 for http and :443 for https. Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue.

Returns:The host of this V1beta1IngressRule.
Return type:str
http

Gets the http of this V1beta1IngressRule.

Returns:The http of this V1beta1IngressRule.
Return type:V1beta1HTTPIngressRuleValue
swagger_types = {'host': 'str', 'http': 'V1beta1HTTPIngressRuleValue'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1beta1_ingress_spec module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_ingress_spec.V1beta1IngressSpec(backend=None, rules=None, tls=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'backend': 'backend', 'rules': 'rules', 'tls': 'tls'}
backend

Gets the backend of this V1beta1IngressSpec. A default backend capable of servicing requests that don’t match any rule. At least one of ‘backend’ or ‘rules’ must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default.

Returns:The backend of this V1beta1IngressSpec.
Return type:V1beta1IngressBackend
rules

Gets the rules of this V1beta1IngressSpec. A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend.

Returns:The rules of this V1beta1IngressSpec.
Return type:list[V1beta1IngressRule]
swagger_types = {'backend': 'V1beta1IngressBackend', 'rules': 'list[V1beta1IngressRule]', 'tls': 'list[V1beta1IngressTLS]'}
tls

Gets the tls of this V1beta1IngressSpec. TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI.

Returns:The tls of this V1beta1IngressSpec.
Return type:list[V1beta1IngressTLS]
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1beta1_ingress_status module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_ingress_status.V1beta1IngressStatus(load_balancer=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'load_balancer': 'loadBalancer'}
load_balancer

Gets the load_balancer of this V1beta1IngressStatus. LoadBalancer contains the current status of the load-balancer.

Returns:The load_balancer of this V1beta1IngressStatus.
Return type:V1LoadBalancerStatus
swagger_types = {'load_balancer': 'V1LoadBalancerStatus'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1beta1_ingress_tls module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_ingress_tls.V1beta1IngressTLS(hosts=None, secret_name=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'hosts': 'hosts', 'secret_name': 'secretName'}
hosts

Gets the hosts of this V1beta1IngressTLS. Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified.

Returns:The hosts of this V1beta1IngressTLS.
Return type:list[str]
secret_name

Gets the secret_name of this V1beta1IngressTLS. SecretName is the name of the secret used to terminate SSL traffic on 443. Field is left optional to allow SSL routing based on SNI hostname alone. If the SNI host in a listener conflicts with the “Host” header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing.

Returns:The secret_name of this V1beta1IngressTLS.
Return type:str
swagger_types = {'hosts': 'list[str]', 'secret_name': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1beta1_job module

kubernetes.client.models.v1beta1_job_condition module

kubernetes.client.models.v1beta1_job_list module

kubernetes.client.models.v1beta1_job_spec module

kubernetes.client.models.v1beta1_job_status module

kubernetes.client.models.v1beta1_local_subject_access_review module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_local_subject_access_review.V1beta1LocalSubjectAccessReview(api_version=None, kind=None, metadata=None, spec=None, status=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1beta1LocalSubjectAccessReview. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1beta1LocalSubjectAccessReview.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'kind': 'kind', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status'}
kind

Gets the kind of this V1beta1LocalSubjectAccessReview. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1beta1LocalSubjectAccessReview.
Return type:str
metadata

Gets the metadata of this V1beta1LocalSubjectAccessReview.

Returns:The metadata of this V1beta1LocalSubjectAccessReview.
Return type:V1ObjectMeta
spec

Gets the spec of this V1beta1LocalSubjectAccessReview. Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted.

Returns:The spec of this V1beta1LocalSubjectAccessReview.
Return type:V1beta1SubjectAccessReviewSpec
status

Gets the status of this V1beta1LocalSubjectAccessReview. Status is filled in by the server and indicates whether the request is allowed or not

Returns:The status of this V1beta1LocalSubjectAccessReview.
Return type:V1beta1SubjectAccessReviewStatus
swagger_types = {'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1beta1SubjectAccessReviewSpec', 'status': 'V1beta1SubjectAccessReviewStatus'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1beta1_network_policy module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_network_policy.V1beta1NetworkPolicy(api_version=None, kind=None, metadata=None, spec=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1beta1NetworkPolicy. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1beta1NetworkPolicy.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'kind': 'kind', 'metadata': 'metadata', 'spec': 'spec'}
kind

Gets the kind of this V1beta1NetworkPolicy. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1beta1NetworkPolicy.
Return type:str
metadata

Gets the metadata of this V1beta1NetworkPolicy. Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

Returns:The metadata of this V1beta1NetworkPolicy.
Return type:V1ObjectMeta
spec

Gets the spec of this V1beta1NetworkPolicy. Specification of the desired behavior for this NetworkPolicy.

Returns:The spec of this V1beta1NetworkPolicy.
Return type:V1beta1NetworkPolicySpec
swagger_types = {'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1beta1NetworkPolicySpec'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1beta1_network_policy_ingress_rule module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_network_policy_ingress_rule.V1beta1NetworkPolicyIngressRule(_from=None, ports=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'_from': 'from', 'ports': 'ports'}
ports

Gets the ports of this V1beta1NetworkPolicyIngressRule. List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.

Returns:The ports of this V1beta1NetworkPolicyIngressRule.
Return type:list[V1beta1NetworkPolicyPort]
swagger_types = {'_from': 'list[V1beta1NetworkPolicyPeer]', 'ports': 'list[V1beta1NetworkPolicyPort]'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1beta1_network_policy_list module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_network_policy_list.V1beta1NetworkPolicyList(api_version=None, items=None, kind=None, metadata=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1beta1NetworkPolicyList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1beta1NetworkPolicyList.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'items': 'items', 'kind': 'kind', 'metadata': 'metadata'}
items

Gets the items of this V1beta1NetworkPolicyList. Items is a list of schema objects.

Returns:The items of this V1beta1NetworkPolicyList.
Return type:list[V1beta1NetworkPolicy]
kind

Gets the kind of this V1beta1NetworkPolicyList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1beta1NetworkPolicyList.
Return type:str
metadata

Gets the metadata of this V1beta1NetworkPolicyList. Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

Returns:The metadata of this V1beta1NetworkPolicyList.
Return type:V1ListMeta
swagger_types = {'api_version': 'str', 'items': 'list[V1beta1NetworkPolicy]', 'kind': 'str', 'metadata': 'V1ListMeta'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1beta1_network_policy_peer module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_network_policy_peer.V1beta1NetworkPolicyPeer(ip_block=None, namespace_selector=None, pod_selector=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'ip_block': 'ipBlock', 'namespace_selector': 'namespaceSelector', 'pod_selector': 'podSelector'}
ip_block

Gets the ip_block of this V1beta1NetworkPolicyPeer. IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be.

Returns:The ip_block of this V1beta1NetworkPolicyPeer.
Return type:V1beta1IPBlock
namespace_selector

Gets the namespace_selector of this V1beta1NetworkPolicyPeer. Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces. If PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector.

Returns:The namespace_selector of this V1beta1NetworkPolicyPeer.
Return type:V1LabelSelector
pod_selector

Gets the pod_selector of this V1beta1NetworkPolicyPeer. This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods. If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy’s own Namespace.

Returns:The pod_selector of this V1beta1NetworkPolicyPeer.
Return type:V1LabelSelector
swagger_types = {'ip_block': 'V1beta1IPBlock', 'namespace_selector': 'V1LabelSelector', 'pod_selector': 'V1LabelSelector'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1beta1_network_policy_port module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_network_policy_port.V1beta1NetworkPolicyPort(port=None, protocol=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'port': 'port', 'protocol': 'protocol'}
port

Gets the port of this V1beta1NetworkPolicyPort. If specified, the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched.

Returns:The port of this V1beta1NetworkPolicyPort.
Return type:object
protocol

Gets the protocol of this V1beta1NetworkPolicyPort. Optional. The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.

Returns:The protocol of this V1beta1NetworkPolicyPort.
Return type:str
swagger_types = {'port': 'object', 'protocol': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1beta1_network_policy_spec module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_network_policy_spec.V1beta1NetworkPolicySpec(egress=None, ingress=None, pod_selector=None, policy_types=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'egress': 'egress', 'ingress': 'ingress', 'pod_selector': 'podSelector', 'policy_types': 'policyTypes'}
egress

Gets the egress of this V1beta1NetworkPolicySpec. List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8

Returns:The egress of this V1beta1NetworkPolicySpec.
Return type:list[V1beta1NetworkPolicyEgressRule]
ingress

Gets the ingress of this V1beta1NetworkPolicySpec. List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod’s local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default).

Returns:The ingress of this V1beta1NetworkPolicySpec.
Return type:list[V1beta1NetworkPolicyIngressRule]
pod_selector

Gets the pod_selector of this V1beta1NetworkPolicySpec. Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace.

Returns:The pod_selector of this V1beta1NetworkPolicySpec.
Return type:V1LabelSelector
policy_types

Gets the policy_types of this V1beta1NetworkPolicySpec. List of rule types that the NetworkPolicy relates to. Valid options are Ingress, Egress, or Ingress,Egress. If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ “Egress” ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include “Egress” (since such a policy would not include an Egress section and would otherwise default to just [ “Ingress” ]). This field is beta-level in 1.8

Returns:The policy_types of this V1beta1NetworkPolicySpec.
Return type:list[str]
swagger_types = {'egress': 'list[V1beta1NetworkPolicyEgressRule]', 'ingress': 'list[V1beta1NetworkPolicyIngressRule]', 'pod_selector': 'V1LabelSelector', 'policy_types': 'list[str]'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1beta1_non_resource_attributes module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_non_resource_attributes.V1beta1NonResourceAttributes(path=None, verb=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'path': 'path', 'verb': 'verb'}
path

Gets the path of this V1beta1NonResourceAttributes. Path is the URL path of the request

Returns:The path of this V1beta1NonResourceAttributes.
Return type:str
swagger_types = {'path': 'str', 'verb': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

verb

Gets the verb of this V1beta1NonResourceAttributes. Verb is the standard HTTP verb

Returns:The verb of this V1beta1NonResourceAttributes.
Return type:str

kubernetes.client.models.v1beta1_pod_disruption_budget module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_pod_disruption_budget.V1beta1PodDisruptionBudget(api_version=None, kind=None, metadata=None, spec=None, status=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1beta1PodDisruptionBudget. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1beta1PodDisruptionBudget.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'kind': 'kind', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status'}
kind

Gets the kind of this V1beta1PodDisruptionBudget. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1beta1PodDisruptionBudget.
Return type:str
metadata

Gets the metadata of this V1beta1PodDisruptionBudget.

Returns:The metadata of this V1beta1PodDisruptionBudget.
Return type:V1ObjectMeta
spec

Gets the spec of this V1beta1PodDisruptionBudget. Specification of the desired behavior of the PodDisruptionBudget.

Returns:The spec of this V1beta1PodDisruptionBudget.
Return type:V1beta1PodDisruptionBudgetSpec
status

Gets the status of this V1beta1PodDisruptionBudget. Most recently observed status of the PodDisruptionBudget.

Returns:The status of this V1beta1PodDisruptionBudget.
Return type:V1beta1PodDisruptionBudgetStatus
swagger_types = {'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1beta1PodDisruptionBudgetSpec', 'status': 'V1beta1PodDisruptionBudgetStatus'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1beta1_pod_disruption_budget_list module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_pod_disruption_budget_list.V1beta1PodDisruptionBudgetList(api_version=None, items=None, kind=None, metadata=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1beta1PodDisruptionBudgetList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1beta1PodDisruptionBudgetList.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'items': 'items', 'kind': 'kind', 'metadata': 'metadata'}
items

Gets the items of this V1beta1PodDisruptionBudgetList.

Returns:The items of this V1beta1PodDisruptionBudgetList.
Return type:list[V1beta1PodDisruptionBudget]
kind

Gets the kind of this V1beta1PodDisruptionBudgetList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1beta1PodDisruptionBudgetList.
Return type:str
metadata

Gets the metadata of this V1beta1PodDisruptionBudgetList.

Returns:The metadata of this V1beta1PodDisruptionBudgetList.
Return type:V1ListMeta
swagger_types = {'api_version': 'str', 'items': 'list[V1beta1PodDisruptionBudget]', 'kind': 'str', 'metadata': 'V1ListMeta'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1beta1_pod_disruption_budget_spec module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_pod_disruption_budget_spec.V1beta1PodDisruptionBudgetSpec(max_unavailable=None, min_available=None, selector=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'max_unavailable': 'maxUnavailable', 'min_available': 'minAvailable', 'selector': 'selector'}
max_unavailable

Gets the max_unavailable of this V1beta1PodDisruptionBudgetSpec. An eviction is allowed if at most “maxUnavailable” pods selected by “selector” are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with “minAvailable”.

Returns:The max_unavailable of this V1beta1PodDisruptionBudgetSpec.
Return type:object
min_available

Gets the min_available of this V1beta1PodDisruptionBudgetSpec. An eviction is allowed if at least “minAvailable” pods selected by “selector” will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying “100%”.

Returns:The min_available of this V1beta1PodDisruptionBudgetSpec.
Return type:object
selector

Gets the selector of this V1beta1PodDisruptionBudgetSpec. Label query over pods whose evictions are managed by the disruption budget.

Returns:The selector of this V1beta1PodDisruptionBudgetSpec.
Return type:V1LabelSelector
swagger_types = {'max_unavailable': 'object', 'min_available': 'object', 'selector': 'V1LabelSelector'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1beta1_pod_disruption_budget_status module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_pod_disruption_budget_status.V1beta1PodDisruptionBudgetStatus(current_healthy=None, desired_healthy=None, disrupted_pods=None, disruptions_allowed=None, expected_pods=None, observed_generation=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'current_healthy': 'currentHealthy', 'desired_healthy': 'desiredHealthy', 'disrupted_pods': 'disruptedPods', 'disruptions_allowed': 'disruptionsAllowed', 'expected_pods': 'expectedPods', 'observed_generation': 'observedGeneration'}
current_healthy

Gets the current_healthy of this V1beta1PodDisruptionBudgetStatus. current number of healthy pods

Returns:The current_healthy of this V1beta1PodDisruptionBudgetStatus.
Return type:int
desired_healthy

Gets the desired_healthy of this V1beta1PodDisruptionBudgetStatus. minimum desired number of healthy pods

Returns:The desired_healthy of this V1beta1PodDisruptionBudgetStatus.
Return type:int
disrupted_pods

Gets the disrupted_pods of this V1beta1PodDisruptionBudgetStatus. DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn’t occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions.

Returns:The disrupted_pods of this V1beta1PodDisruptionBudgetStatus.
Return type:dict(str, datetime)
disruptions_allowed

Gets the disruptions_allowed of this V1beta1PodDisruptionBudgetStatus. Number of pod disruptions that are currently allowed.

Returns:The disruptions_allowed of this V1beta1PodDisruptionBudgetStatus.
Return type:int
expected_pods

Gets the expected_pods of this V1beta1PodDisruptionBudgetStatus. total number of pods counted by this disruption budget

Returns:The expected_pods of this V1beta1PodDisruptionBudgetStatus.
Return type:int
observed_generation

Gets the observed_generation of this V1beta1PodDisruptionBudgetStatus. Most recent generation observed when updating this PDB status. PodDisruptionsAllowed and other status informatio is valid only if observedGeneration equals to PDB’s object generation.

Returns:The observed_generation of this V1beta1PodDisruptionBudgetStatus.
Return type:int
swagger_types = {'current_healthy': 'int', 'desired_healthy': 'int', 'disrupted_pods': 'dict(str, datetime)', 'disruptions_allowed': 'int', 'expected_pods': 'int', 'observed_generation': 'int'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1beta1_replica_set module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_replica_set.V1beta1ReplicaSet(api_version=None, kind=None, metadata=None, spec=None, status=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1beta1ReplicaSet. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1beta1ReplicaSet.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'kind': 'kind', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status'}
kind

Gets the kind of this V1beta1ReplicaSet. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1beta1ReplicaSet.
Return type:str
metadata

Gets the metadata of this V1beta1ReplicaSet. If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

Returns:The metadata of this V1beta1ReplicaSet.
Return type:V1ObjectMeta
spec

Gets the spec of this V1beta1ReplicaSet. Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

Returns:The spec of this V1beta1ReplicaSet.
Return type:V1beta1ReplicaSetSpec
status

Gets the status of this V1beta1ReplicaSet. Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

Returns:The status of this V1beta1ReplicaSet.
Return type:V1beta1ReplicaSetStatus
swagger_types = {'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1beta1ReplicaSetSpec', 'status': 'V1beta1ReplicaSetStatus'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1beta1_replica_set_condition module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_replica_set_condition.V1beta1ReplicaSetCondition(last_transition_time=None, message=None, reason=None, status=None, type=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'last_transition_time': 'lastTransitionTime', 'message': 'message', 'reason': 'reason', 'status': 'status', 'type': 'type'}
last_transition_time

Gets the last_transition_time of this V1beta1ReplicaSetCondition. The last time the condition transitioned from one status to another.

Returns:The last_transition_time of this V1beta1ReplicaSetCondition.
Return type:datetime
message

Gets the message of this V1beta1ReplicaSetCondition. A human readable message indicating details about the transition.

Returns:The message of this V1beta1ReplicaSetCondition.
Return type:str
reason

Gets the reason of this V1beta1ReplicaSetCondition. The reason for the condition’s last transition.

Returns:The reason of this V1beta1ReplicaSetCondition.
Return type:str
status

Gets the status of this V1beta1ReplicaSetCondition. Status of the condition, one of True, False, Unknown.

Returns:The status of this V1beta1ReplicaSetCondition.
Return type:str
swagger_types = {'last_transition_time': 'datetime', 'message': 'str', 'reason': 'str', 'status': 'str', 'type': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

type

Gets the type of this V1beta1ReplicaSetCondition. Type of replica set condition.

Returns:The type of this V1beta1ReplicaSetCondition.
Return type:str

kubernetes.client.models.v1beta1_replica_set_list module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_replica_set_list.V1beta1ReplicaSetList(api_version=None, items=None, kind=None, metadata=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1beta1ReplicaSetList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1beta1ReplicaSetList.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'items': 'items', 'kind': 'kind', 'metadata': 'metadata'}
items

Gets the items of this V1beta1ReplicaSetList. List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller

Returns:The items of this V1beta1ReplicaSetList.
Return type:list[V1beta1ReplicaSet]
kind

Gets the kind of this V1beta1ReplicaSetList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1beta1ReplicaSetList.
Return type:str
metadata

Gets the metadata of this V1beta1ReplicaSetList. Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The metadata of this V1beta1ReplicaSetList.
Return type:V1ListMeta
swagger_types = {'api_version': 'str', 'items': 'list[V1beta1ReplicaSet]', 'kind': 'str', 'metadata': 'V1ListMeta'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1beta1_replica_set_spec module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_replica_set_spec.V1beta1ReplicaSetSpec(min_ready_seconds=None, replicas=None, selector=None, template=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'min_ready_seconds': 'minReadySeconds', 'replicas': 'replicas', 'selector': 'selector', 'template': 'template'}
min_ready_seconds

Gets the min_ready_seconds of this V1beta1ReplicaSetSpec. Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)

Returns:The min_ready_seconds of this V1beta1ReplicaSetSpec.
Return type:int
replicas

Gets the replicas of this V1beta1ReplicaSetSpec. Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller

Returns:The replicas of this V1beta1ReplicaSetSpec.
Return type:int
selector

Gets the selector of this V1beta1ReplicaSetSpec. Selector is a label query over pods that should match the replica count. If the selector is empty, it is defaulted to the labels present on the pod template. Label keys and values that must match in order to be controlled by this replica set. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors

Returns:The selector of this V1beta1ReplicaSetSpec.
Return type:V1LabelSelector
swagger_types = {'min_ready_seconds': 'int', 'replicas': 'int', 'selector': 'V1LabelSelector', 'template': 'V1PodTemplateSpec'}
template

Gets the template of this V1beta1ReplicaSetSpec. Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template

Returns:The template of this V1beta1ReplicaSetSpec.
Return type:V1PodTemplateSpec
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1beta1_replica_set_status module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_replica_set_status.V1beta1ReplicaSetStatus(available_replicas=None, conditions=None, fully_labeled_replicas=None, observed_generation=None, ready_replicas=None, replicas=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'available_replicas': 'availableReplicas', 'conditions': 'conditions', 'fully_labeled_replicas': 'fullyLabeledReplicas', 'observed_generation': 'observedGeneration', 'ready_replicas': 'readyReplicas', 'replicas': 'replicas'}
available_replicas

Gets the available_replicas of this V1beta1ReplicaSetStatus. The number of available replicas (ready for at least minReadySeconds) for this replica set.

Returns:The available_replicas of this V1beta1ReplicaSetStatus.
Return type:int
conditions

Gets the conditions of this V1beta1ReplicaSetStatus. Represents the latest available observations of a replica set’s current state.

Returns:The conditions of this V1beta1ReplicaSetStatus.
Return type:list[V1beta1ReplicaSetCondition]
fully_labeled_replicas

Gets the fully_labeled_replicas of this V1beta1ReplicaSetStatus. The number of pods that have labels matching the labels of the pod template of the replicaset.

Returns:The fully_labeled_replicas of this V1beta1ReplicaSetStatus.
Return type:int
observed_generation

Gets the observed_generation of this V1beta1ReplicaSetStatus. ObservedGeneration reflects the generation of the most recently observed ReplicaSet.

Returns:The observed_generation of this V1beta1ReplicaSetStatus.
Return type:int
ready_replicas

Gets the ready_replicas of this V1beta1ReplicaSetStatus. The number of ready replicas for this replica set.

Returns:The ready_replicas of this V1beta1ReplicaSetStatus.
Return type:int
replicas

Gets the replicas of this V1beta1ReplicaSetStatus. Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller

Returns:The replicas of this V1beta1ReplicaSetStatus.
Return type:int
swagger_types = {'available_replicas': 'int', 'conditions': 'list[V1beta1ReplicaSetCondition]', 'fully_labeled_replicas': 'int', 'observed_generation': 'int', 'ready_replicas': 'int', 'replicas': 'int'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1beta1_resource_attributes module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_resource_attributes.V1beta1ResourceAttributes(group=None, name=None, namespace=None, resource=None, subresource=None, verb=None, version=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'group': 'group', 'name': 'name', 'namespace': 'namespace', 'resource': 'resource', 'subresource': 'subresource', 'verb': 'verb', 'version': 'version'}
group

Gets the group of this V1beta1ResourceAttributes. Group is the API Group of the Resource. “*” means all.

Returns:The group of this V1beta1ResourceAttributes.
Return type:str
name

Gets the name of this V1beta1ResourceAttributes. Name is the name of the resource being requested for a “get” or deleted for a “delete”. “” (empty) means all.

Returns:The name of this V1beta1ResourceAttributes.
Return type:str
namespace

Gets the namespace of this V1beta1ResourceAttributes. Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces “” (empty) is defaulted for LocalSubjectAccessReviews “” (empty) is empty for cluster-scoped resources “” (empty) means “all” for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview

Returns:The namespace of this V1beta1ResourceAttributes.
Return type:str
resource

Gets the resource of this V1beta1ResourceAttributes. Resource is one of the existing resource types. “*” means all.

Returns:The resource of this V1beta1ResourceAttributes.
Return type:str
subresource

Gets the subresource of this V1beta1ResourceAttributes. Subresource is one of the existing resource types. “” means none.

Returns:The subresource of this V1beta1ResourceAttributes.
Return type:str
swagger_types = {'group': 'str', 'name': 'str', 'namespace': 'str', 'resource': 'str', 'subresource': 'str', 'verb': 'str', 'version': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

verb

Gets the verb of this V1beta1ResourceAttributes. Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. “*” means all.

Returns:The verb of this V1beta1ResourceAttributes.
Return type:str
version

Gets the version of this V1beta1ResourceAttributes. Version is the API Version of the Resource. “*” means all.

Returns:The version of this V1beta1ResourceAttributes.
Return type:str

kubernetes.client.models.v1beta1_rollback_config module

kubernetes.client.models.v1beta1_rolling_update_deployment module

kubernetes.client.models.v1beta1_scale module

kubernetes.client.models.v1beta1_scale_spec module

kubernetes.client.models.v1beta1_scale_status module

kubernetes.client.models.v1beta1_self_subject_access_review module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_self_subject_access_review.V1beta1SelfSubjectAccessReview(api_version=None, kind=None, metadata=None, spec=None, status=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1beta1SelfSubjectAccessReview. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1beta1SelfSubjectAccessReview.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'kind': 'kind', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status'}
kind

Gets the kind of this V1beta1SelfSubjectAccessReview. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1beta1SelfSubjectAccessReview.
Return type:str
metadata

Gets the metadata of this V1beta1SelfSubjectAccessReview.

Returns:The metadata of this V1beta1SelfSubjectAccessReview.
Return type:V1ObjectMeta
spec

Gets the spec of this V1beta1SelfSubjectAccessReview. Spec holds information about the request being evaluated. user and groups must be empty

Returns:The spec of this V1beta1SelfSubjectAccessReview.
Return type:V1beta1SelfSubjectAccessReviewSpec
status

Gets the status of this V1beta1SelfSubjectAccessReview. Status is filled in by the server and indicates whether the request is allowed or not

Returns:The status of this V1beta1SelfSubjectAccessReview.
Return type:V1beta1SubjectAccessReviewStatus
swagger_types = {'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1beta1SelfSubjectAccessReviewSpec', 'status': 'V1beta1SubjectAccessReviewStatus'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1beta1_self_subject_access_review_spec module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_self_subject_access_review_spec.V1beta1SelfSubjectAccessReviewSpec(non_resource_attributes=None, resource_attributes=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'non_resource_attributes': 'nonResourceAttributes', 'resource_attributes': 'resourceAttributes'}
non_resource_attributes

Gets the non_resource_attributes of this V1beta1SelfSubjectAccessReviewSpec. NonResourceAttributes describes information for a non-resource access request

Returns:The non_resource_attributes of this V1beta1SelfSubjectAccessReviewSpec.
Return type:V1beta1NonResourceAttributes
resource_attributes

Gets the resource_attributes of this V1beta1SelfSubjectAccessReviewSpec. ResourceAuthorizationAttributes describes information for a resource access request

Returns:The resource_attributes of this V1beta1SelfSubjectAccessReviewSpec.
Return type:V1beta1ResourceAttributes
swagger_types = {'non_resource_attributes': 'V1beta1NonResourceAttributes', 'resource_attributes': 'V1beta1ResourceAttributes'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1beta1_stateful_set module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_stateful_set.V1beta1StatefulSet(api_version=None, kind=None, metadata=None, spec=None, status=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1beta1StatefulSet. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1beta1StatefulSet.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'kind': 'kind', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status'}
kind

Gets the kind of this V1beta1StatefulSet. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1beta1StatefulSet.
Return type:str
metadata

Gets the metadata of this V1beta1StatefulSet.

Returns:The metadata of this V1beta1StatefulSet.
Return type:V1ObjectMeta
spec

Gets the spec of this V1beta1StatefulSet. Spec defines the desired identities of pods in this set.

Returns:The spec of this V1beta1StatefulSet.
Return type:V1beta1StatefulSetSpec
status

Gets the status of this V1beta1StatefulSet. Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time.

Returns:The status of this V1beta1StatefulSet.
Return type:V1beta1StatefulSetStatus
swagger_types = {'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1beta1StatefulSetSpec', 'status': 'V1beta1StatefulSetStatus'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1beta1_stateful_set_list module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_stateful_set_list.V1beta1StatefulSetList(api_version=None, items=None, kind=None, metadata=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1beta1StatefulSetList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1beta1StatefulSetList.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'items': 'items', 'kind': 'kind', 'metadata': 'metadata'}
items

Gets the items of this V1beta1StatefulSetList.

Returns:The items of this V1beta1StatefulSetList.
Return type:list[V1beta1StatefulSet]
kind

Gets the kind of this V1beta1StatefulSetList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1beta1StatefulSetList.
Return type:str
metadata

Gets the metadata of this V1beta1StatefulSetList.

Returns:The metadata of this V1beta1StatefulSetList.
Return type:V1ListMeta
swagger_types = {'api_version': 'str', 'items': 'list[V1beta1StatefulSet]', 'kind': 'str', 'metadata': 'V1ListMeta'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1beta1_stateful_set_spec module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_stateful_set_spec.V1beta1StatefulSetSpec(pod_management_policy=None, replicas=None, revision_history_limit=None, selector=None, service_name=None, template=None, update_strategy=None, volume_claim_templates=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'pod_management_policy': 'podManagementPolicy', 'replicas': 'replicas', 'revision_history_limit': 'revisionHistoryLimit', 'selector': 'selector', 'service_name': 'serviceName', 'template': 'template', 'update_strategy': 'updateStrategy', 'volume_claim_templates': 'volumeClaimTemplates'}
pod_management_policy

Gets the pod_management_policy of this V1beta1StatefulSetSpec. podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is OrderedReady, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is Parallel which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once.

Returns:The pod_management_policy of this V1beta1StatefulSetSpec.
Return type:str
replicas

Gets the replicas of this V1beta1StatefulSetSpec. replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1.

Returns:The replicas of this V1beta1StatefulSetSpec.
Return type:int
revision_history_limit

Gets the revision_history_limit of this V1beta1StatefulSetSpec. revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet’s revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10.

Returns:The revision_history_limit of this V1beta1StatefulSetSpec.
Return type:int
selector

Gets the selector of this V1beta1StatefulSetSpec. selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors

Returns:The selector of this V1beta1StatefulSetSpec.
Return type:V1LabelSelector
service_name

Gets the service_name of this V1beta1StatefulSetSpec. serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where “pod-specific-string” is managed by the StatefulSet controller.

Returns:The service_name of this V1beta1StatefulSetSpec.
Return type:str
swagger_types = {'pod_management_policy': 'str', 'replicas': 'int', 'revision_history_limit': 'int', 'selector': 'V1LabelSelector', 'service_name': 'str', 'template': 'V1PodTemplateSpec', 'update_strategy': 'V1beta1StatefulSetUpdateStrategy', 'volume_claim_templates': 'list[V1PersistentVolumeClaim]'}
template

Gets the template of this V1beta1StatefulSetSpec. template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet.

Returns:The template of this V1beta1StatefulSetSpec.
Return type:V1PodTemplateSpec
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

update_strategy

Gets the update_strategy of this V1beta1StatefulSetSpec. updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template.

Returns:The update_strategy of this V1beta1StatefulSetSpec.
Return type:V1beta1StatefulSetUpdateStrategy
volume_claim_templates

Gets the volume_claim_templates of this V1beta1StatefulSetSpec. volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name.

Returns:The volume_claim_templates of this V1beta1StatefulSetSpec.
Return type:list[V1PersistentVolumeClaim]

kubernetes.client.models.v1beta1_stateful_set_status module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_stateful_set_status.V1beta1StatefulSetStatus(collision_count=None, conditions=None, current_replicas=None, current_revision=None, observed_generation=None, ready_replicas=None, replicas=None, update_revision=None, updated_replicas=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'collision_count': 'collisionCount', 'conditions': 'conditions', 'current_replicas': 'currentReplicas', 'current_revision': 'currentRevision', 'observed_generation': 'observedGeneration', 'ready_replicas': 'readyReplicas', 'replicas': 'replicas', 'update_revision': 'updateRevision', 'updated_replicas': 'updatedReplicas'}
collision_count

Gets the collision_count of this V1beta1StatefulSetStatus. collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.

Returns:The collision_count of this V1beta1StatefulSetStatus.
Return type:int
conditions

Gets the conditions of this V1beta1StatefulSetStatus. Represents the latest available observations of a statefulset’s current state.

Returns:The conditions of this V1beta1StatefulSetStatus.
Return type:list[V1beta1StatefulSetCondition]
current_replicas

Gets the current_replicas of this V1beta1StatefulSetStatus. currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision.

Returns:The current_replicas of this V1beta1StatefulSetStatus.
Return type:int
current_revision

Gets the current_revision of this V1beta1StatefulSetStatus. currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas).

Returns:The current_revision of this V1beta1StatefulSetStatus.
Return type:str
observed_generation

Gets the observed_generation of this V1beta1StatefulSetStatus. observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet’s generation, which is updated on mutation by the API Server.

Returns:The observed_generation of this V1beta1StatefulSetStatus.
Return type:int
ready_replicas

Gets the ready_replicas of this V1beta1StatefulSetStatus. readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition.

Returns:The ready_replicas of this V1beta1StatefulSetStatus.
Return type:int
replicas

Gets the replicas of this V1beta1StatefulSetStatus. replicas is the number of Pods created by the StatefulSet controller.

Returns:The replicas of this V1beta1StatefulSetStatus.
Return type:int
swagger_types = {'collision_count': 'int', 'conditions': 'list[V1beta1StatefulSetCondition]', 'current_replicas': 'int', 'current_revision': 'str', 'observed_generation': 'int', 'ready_replicas': 'int', 'replicas': 'int', 'update_revision': 'str', 'updated_replicas': 'int'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

update_revision

Gets the update_revision of this V1beta1StatefulSetStatus. updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas)

Returns:The update_revision of this V1beta1StatefulSetStatus.
Return type:str
updated_replicas

Gets the updated_replicas of this V1beta1StatefulSetStatus. updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision.

Returns:The updated_replicas of this V1beta1StatefulSetStatus.
Return type:int

kubernetes.client.models.v1beta1_storage_class module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_storage_class.V1beta1StorageClass(allow_volume_expansion=None, allowed_topologies=None, api_version=None, kind=None, metadata=None, mount_options=None, parameters=None, provisioner=None, reclaim_policy=None, volume_binding_mode=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

allow_volume_expansion

Gets the allow_volume_expansion of this V1beta1StorageClass. AllowVolumeExpansion shows whether the storage class allow volume expand

Returns:The allow_volume_expansion of this V1beta1StorageClass.
Return type:bool
allowed_topologies

Gets the allowed_topologies of this V1beta1StorageClass. Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.

Returns:The allowed_topologies of this V1beta1StorageClass.
Return type:list[V1TopologySelectorTerm]
api_version

Gets the api_version of this V1beta1StorageClass. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1beta1StorageClass.
Return type:str
attribute_map = {'allow_volume_expansion': 'allowVolumeExpansion', 'allowed_topologies': 'allowedTopologies', 'api_version': 'apiVersion', 'kind': 'kind', 'metadata': 'metadata', 'mount_options': 'mountOptions', 'parameters': 'parameters', 'provisioner': 'provisioner', 'reclaim_policy': 'reclaimPolicy', 'volume_binding_mode': 'volumeBindingMode'}
kind

Gets the kind of this V1beta1StorageClass. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1beta1StorageClass.
Return type:str
metadata

Gets the metadata of this V1beta1StorageClass. Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

Returns:The metadata of this V1beta1StorageClass.
Return type:V1ObjectMeta
mount_options

Gets the mount_options of this V1beta1StorageClass. Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. [“ro”, “soft”]. Not validated - mount of the PVs will simply fail if one is invalid.

Returns:The mount_options of this V1beta1StorageClass.
Return type:list[str]
parameters

Gets the parameters of this V1beta1StorageClass. Parameters holds the parameters for the provisioner that should create volumes of this storage class.

Returns:The parameters of this V1beta1StorageClass.
Return type:dict(str, str)
provisioner

Gets the provisioner of this V1beta1StorageClass. Provisioner indicates the type of the provisioner.

Returns:The provisioner of this V1beta1StorageClass.
Return type:str
reclaim_policy

Gets the reclaim_policy of this V1beta1StorageClass. Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete.

Returns:The reclaim_policy of this V1beta1StorageClass.
Return type:str
swagger_types = {'allow_volume_expansion': 'bool', 'allowed_topologies': 'list[V1TopologySelectorTerm]', 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'mount_options': 'list[str]', 'parameters': 'dict(str, str)', 'provisioner': 'str', 'reclaim_policy': 'str', 'volume_binding_mode': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

volume_binding_mode

Gets the volume_binding_mode of this V1beta1StorageClass. VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.

Returns:The volume_binding_mode of this V1beta1StorageClass.
Return type:str

kubernetes.client.models.v1beta1_storage_class_list module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_storage_class_list.V1beta1StorageClassList(api_version=None, items=None, kind=None, metadata=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1beta1StorageClassList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1beta1StorageClassList.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'items': 'items', 'kind': 'kind', 'metadata': 'metadata'}
items

Gets the items of this V1beta1StorageClassList. Items is the list of StorageClasses

Returns:The items of this V1beta1StorageClassList.
Return type:list[V1beta1StorageClass]
kind

Gets the kind of this V1beta1StorageClassList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1beta1StorageClassList.
Return type:str
metadata

Gets the metadata of this V1beta1StorageClassList. Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

Returns:The metadata of this V1beta1StorageClassList.
Return type:V1ListMeta
swagger_types = {'api_version': 'str', 'items': 'list[V1beta1StorageClass]', 'kind': 'str', 'metadata': 'V1ListMeta'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1beta1_subject_access_review module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_subject_access_review.V1beta1SubjectAccessReview(api_version=None, kind=None, metadata=None, spec=None, status=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1beta1SubjectAccessReview. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1beta1SubjectAccessReview.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'kind': 'kind', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status'}
kind

Gets the kind of this V1beta1SubjectAccessReview. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1beta1SubjectAccessReview.
Return type:str
metadata

Gets the metadata of this V1beta1SubjectAccessReview.

Returns:The metadata of this V1beta1SubjectAccessReview.
Return type:V1ObjectMeta
spec

Gets the spec of this V1beta1SubjectAccessReview. Spec holds information about the request being evaluated

Returns:The spec of this V1beta1SubjectAccessReview.
Return type:V1beta1SubjectAccessReviewSpec
status

Gets the status of this V1beta1SubjectAccessReview. Status is filled in by the server and indicates whether the request is allowed or not

Returns:The status of this V1beta1SubjectAccessReview.
Return type:V1beta1SubjectAccessReviewStatus
swagger_types = {'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1beta1SubjectAccessReviewSpec', 'status': 'V1beta1SubjectAccessReviewStatus'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1beta1_subject_access_review_spec module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_subject_access_review_spec.V1beta1SubjectAccessReviewSpec(extra=None, group=None, non_resource_attributes=None, resource_attributes=None, uid=None, user=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'extra': 'extra', 'group': 'group', 'non_resource_attributes': 'nonResourceAttributes', 'resource_attributes': 'resourceAttributes', 'uid': 'uid', 'user': 'user'}
extra

Gets the extra of this V1beta1SubjectAccessReviewSpec. Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.

Returns:The extra of this V1beta1SubjectAccessReviewSpec.
Return type:dict(str, list[str])
group

Gets the group of this V1beta1SubjectAccessReviewSpec. Groups is the groups you’re testing for.

Returns:The group of this V1beta1SubjectAccessReviewSpec.
Return type:list[str]
non_resource_attributes

Gets the non_resource_attributes of this V1beta1SubjectAccessReviewSpec. NonResourceAttributes describes information for a non-resource access request

Returns:The non_resource_attributes of this V1beta1SubjectAccessReviewSpec.
Return type:V1beta1NonResourceAttributes
resource_attributes

Gets the resource_attributes of this V1beta1SubjectAccessReviewSpec. ResourceAuthorizationAttributes describes information for a resource access request

Returns:The resource_attributes of this V1beta1SubjectAccessReviewSpec.
Return type:V1beta1ResourceAttributes
swagger_types = {'extra': 'dict(str, list[str])', 'group': 'list[str]', 'non_resource_attributes': 'V1beta1NonResourceAttributes', 'resource_attributes': 'V1beta1ResourceAttributes', 'uid': 'str', 'user': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

uid

Gets the uid of this V1beta1SubjectAccessReviewSpec. UID information about the requesting user.

Returns:The uid of this V1beta1SubjectAccessReviewSpec.
Return type:str
user

Gets the user of this V1beta1SubjectAccessReviewSpec. User is the user you’re testing for. If you specify “User” but not “Group”, then is it interpreted as “What if User were not a member of any groups

Returns:The user of this V1beta1SubjectAccessReviewSpec.
Return type:str

kubernetes.client.models.v1beta1_subject_access_review_status module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_subject_access_review_status.V1beta1SubjectAccessReviewStatus(allowed=None, denied=None, evaluation_error=None, reason=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

allowed

Gets the allowed of this V1beta1SubjectAccessReviewStatus. Allowed is required. True if the action would be allowed, false otherwise.

Returns:The allowed of this V1beta1SubjectAccessReviewStatus.
Return type:bool
attribute_map = {'allowed': 'allowed', 'denied': 'denied', 'evaluation_error': 'evaluationError', 'reason': 'reason'}
denied

Gets the denied of this V1beta1SubjectAccessReviewStatus. Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true.

Returns:The denied of this V1beta1SubjectAccessReviewStatus.
Return type:bool
evaluation_error

Gets the evaluation_error of this V1beta1SubjectAccessReviewStatus. EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.

Returns:The evaluation_error of this V1beta1SubjectAccessReviewStatus.
Return type:str
reason

Gets the reason of this V1beta1SubjectAccessReviewStatus. Reason is optional. It indicates why a request was allowed or denied.

Returns:The reason of this V1beta1SubjectAccessReviewStatus.
Return type:str
swagger_types = {'allowed': 'bool', 'denied': 'bool', 'evaluation_error': 'str', 'reason': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1beta1_subresource_reference module

kubernetes.client.models.v1beta1_third_party_resource module

kubernetes.client.models.v1beta1_third_party_resource_list module

kubernetes.client.models.v1beta1_token_review module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_token_review.V1beta1TokenReview(api_version=None, kind=None, metadata=None, spec=None, status=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V1beta1TokenReview. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V1beta1TokenReview.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'kind': 'kind', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status'}
kind

Gets the kind of this V1beta1TokenReview. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V1beta1TokenReview.
Return type:str
metadata

Gets the metadata of this V1beta1TokenReview.

Returns:The metadata of this V1beta1TokenReview.
Return type:V1ObjectMeta
spec

Gets the spec of this V1beta1TokenReview. Spec holds information about the request being evaluated

Returns:The spec of this V1beta1TokenReview.
Return type:V1beta1TokenReviewSpec
status

Gets the status of this V1beta1TokenReview. Status is filled in by the server and indicates whether the request can be authenticated.

Returns:The status of this V1beta1TokenReview.
Return type:V1beta1TokenReviewStatus
swagger_types = {'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1beta1TokenReviewSpec', 'status': 'V1beta1TokenReviewStatus'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v1beta1_token_review_spec module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_token_review_spec.V1beta1TokenReviewSpec(token=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'token': 'token'}
swagger_types = {'token': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

token

Gets the token of this V1beta1TokenReviewSpec. Token is the opaque bearer token.

Returns:The token of this V1beta1TokenReviewSpec.
Return type:str

kubernetes.client.models.v1beta1_token_review_status module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_token_review_status.V1beta1TokenReviewStatus(authenticated=None, error=None, user=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'authenticated': 'authenticated', 'error': 'error', 'user': 'user'}
authenticated

Gets the authenticated of this V1beta1TokenReviewStatus. Authenticated indicates that the token was associated with a known user.

Returns:The authenticated of this V1beta1TokenReviewStatus.
Return type:bool
error

Gets the error of this V1beta1TokenReviewStatus. Error indicates that the token couldn’t be checked

Returns:The error of this V1beta1TokenReviewStatus.
Return type:str
swagger_types = {'authenticated': 'bool', 'error': 'str', 'user': 'V1beta1UserInfo'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

user

Gets the user of this V1beta1TokenReviewStatus. User is the UserInfo associated with the provided token.

Returns:The user of this V1beta1TokenReviewStatus.
Return type:V1beta1UserInfo

kubernetes.client.models.v1beta1_user_info module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v1beta1_user_info.V1beta1UserInfo(extra=None, groups=None, uid=None, username=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'extra': 'extra', 'groups': 'groups', 'uid': 'uid', 'username': 'username'}
extra

Gets the extra of this V1beta1UserInfo. Any additional information provided by the authenticator.

Returns:The extra of this V1beta1UserInfo.
Return type:dict(str, list[str])
groups

Gets the groups of this V1beta1UserInfo. The names of groups this user is a part of.

Returns:The groups of this V1beta1UserInfo.
Return type:list[str]
swagger_types = {'extra': 'dict(str, list[str])', 'groups': 'list[str]', 'uid': 'str', 'username': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

uid

Gets the uid of this V1beta1UserInfo. A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs.

Returns:The uid of this V1beta1UserInfo.
Return type:str
username

Gets the username of this V1beta1UserInfo. The name that uniquely identifies this user among all active users.

Returns:The username of this V1beta1UserInfo.
Return type:str

kubernetes.client.models.v2alpha1_cron_job module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v2alpha1_cron_job.V2alpha1CronJob(api_version=None, kind=None, metadata=None, spec=None, status=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V2alpha1CronJob. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V2alpha1CronJob.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'kind': 'kind', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status'}
kind

Gets the kind of this V2alpha1CronJob. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V2alpha1CronJob.
Return type:str
metadata

Gets the metadata of this V2alpha1CronJob. Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

Returns:The metadata of this V2alpha1CronJob.
Return type:V1ObjectMeta
spec

Gets the spec of this V2alpha1CronJob. Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

Returns:The spec of this V2alpha1CronJob.
Return type:V2alpha1CronJobSpec
status

Gets the status of this V2alpha1CronJob. Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

Returns:The status of this V2alpha1CronJob.
Return type:V2alpha1CronJobStatus
swagger_types = {'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V2alpha1CronJobSpec', 'status': 'V2alpha1CronJobStatus'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v2alpha1_cron_job_list module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v2alpha1_cron_job_list.V2alpha1CronJobList(api_version=None, items=None, kind=None, metadata=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

api_version

Gets the api_version of this V2alpha1CronJobList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Returns:The api_version of this V2alpha1CronJobList.
Return type:str
attribute_map = {'api_version': 'apiVersion', 'items': 'items', 'kind': 'kind', 'metadata': 'metadata'}
items

Gets the items of this V2alpha1CronJobList. items is the list of CronJobs.

Returns:The items of this V2alpha1CronJobList.
Return type:list[V2alpha1CronJob]
kind

Gets the kind of this V2alpha1CronJobList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Returns:The kind of this V2alpha1CronJobList.
Return type:str
metadata

Gets the metadata of this V2alpha1CronJobList. Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

Returns:The metadata of this V2alpha1CronJobList.
Return type:V1ListMeta
swagger_types = {'api_version': 'str', 'items': 'list[V2alpha1CronJob]', 'kind': 'str', 'metadata': 'V1ListMeta'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v2alpha1_cron_job_spec module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v2alpha1_cron_job_spec.V2alpha1CronJobSpec(concurrency_policy=None, failed_jobs_history_limit=None, job_template=None, schedule=None, starting_deadline_seconds=None, successful_jobs_history_limit=None, suspend=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'concurrency_policy': 'concurrencyPolicy', 'failed_jobs_history_limit': 'failedJobsHistoryLimit', 'job_template': 'jobTemplate', 'schedule': 'schedule', 'starting_deadline_seconds': 'startingDeadlineSeconds', 'successful_jobs_history_limit': 'successfulJobsHistoryLimit', 'suspend': 'suspend'}
concurrency_policy

Gets the concurrency_policy of this V2alpha1CronJobSpec. Specifies how to treat concurrent executions of a Job. Valid values are: - “Allow” (default): allows CronJobs to run concurrently; - “Forbid”: forbids concurrent runs, skipping next run if previous run hasn’t finished yet; - “Replace”: cancels currently running job and replaces it with a new one

Returns:The concurrency_policy of this V2alpha1CronJobSpec.
Return type:str
failed_jobs_history_limit

Gets the failed_jobs_history_limit of this V2alpha1CronJobSpec. The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified.

Returns:The failed_jobs_history_limit of this V2alpha1CronJobSpec.
Return type:int
job_template

Gets the job_template of this V2alpha1CronJobSpec. Specifies the job that will be created when executing a CronJob.

Returns:The job_template of this V2alpha1CronJobSpec.
Return type:V2alpha1JobTemplateSpec
schedule

Gets the schedule of this V2alpha1CronJobSpec. The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.

Returns:The schedule of this V2alpha1CronJobSpec.
Return type:str
starting_deadline_seconds

Gets the starting_deadline_seconds of this V2alpha1CronJobSpec. Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.

Returns:The starting_deadline_seconds of this V2alpha1CronJobSpec.
Return type:int
successful_jobs_history_limit

Gets the successful_jobs_history_limit of this V2alpha1CronJobSpec. The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified.

Returns:The successful_jobs_history_limit of this V2alpha1CronJobSpec.
Return type:int
suspend

Gets the suspend of this V2alpha1CronJobSpec. This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.

Returns:The suspend of this V2alpha1CronJobSpec.
Return type:bool
swagger_types = {'concurrency_policy': 'str', 'failed_jobs_history_limit': 'int', 'job_template': 'V2alpha1JobTemplateSpec', 'schedule': 'str', 'starting_deadline_seconds': 'int', 'successful_jobs_history_limit': 'int', 'suspend': 'bool'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v2alpha1_cron_job_status module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v2alpha1_cron_job_status.V2alpha1CronJobStatus(active=None, last_schedule_time=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

active

Gets the active of this V2alpha1CronJobStatus. A list of pointers to currently running jobs.

Returns:The active of this V2alpha1CronJobStatus.
Return type:list[V1ObjectReference]
attribute_map = {'active': 'active', 'last_schedule_time': 'lastScheduleTime'}
last_schedule_time

Gets the last_schedule_time of this V2alpha1CronJobStatus. Information when was the last time the job was successfully scheduled.

Returns:The last_schedule_time of this V2alpha1CronJobStatus.
Return type:datetime
swagger_types = {'active': 'list[V1ObjectReference]', 'last_schedule_time': 'datetime'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.v2alpha1_job module

kubernetes.client.models.v2alpha1_job_condition module

kubernetes.client.models.v2alpha1_job_list module

kubernetes.client.models.v2alpha1_job_spec module

kubernetes.client.models.v2alpha1_job_status module

kubernetes.client.models.v2alpha1_job_template_spec module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.v2alpha1_job_template_spec.V2alpha1JobTemplateSpec(metadata=None, spec=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'metadata': 'metadata', 'spec': 'spec'}
metadata

Gets the metadata of this V2alpha1JobTemplateSpec. Standard object’s metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

Returns:The metadata of this V2alpha1JobTemplateSpec.
Return type:V1ObjectMeta
spec

Gets the spec of this V2alpha1JobTemplateSpec. Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

Returns:The spec of this V2alpha1JobTemplateSpec.
Return type:V1JobSpec
swagger_types = {'metadata': 'V1ObjectMeta', 'spec': 'V1JobSpec'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.version_info module

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git

class kubernetes.client.models.version_info.VersionInfo(build_date=None, compiler=None, git_commit=None, git_tree_state=None, git_version=None, go_version=None, major=None, minor=None, platform=None)

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

attribute_map = {'build_date': 'buildDate', 'compiler': 'compiler', 'git_commit': 'gitCommit', 'git_tree_state': 'gitTreeState', 'git_version': 'gitVersion', 'go_version': 'goVersion', 'major': 'major', 'minor': 'minor', 'platform': 'platform'}
build_date

Gets the build_date of this VersionInfo.

Returns:The build_date of this VersionInfo.
Return type:str
compiler

Gets the compiler of this VersionInfo.

Returns:The compiler of this VersionInfo.
Return type:str
git_commit

Gets the git_commit of this VersionInfo.

Returns:The git_commit of this VersionInfo.
Return type:str
git_tree_state

Gets the git_tree_state of this VersionInfo.

Returns:The git_tree_state of this VersionInfo.
Return type:str
git_version

Gets the git_version of this VersionInfo.

Returns:The git_version of this VersionInfo.
Return type:str
go_version

Gets the go_version of this VersionInfo.

Returns:The go_version of this VersionInfo.
Return type:str
major

Gets the major of this VersionInfo.

Returns:The major of this VersionInfo.
Return type:str
minor

Gets the minor of this VersionInfo.

Returns:The minor of this VersionInfo.
Return type:str
platform

Gets the platform of this VersionInfo.

Returns:The platform of this VersionInfo.
Return type:str
swagger_types = {'build_date': 'str', 'compiler': 'str', 'git_commit': 'str', 'git_tree_state': 'str', 'git_version': 'str', 'go_version': 'str', 'major': 'str', 'minor': 'str', 'platform': 'str'}
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

kubernetes.client.models.versioned_event module

Module contents

Kubernetes

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.12.4

Generated by: https://github.com/swagger-api/swagger-codegen.git