fix(kubernetes): temporary solution for updated k8s python client
This commit is contained in:
parent
07d6fe7442
commit
9129813244
1478 changed files with 422354 additions and 2 deletions
641
kubernetes/client/models/__init__.py
Normal file
641
kubernetes/client/models/__init__.py
Normal file
|
@ -0,0 +1,641 @@
|
|||
# coding: utf-8
|
||||
|
||||
# flake8: noqa
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
# import models into model package
|
||||
from kubernetes.client.models.admissionregistration_v1_service_reference import AdmissionregistrationV1ServiceReference
|
||||
from kubernetes.client.models.admissionregistration_v1_webhook_client_config import AdmissionregistrationV1WebhookClientConfig
|
||||
from kubernetes.client.models.apiextensions_v1_service_reference import ApiextensionsV1ServiceReference
|
||||
from kubernetes.client.models.apiextensions_v1_webhook_client_config import ApiextensionsV1WebhookClientConfig
|
||||
from kubernetes.client.models.apiregistration_v1_service_reference import ApiregistrationV1ServiceReference
|
||||
from kubernetes.client.models.authentication_v1_token_request import AuthenticationV1TokenRequest
|
||||
from kubernetes.client.models.core_v1_endpoint_port import CoreV1EndpointPort
|
||||
from kubernetes.client.models.core_v1_event import CoreV1Event
|
||||
from kubernetes.client.models.core_v1_event_list import CoreV1EventList
|
||||
from kubernetes.client.models.core_v1_event_series import CoreV1EventSeries
|
||||
from kubernetes.client.models.discovery_v1_endpoint_port import DiscoveryV1EndpointPort
|
||||
from kubernetes.client.models.events_v1_event import EventsV1Event
|
||||
from kubernetes.client.models.events_v1_event_list import EventsV1EventList
|
||||
from kubernetes.client.models.events_v1_event_series import EventsV1EventSeries
|
||||
from kubernetes.client.models.flowcontrol_v1_subject import FlowcontrolV1Subject
|
||||
from kubernetes.client.models.rbac_v1_subject import RbacV1Subject
|
||||
from kubernetes.client.models.storage_v1_token_request import StorageV1TokenRequest
|
||||
from kubernetes.client.models.v1_api_group import V1APIGroup
|
||||
from kubernetes.client.models.v1_api_group_list import V1APIGroupList
|
||||
from kubernetes.client.models.v1_api_resource import V1APIResource
|
||||
from kubernetes.client.models.v1_api_resource_list import V1APIResourceList
|
||||
from kubernetes.client.models.v1_api_service import V1APIService
|
||||
from kubernetes.client.models.v1_api_service_condition import V1APIServiceCondition
|
||||
from kubernetes.client.models.v1_api_service_list import V1APIServiceList
|
||||
from kubernetes.client.models.v1_api_service_spec import V1APIServiceSpec
|
||||
from kubernetes.client.models.v1_api_service_status import V1APIServiceStatus
|
||||
from kubernetes.client.models.v1_api_versions import V1APIVersions
|
||||
from kubernetes.client.models.v1_aws_elastic_block_store_volume_source import V1AWSElasticBlockStoreVolumeSource
|
||||
from kubernetes.client.models.v1_affinity import V1Affinity
|
||||
from kubernetes.client.models.v1_aggregation_rule import V1AggregationRule
|
||||
from kubernetes.client.models.v1_app_armor_profile import V1AppArmorProfile
|
||||
from kubernetes.client.models.v1_attached_volume import V1AttachedVolume
|
||||
from kubernetes.client.models.v1_audit_annotation import V1AuditAnnotation
|
||||
from kubernetes.client.models.v1_azure_disk_volume_source import V1AzureDiskVolumeSource
|
||||
from kubernetes.client.models.v1_azure_file_persistent_volume_source import V1AzureFilePersistentVolumeSource
|
||||
from kubernetes.client.models.v1_azure_file_volume_source import V1AzureFileVolumeSource
|
||||
from kubernetes.client.models.v1_binding import V1Binding
|
||||
from kubernetes.client.models.v1_bound_object_reference import V1BoundObjectReference
|
||||
from kubernetes.client.models.v1_csi_driver import V1CSIDriver
|
||||
from kubernetes.client.models.v1_csi_driver_list import V1CSIDriverList
|
||||
from kubernetes.client.models.v1_csi_driver_spec import V1CSIDriverSpec
|
||||
from kubernetes.client.models.v1_csi_node import V1CSINode
|
||||
from kubernetes.client.models.v1_csi_node_driver import V1CSINodeDriver
|
||||
from kubernetes.client.models.v1_csi_node_list import V1CSINodeList
|
||||
from kubernetes.client.models.v1_csi_node_spec import V1CSINodeSpec
|
||||
from kubernetes.client.models.v1_csi_persistent_volume_source import V1CSIPersistentVolumeSource
|
||||
from kubernetes.client.models.v1_csi_storage_capacity import V1CSIStorageCapacity
|
||||
from kubernetes.client.models.v1_csi_storage_capacity_list import V1CSIStorageCapacityList
|
||||
from kubernetes.client.models.v1_csi_volume_source import V1CSIVolumeSource
|
||||
from kubernetes.client.models.v1_capabilities import V1Capabilities
|
||||
from kubernetes.client.models.v1_ceph_fs_persistent_volume_source import V1CephFSPersistentVolumeSource
|
||||
from kubernetes.client.models.v1_ceph_fs_volume_source import V1CephFSVolumeSource
|
||||
from kubernetes.client.models.v1_certificate_signing_request import V1CertificateSigningRequest
|
||||
from kubernetes.client.models.v1_certificate_signing_request_condition import V1CertificateSigningRequestCondition
|
||||
from kubernetes.client.models.v1_certificate_signing_request_list import V1CertificateSigningRequestList
|
||||
from kubernetes.client.models.v1_certificate_signing_request_spec import V1CertificateSigningRequestSpec
|
||||
from kubernetes.client.models.v1_certificate_signing_request_status import V1CertificateSigningRequestStatus
|
||||
from kubernetes.client.models.v1_cinder_persistent_volume_source import V1CinderPersistentVolumeSource
|
||||
from kubernetes.client.models.v1_cinder_volume_source import V1CinderVolumeSource
|
||||
from kubernetes.client.models.v1_client_ip_config import V1ClientIPConfig
|
||||
from kubernetes.client.models.v1_cluster_role import V1ClusterRole
|
||||
from kubernetes.client.models.v1_cluster_role_binding import V1ClusterRoleBinding
|
||||
from kubernetes.client.models.v1_cluster_role_binding_list import V1ClusterRoleBindingList
|
||||
from kubernetes.client.models.v1_cluster_role_list import V1ClusterRoleList
|
||||
from kubernetes.client.models.v1_cluster_trust_bundle_projection import V1ClusterTrustBundleProjection
|
||||
from kubernetes.client.models.v1_component_condition import V1ComponentCondition
|
||||
from kubernetes.client.models.v1_component_status import V1ComponentStatus
|
||||
from kubernetes.client.models.v1_component_status_list import V1ComponentStatusList
|
||||
from kubernetes.client.models.v1_condition import V1Condition
|
||||
from kubernetes.client.models.v1_config_map import V1ConfigMap
|
||||
from kubernetes.client.models.v1_config_map_env_source import V1ConfigMapEnvSource
|
||||
from kubernetes.client.models.v1_config_map_key_selector import V1ConfigMapKeySelector
|
||||
from kubernetes.client.models.v1_config_map_list import V1ConfigMapList
|
||||
from kubernetes.client.models.v1_config_map_node_config_source import V1ConfigMapNodeConfigSource
|
||||
from kubernetes.client.models.v1_config_map_projection import V1ConfigMapProjection
|
||||
from kubernetes.client.models.v1_config_map_volume_source import V1ConfigMapVolumeSource
|
||||
from kubernetes.client.models.v1_container import V1Container
|
||||
from kubernetes.client.models.v1_container_image import V1ContainerImage
|
||||
from kubernetes.client.models.v1_container_port import V1ContainerPort
|
||||
from kubernetes.client.models.v1_container_resize_policy import V1ContainerResizePolicy
|
||||
from kubernetes.client.models.v1_container_state import V1ContainerState
|
||||
from kubernetes.client.models.v1_container_state_running import V1ContainerStateRunning
|
||||
from kubernetes.client.models.v1_container_state_terminated import V1ContainerStateTerminated
|
||||
from kubernetes.client.models.v1_container_state_waiting import V1ContainerStateWaiting
|
||||
from kubernetes.client.models.v1_container_status import V1ContainerStatus
|
||||
from kubernetes.client.models.v1_container_user import V1ContainerUser
|
||||
from kubernetes.client.models.v1_controller_revision import V1ControllerRevision
|
||||
from kubernetes.client.models.v1_controller_revision_list import V1ControllerRevisionList
|
||||
from kubernetes.client.models.v1_cron_job import V1CronJob
|
||||
from kubernetes.client.models.v1_cron_job_list import V1CronJobList
|
||||
from kubernetes.client.models.v1_cron_job_spec import V1CronJobSpec
|
||||
from kubernetes.client.models.v1_cron_job_status import V1CronJobStatus
|
||||
from kubernetes.client.models.v1_cross_version_object_reference import V1CrossVersionObjectReference
|
||||
from kubernetes.client.models.v1_custom_resource_column_definition import V1CustomResourceColumnDefinition
|
||||
from kubernetes.client.models.v1_custom_resource_conversion import V1CustomResourceConversion
|
||||
from kubernetes.client.models.v1_custom_resource_definition import V1CustomResourceDefinition
|
||||
from kubernetes.client.models.v1_custom_resource_definition_condition import V1CustomResourceDefinitionCondition
|
||||
from kubernetes.client.models.v1_custom_resource_definition_list import V1CustomResourceDefinitionList
|
||||
from kubernetes.client.models.v1_custom_resource_definition_names import V1CustomResourceDefinitionNames
|
||||
from kubernetes.client.models.v1_custom_resource_definition_spec import V1CustomResourceDefinitionSpec
|
||||
from kubernetes.client.models.v1_custom_resource_definition_status import V1CustomResourceDefinitionStatus
|
||||
from kubernetes.client.models.v1_custom_resource_definition_version import V1CustomResourceDefinitionVersion
|
||||
from kubernetes.client.models.v1_custom_resource_subresource_scale import V1CustomResourceSubresourceScale
|
||||
from kubernetes.client.models.v1_custom_resource_subresources import V1CustomResourceSubresources
|
||||
from kubernetes.client.models.v1_custom_resource_validation import V1CustomResourceValidation
|
||||
from kubernetes.client.models.v1_daemon_endpoint import V1DaemonEndpoint
|
||||
from kubernetes.client.models.v1_daemon_set import V1DaemonSet
|
||||
from kubernetes.client.models.v1_daemon_set_condition import V1DaemonSetCondition
|
||||
from kubernetes.client.models.v1_daemon_set_list import V1DaemonSetList
|
||||
from kubernetes.client.models.v1_daemon_set_spec import V1DaemonSetSpec
|
||||
from kubernetes.client.models.v1_daemon_set_status import V1DaemonSetStatus
|
||||
from kubernetes.client.models.v1_daemon_set_update_strategy import V1DaemonSetUpdateStrategy
|
||||
from kubernetes.client.models.v1_delete_options import V1DeleteOptions
|
||||
from kubernetes.client.models.v1_deployment import V1Deployment
|
||||
from kubernetes.client.models.v1_deployment_condition import V1DeploymentCondition
|
||||
from kubernetes.client.models.v1_deployment_list import V1DeploymentList
|
||||
from kubernetes.client.models.v1_deployment_spec import V1DeploymentSpec
|
||||
from kubernetes.client.models.v1_deployment_status import V1DeploymentStatus
|
||||
from kubernetes.client.models.v1_deployment_strategy import V1DeploymentStrategy
|
||||
from kubernetes.client.models.v1_downward_api_projection import V1DownwardAPIProjection
|
||||
from kubernetes.client.models.v1_downward_api_volume_file import V1DownwardAPIVolumeFile
|
||||
from kubernetes.client.models.v1_downward_api_volume_source import V1DownwardAPIVolumeSource
|
||||
from kubernetes.client.models.v1_empty_dir_volume_source import V1EmptyDirVolumeSource
|
||||
from kubernetes.client.models.v1_endpoint import V1Endpoint
|
||||
from kubernetes.client.models.v1_endpoint_address import V1EndpointAddress
|
||||
from kubernetes.client.models.v1_endpoint_conditions import V1EndpointConditions
|
||||
from kubernetes.client.models.v1_endpoint_hints import V1EndpointHints
|
||||
from kubernetes.client.models.v1_endpoint_slice import V1EndpointSlice
|
||||
from kubernetes.client.models.v1_endpoint_slice_list import V1EndpointSliceList
|
||||
from kubernetes.client.models.v1_endpoint_subset import V1EndpointSubset
|
||||
from kubernetes.client.models.v1_endpoints import V1Endpoints
|
||||
from kubernetes.client.models.v1_endpoints_list import V1EndpointsList
|
||||
from kubernetes.client.models.v1_env_from_source import V1EnvFromSource
|
||||
from kubernetes.client.models.v1_env_var import V1EnvVar
|
||||
from kubernetes.client.models.v1_env_var_source import V1EnvVarSource
|
||||
from kubernetes.client.models.v1_ephemeral_container import V1EphemeralContainer
|
||||
from kubernetes.client.models.v1_ephemeral_volume_source import V1EphemeralVolumeSource
|
||||
from kubernetes.client.models.v1_event_source import V1EventSource
|
||||
from kubernetes.client.models.v1_eviction import V1Eviction
|
||||
from kubernetes.client.models.v1_exec_action import V1ExecAction
|
||||
from kubernetes.client.models.v1_exempt_priority_level_configuration import V1ExemptPriorityLevelConfiguration
|
||||
from kubernetes.client.models.v1_expression_warning import V1ExpressionWarning
|
||||
from kubernetes.client.models.v1_external_documentation import V1ExternalDocumentation
|
||||
from kubernetes.client.models.v1_fc_volume_source import V1FCVolumeSource
|
||||
from kubernetes.client.models.v1_field_selector_attributes import V1FieldSelectorAttributes
|
||||
from kubernetes.client.models.v1_field_selector_requirement import V1FieldSelectorRequirement
|
||||
from kubernetes.client.models.v1_flex_persistent_volume_source import V1FlexPersistentVolumeSource
|
||||
from kubernetes.client.models.v1_flex_volume_source import V1FlexVolumeSource
|
||||
from kubernetes.client.models.v1_flocker_volume_source import V1FlockerVolumeSource
|
||||
from kubernetes.client.models.v1_flow_distinguisher_method import V1FlowDistinguisherMethod
|
||||
from kubernetes.client.models.v1_flow_schema import V1FlowSchema
|
||||
from kubernetes.client.models.v1_flow_schema_condition import V1FlowSchemaCondition
|
||||
from kubernetes.client.models.v1_flow_schema_list import V1FlowSchemaList
|
||||
from kubernetes.client.models.v1_flow_schema_spec import V1FlowSchemaSpec
|
||||
from kubernetes.client.models.v1_flow_schema_status import V1FlowSchemaStatus
|
||||
from kubernetes.client.models.v1_for_zone import V1ForZone
|
||||
from kubernetes.client.models.v1_gce_persistent_disk_volume_source import V1GCEPersistentDiskVolumeSource
|
||||
from kubernetes.client.models.v1_grpc_action import V1GRPCAction
|
||||
from kubernetes.client.models.v1_git_repo_volume_source import V1GitRepoVolumeSource
|
||||
from kubernetes.client.models.v1_glusterfs_persistent_volume_source import V1GlusterfsPersistentVolumeSource
|
||||
from kubernetes.client.models.v1_glusterfs_volume_source import V1GlusterfsVolumeSource
|
||||
from kubernetes.client.models.v1_group_subject import V1GroupSubject
|
||||
from kubernetes.client.models.v1_group_version_for_discovery import V1GroupVersionForDiscovery
|
||||
from kubernetes.client.models.v1_http_get_action import V1HTTPGetAction
|
||||
from kubernetes.client.models.v1_http_header import V1HTTPHeader
|
||||
from kubernetes.client.models.v1_http_ingress_path import V1HTTPIngressPath
|
||||
from kubernetes.client.models.v1_http_ingress_rule_value import V1HTTPIngressRuleValue
|
||||
from kubernetes.client.models.v1_horizontal_pod_autoscaler import V1HorizontalPodAutoscaler
|
||||
from kubernetes.client.models.v1_horizontal_pod_autoscaler_list import V1HorizontalPodAutoscalerList
|
||||
from kubernetes.client.models.v1_horizontal_pod_autoscaler_spec import V1HorizontalPodAutoscalerSpec
|
||||
from kubernetes.client.models.v1_horizontal_pod_autoscaler_status import V1HorizontalPodAutoscalerStatus
|
||||
from kubernetes.client.models.v1_host_alias import V1HostAlias
|
||||
from kubernetes.client.models.v1_host_ip import V1HostIP
|
||||
from kubernetes.client.models.v1_host_path_volume_source import V1HostPathVolumeSource
|
||||
from kubernetes.client.models.v1_ip_block import V1IPBlock
|
||||
from kubernetes.client.models.v1_iscsi_persistent_volume_source import V1ISCSIPersistentVolumeSource
|
||||
from kubernetes.client.models.v1_iscsi_volume_source import V1ISCSIVolumeSource
|
||||
from kubernetes.client.models.v1_image_volume_source import V1ImageVolumeSource
|
||||
from kubernetes.client.models.v1_ingress import V1Ingress
|
||||
from kubernetes.client.models.v1_ingress_backend import V1IngressBackend
|
||||
from kubernetes.client.models.v1_ingress_class import V1IngressClass
|
||||
from kubernetes.client.models.v1_ingress_class_list import V1IngressClassList
|
||||
from kubernetes.client.models.v1_ingress_class_parameters_reference import V1IngressClassParametersReference
|
||||
from kubernetes.client.models.v1_ingress_class_spec import V1IngressClassSpec
|
||||
from kubernetes.client.models.v1_ingress_list import V1IngressList
|
||||
from kubernetes.client.models.v1_ingress_load_balancer_ingress import V1IngressLoadBalancerIngress
|
||||
from kubernetes.client.models.v1_ingress_load_balancer_status import V1IngressLoadBalancerStatus
|
||||
from kubernetes.client.models.v1_ingress_port_status import V1IngressPortStatus
|
||||
from kubernetes.client.models.v1_ingress_rule import V1IngressRule
|
||||
from kubernetes.client.models.v1_ingress_service_backend import V1IngressServiceBackend
|
||||
from kubernetes.client.models.v1_ingress_spec import V1IngressSpec
|
||||
from kubernetes.client.models.v1_ingress_status import V1IngressStatus
|
||||
from kubernetes.client.models.v1_ingress_tls import V1IngressTLS
|
||||
from kubernetes.client.models.v1_json_schema_props import V1JSONSchemaProps
|
||||
from kubernetes.client.models.v1_job import V1Job
|
||||
from kubernetes.client.models.v1_job_condition import V1JobCondition
|
||||
from kubernetes.client.models.v1_job_list import V1JobList
|
||||
from kubernetes.client.models.v1_job_spec import V1JobSpec
|
||||
from kubernetes.client.models.v1_job_status import V1JobStatus
|
||||
from kubernetes.client.models.v1_job_template_spec import V1JobTemplateSpec
|
||||
from kubernetes.client.models.v1_key_to_path import V1KeyToPath
|
||||
from kubernetes.client.models.v1_label_selector import V1LabelSelector
|
||||
from kubernetes.client.models.v1_label_selector_attributes import V1LabelSelectorAttributes
|
||||
from kubernetes.client.models.v1_label_selector_requirement import V1LabelSelectorRequirement
|
||||
from kubernetes.client.models.v1_lease import V1Lease
|
||||
from kubernetes.client.models.v1_lease_list import V1LeaseList
|
||||
from kubernetes.client.models.v1_lease_spec import V1LeaseSpec
|
||||
from kubernetes.client.models.v1_lifecycle import V1Lifecycle
|
||||
from kubernetes.client.models.v1_lifecycle_handler import V1LifecycleHandler
|
||||
from kubernetes.client.models.v1_limit_range import V1LimitRange
|
||||
from kubernetes.client.models.v1_limit_range_item import V1LimitRangeItem
|
||||
from kubernetes.client.models.v1_limit_range_list import V1LimitRangeList
|
||||
from kubernetes.client.models.v1_limit_range_spec import V1LimitRangeSpec
|
||||
from kubernetes.client.models.v1_limit_response import V1LimitResponse
|
||||
from kubernetes.client.models.v1_limited_priority_level_configuration import V1LimitedPriorityLevelConfiguration
|
||||
from kubernetes.client.models.v1_linux_container_user import V1LinuxContainerUser
|
||||
from kubernetes.client.models.v1_list_meta import V1ListMeta
|
||||
from kubernetes.client.models.v1_load_balancer_ingress import V1LoadBalancerIngress
|
||||
from kubernetes.client.models.v1_load_balancer_status import V1LoadBalancerStatus
|
||||
from kubernetes.client.models.v1_local_object_reference import V1LocalObjectReference
|
||||
from kubernetes.client.models.v1_local_subject_access_review import V1LocalSubjectAccessReview
|
||||
from kubernetes.client.models.v1_local_volume_source import V1LocalVolumeSource
|
||||
from kubernetes.client.models.v1_managed_fields_entry import V1ManagedFieldsEntry
|
||||
from kubernetes.client.models.v1_match_condition import V1MatchCondition
|
||||
from kubernetes.client.models.v1_match_resources import V1MatchResources
|
||||
from kubernetes.client.models.v1_modify_volume_status import V1ModifyVolumeStatus
|
||||
from kubernetes.client.models.v1_mutating_webhook import V1MutatingWebhook
|
||||
from kubernetes.client.models.v1_mutating_webhook_configuration import V1MutatingWebhookConfiguration
|
||||
from kubernetes.client.models.v1_mutating_webhook_configuration_list import V1MutatingWebhookConfigurationList
|
||||
from kubernetes.client.models.v1_nfs_volume_source import V1NFSVolumeSource
|
||||
from kubernetes.client.models.v1_named_rule_with_operations import V1NamedRuleWithOperations
|
||||
from kubernetes.client.models.v1_namespace import V1Namespace
|
||||
from kubernetes.client.models.v1_namespace_condition import V1NamespaceCondition
|
||||
from kubernetes.client.models.v1_namespace_list import V1NamespaceList
|
||||
from kubernetes.client.models.v1_namespace_spec import V1NamespaceSpec
|
||||
from kubernetes.client.models.v1_namespace_status import V1NamespaceStatus
|
||||
from kubernetes.client.models.v1_network_policy import V1NetworkPolicy
|
||||
from kubernetes.client.models.v1_network_policy_egress_rule import V1NetworkPolicyEgressRule
|
||||
from kubernetes.client.models.v1_network_policy_ingress_rule import V1NetworkPolicyIngressRule
|
||||
from kubernetes.client.models.v1_network_policy_list import V1NetworkPolicyList
|
||||
from kubernetes.client.models.v1_network_policy_peer import V1NetworkPolicyPeer
|
||||
from kubernetes.client.models.v1_network_policy_port import V1NetworkPolicyPort
|
||||
from kubernetes.client.models.v1_network_policy_spec import V1NetworkPolicySpec
|
||||
from kubernetes.client.models.v1_node import V1Node
|
||||
from kubernetes.client.models.v1_node_address import V1NodeAddress
|
||||
from kubernetes.client.models.v1_node_affinity import V1NodeAffinity
|
||||
from kubernetes.client.models.v1_node_condition import V1NodeCondition
|
||||
from kubernetes.client.models.v1_node_config_source import V1NodeConfigSource
|
||||
from kubernetes.client.models.v1_node_config_status import V1NodeConfigStatus
|
||||
from kubernetes.client.models.v1_node_daemon_endpoints import V1NodeDaemonEndpoints
|
||||
from kubernetes.client.models.v1_node_features import V1NodeFeatures
|
||||
from kubernetes.client.models.v1_node_list import V1NodeList
|
||||
from kubernetes.client.models.v1_node_runtime_handler import V1NodeRuntimeHandler
|
||||
from kubernetes.client.models.v1_node_runtime_handler_features import V1NodeRuntimeHandlerFeatures
|
||||
from kubernetes.client.models.v1_node_selector import V1NodeSelector
|
||||
from kubernetes.client.models.v1_node_selector_requirement import V1NodeSelectorRequirement
|
||||
from kubernetes.client.models.v1_node_selector_term import V1NodeSelectorTerm
|
||||
from kubernetes.client.models.v1_node_spec import V1NodeSpec
|
||||
from kubernetes.client.models.v1_node_status import V1NodeStatus
|
||||
from kubernetes.client.models.v1_node_system_info import V1NodeSystemInfo
|
||||
from kubernetes.client.models.v1_non_resource_attributes import V1NonResourceAttributes
|
||||
from kubernetes.client.models.v1_non_resource_policy_rule import V1NonResourcePolicyRule
|
||||
from kubernetes.client.models.v1_non_resource_rule import V1NonResourceRule
|
||||
from kubernetes.client.models.v1_object_field_selector import V1ObjectFieldSelector
|
||||
from kubernetes.client.models.v1_object_meta import V1ObjectMeta
|
||||
from kubernetes.client.models.v1_object_reference import V1ObjectReference
|
||||
from kubernetes.client.models.v1_overhead import V1Overhead
|
||||
from kubernetes.client.models.v1_owner_reference import V1OwnerReference
|
||||
from kubernetes.client.models.v1_param_kind import V1ParamKind
|
||||
from kubernetes.client.models.v1_param_ref import V1ParamRef
|
||||
from kubernetes.client.models.v1_persistent_volume import V1PersistentVolume
|
||||
from kubernetes.client.models.v1_persistent_volume_claim import V1PersistentVolumeClaim
|
||||
from kubernetes.client.models.v1_persistent_volume_claim_condition import V1PersistentVolumeClaimCondition
|
||||
from kubernetes.client.models.v1_persistent_volume_claim_list import V1PersistentVolumeClaimList
|
||||
from kubernetes.client.models.v1_persistent_volume_claim_spec import V1PersistentVolumeClaimSpec
|
||||
from kubernetes.client.models.v1_persistent_volume_claim_status import V1PersistentVolumeClaimStatus
|
||||
from kubernetes.client.models.v1_persistent_volume_claim_template import V1PersistentVolumeClaimTemplate
|
||||
from kubernetes.client.models.v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource
|
||||
from kubernetes.client.models.v1_persistent_volume_list import V1PersistentVolumeList
|
||||
from kubernetes.client.models.v1_persistent_volume_spec import V1PersistentVolumeSpec
|
||||
from kubernetes.client.models.v1_persistent_volume_status import V1PersistentVolumeStatus
|
||||
from kubernetes.client.models.v1_photon_persistent_disk_volume_source import V1PhotonPersistentDiskVolumeSource
|
||||
from kubernetes.client.models.v1_pod import V1Pod
|
||||
from kubernetes.client.models.v1_pod_affinity import V1PodAffinity
|
||||
from kubernetes.client.models.v1_pod_affinity_term import V1PodAffinityTerm
|
||||
from kubernetes.client.models.v1_pod_anti_affinity import V1PodAntiAffinity
|
||||
from kubernetes.client.models.v1_pod_condition import V1PodCondition
|
||||
from kubernetes.client.models.v1_pod_dns_config import V1PodDNSConfig
|
||||
from kubernetes.client.models.v1_pod_dns_config_option import V1PodDNSConfigOption
|
||||
from kubernetes.client.models.v1_pod_disruption_budget import V1PodDisruptionBudget
|
||||
from kubernetes.client.models.v1_pod_disruption_budget_list import V1PodDisruptionBudgetList
|
||||
from kubernetes.client.models.v1_pod_disruption_budget_spec import V1PodDisruptionBudgetSpec
|
||||
from kubernetes.client.models.v1_pod_disruption_budget_status import V1PodDisruptionBudgetStatus
|
||||
from kubernetes.client.models.v1_pod_failure_policy import V1PodFailurePolicy
|
||||
from kubernetes.client.models.v1_pod_failure_policy_on_exit_codes_requirement import V1PodFailurePolicyOnExitCodesRequirement
|
||||
from kubernetes.client.models.v1_pod_failure_policy_on_pod_conditions_pattern import V1PodFailurePolicyOnPodConditionsPattern
|
||||
from kubernetes.client.models.v1_pod_failure_policy_rule import V1PodFailurePolicyRule
|
||||
from kubernetes.client.models.v1_pod_ip import V1PodIP
|
||||
from kubernetes.client.models.v1_pod_list import V1PodList
|
||||
from kubernetes.client.models.v1_pod_os import V1PodOS
|
||||
from kubernetes.client.models.v1_pod_readiness_gate import V1PodReadinessGate
|
||||
from kubernetes.client.models.v1_pod_resource_claim import V1PodResourceClaim
|
||||
from kubernetes.client.models.v1_pod_resource_claim_status import V1PodResourceClaimStatus
|
||||
from kubernetes.client.models.v1_pod_scheduling_gate import V1PodSchedulingGate
|
||||
from kubernetes.client.models.v1_pod_security_context import V1PodSecurityContext
|
||||
from kubernetes.client.models.v1_pod_spec import V1PodSpec
|
||||
from kubernetes.client.models.v1_pod_status import V1PodStatus
|
||||
from kubernetes.client.models.v1_pod_template import V1PodTemplate
|
||||
from kubernetes.client.models.v1_pod_template_list import V1PodTemplateList
|
||||
from kubernetes.client.models.v1_pod_template_spec import V1PodTemplateSpec
|
||||
from kubernetes.client.models.v1_policy_rule import V1PolicyRule
|
||||
from kubernetes.client.models.v1_policy_rules_with_subjects import V1PolicyRulesWithSubjects
|
||||
from kubernetes.client.models.v1_port_status import V1PortStatus
|
||||
from kubernetes.client.models.v1_portworx_volume_source import V1PortworxVolumeSource
|
||||
from kubernetes.client.models.v1_preconditions import V1Preconditions
|
||||
from kubernetes.client.models.v1_preferred_scheduling_term import V1PreferredSchedulingTerm
|
||||
from kubernetes.client.models.v1_priority_class import V1PriorityClass
|
||||
from kubernetes.client.models.v1_priority_class_list import V1PriorityClassList
|
||||
from kubernetes.client.models.v1_priority_level_configuration import V1PriorityLevelConfiguration
|
||||
from kubernetes.client.models.v1_priority_level_configuration_condition import V1PriorityLevelConfigurationCondition
|
||||
from kubernetes.client.models.v1_priority_level_configuration_list import V1PriorityLevelConfigurationList
|
||||
from kubernetes.client.models.v1_priority_level_configuration_reference import V1PriorityLevelConfigurationReference
|
||||
from kubernetes.client.models.v1_priority_level_configuration_spec import V1PriorityLevelConfigurationSpec
|
||||
from kubernetes.client.models.v1_priority_level_configuration_status import V1PriorityLevelConfigurationStatus
|
||||
from kubernetes.client.models.v1_probe import V1Probe
|
||||
from kubernetes.client.models.v1_projected_volume_source import V1ProjectedVolumeSource
|
||||
from kubernetes.client.models.v1_queuing_configuration import V1QueuingConfiguration
|
||||
from kubernetes.client.models.v1_quobyte_volume_source import V1QuobyteVolumeSource
|
||||
from kubernetes.client.models.v1_rbd_persistent_volume_source import V1RBDPersistentVolumeSource
|
||||
from kubernetes.client.models.v1_rbd_volume_source import V1RBDVolumeSource
|
||||
from kubernetes.client.models.v1_replica_set import V1ReplicaSet
|
||||
from kubernetes.client.models.v1_replica_set_condition import V1ReplicaSetCondition
|
||||
from kubernetes.client.models.v1_replica_set_list import V1ReplicaSetList
|
||||
from kubernetes.client.models.v1_replica_set_spec import V1ReplicaSetSpec
|
||||
from kubernetes.client.models.v1_replica_set_status import V1ReplicaSetStatus
|
||||
from kubernetes.client.models.v1_replication_controller import V1ReplicationController
|
||||
from kubernetes.client.models.v1_replication_controller_condition import V1ReplicationControllerCondition
|
||||
from kubernetes.client.models.v1_replication_controller_list import V1ReplicationControllerList
|
||||
from kubernetes.client.models.v1_replication_controller_spec import V1ReplicationControllerSpec
|
||||
from kubernetes.client.models.v1_replication_controller_status import V1ReplicationControllerStatus
|
||||
from kubernetes.client.models.v1_resource_attributes import V1ResourceAttributes
|
||||
from kubernetes.client.models.v1_resource_claim import V1ResourceClaim
|
||||
from kubernetes.client.models.v1_resource_field_selector import V1ResourceFieldSelector
|
||||
from kubernetes.client.models.v1_resource_health import V1ResourceHealth
|
||||
from kubernetes.client.models.v1_resource_policy_rule import V1ResourcePolicyRule
|
||||
from kubernetes.client.models.v1_resource_quota import V1ResourceQuota
|
||||
from kubernetes.client.models.v1_resource_quota_list import V1ResourceQuotaList
|
||||
from kubernetes.client.models.v1_resource_quota_spec import V1ResourceQuotaSpec
|
||||
from kubernetes.client.models.v1_resource_quota_status import V1ResourceQuotaStatus
|
||||
from kubernetes.client.models.v1_resource_requirements import V1ResourceRequirements
|
||||
from kubernetes.client.models.v1_resource_rule import V1ResourceRule
|
||||
from kubernetes.client.models.v1_resource_status import V1ResourceStatus
|
||||
from kubernetes.client.models.v1_role import V1Role
|
||||
from kubernetes.client.models.v1_role_binding import V1RoleBinding
|
||||
from kubernetes.client.models.v1_role_binding_list import V1RoleBindingList
|
||||
from kubernetes.client.models.v1_role_list import V1RoleList
|
||||
from kubernetes.client.models.v1_role_ref import V1RoleRef
|
||||
from kubernetes.client.models.v1_rolling_update_daemon_set import V1RollingUpdateDaemonSet
|
||||
from kubernetes.client.models.v1_rolling_update_deployment import V1RollingUpdateDeployment
|
||||
from kubernetes.client.models.v1_rolling_update_stateful_set_strategy import V1RollingUpdateStatefulSetStrategy
|
||||
from kubernetes.client.models.v1_rule_with_operations import V1RuleWithOperations
|
||||
from kubernetes.client.models.v1_runtime_class import V1RuntimeClass
|
||||
from kubernetes.client.models.v1_runtime_class_list import V1RuntimeClassList
|
||||
from kubernetes.client.models.v1_se_linux_options import V1SELinuxOptions
|
||||
from kubernetes.client.models.v1_scale import V1Scale
|
||||
from kubernetes.client.models.v1_scale_io_persistent_volume_source import V1ScaleIOPersistentVolumeSource
|
||||
from kubernetes.client.models.v1_scale_io_volume_source import V1ScaleIOVolumeSource
|
||||
from kubernetes.client.models.v1_scale_spec import V1ScaleSpec
|
||||
from kubernetes.client.models.v1_scale_status import V1ScaleStatus
|
||||
from kubernetes.client.models.v1_scheduling import V1Scheduling
|
||||
from kubernetes.client.models.v1_scope_selector import V1ScopeSelector
|
||||
from kubernetes.client.models.v1_scoped_resource_selector_requirement import V1ScopedResourceSelectorRequirement
|
||||
from kubernetes.client.models.v1_seccomp_profile import V1SeccompProfile
|
||||
from kubernetes.client.models.v1_secret import V1Secret
|
||||
from kubernetes.client.models.v1_secret_env_source import V1SecretEnvSource
|
||||
from kubernetes.client.models.v1_secret_key_selector import V1SecretKeySelector
|
||||
from kubernetes.client.models.v1_secret_list import V1SecretList
|
||||
from kubernetes.client.models.v1_secret_projection import V1SecretProjection
|
||||
from kubernetes.client.models.v1_secret_reference import V1SecretReference
|
||||
from kubernetes.client.models.v1_secret_volume_source import V1SecretVolumeSource
|
||||
from kubernetes.client.models.v1_security_context import V1SecurityContext
|
||||
from kubernetes.client.models.v1_selectable_field import V1SelectableField
|
||||
from kubernetes.client.models.v1_self_subject_access_review import V1SelfSubjectAccessReview
|
||||
from kubernetes.client.models.v1_self_subject_access_review_spec import V1SelfSubjectAccessReviewSpec
|
||||
from kubernetes.client.models.v1_self_subject_review import V1SelfSubjectReview
|
||||
from kubernetes.client.models.v1_self_subject_review_status import V1SelfSubjectReviewStatus
|
||||
from kubernetes.client.models.v1_self_subject_rules_review import V1SelfSubjectRulesReview
|
||||
from kubernetes.client.models.v1_self_subject_rules_review_spec import V1SelfSubjectRulesReviewSpec
|
||||
from kubernetes.client.models.v1_server_address_by_client_cidr import V1ServerAddressByClientCIDR
|
||||
from kubernetes.client.models.v1_service import V1Service
|
||||
from kubernetes.client.models.v1_service_account import V1ServiceAccount
|
||||
from kubernetes.client.models.v1_service_account_list import V1ServiceAccountList
|
||||
from kubernetes.client.models.v1_service_account_subject import V1ServiceAccountSubject
|
||||
from kubernetes.client.models.v1_service_account_token_projection import V1ServiceAccountTokenProjection
|
||||
from kubernetes.client.models.v1_service_backend_port import V1ServiceBackendPort
|
||||
from kubernetes.client.models.v1_service_list import V1ServiceList
|
||||
from kubernetes.client.models.v1_service_port import V1ServicePort
|
||||
from kubernetes.client.models.v1_service_spec import V1ServiceSpec
|
||||
from kubernetes.client.models.v1_service_status import V1ServiceStatus
|
||||
from kubernetes.client.models.v1_session_affinity_config import V1SessionAffinityConfig
|
||||
from kubernetes.client.models.v1_sleep_action import V1SleepAction
|
||||
from kubernetes.client.models.v1_stateful_set import V1StatefulSet
|
||||
from kubernetes.client.models.v1_stateful_set_condition import V1StatefulSetCondition
|
||||
from kubernetes.client.models.v1_stateful_set_list import V1StatefulSetList
|
||||
from kubernetes.client.models.v1_stateful_set_ordinals import V1StatefulSetOrdinals
|
||||
from kubernetes.client.models.v1_stateful_set_persistent_volume_claim_retention_policy import V1StatefulSetPersistentVolumeClaimRetentionPolicy
|
||||
from kubernetes.client.models.v1_stateful_set_spec import V1StatefulSetSpec
|
||||
from kubernetes.client.models.v1_stateful_set_status import V1StatefulSetStatus
|
||||
from kubernetes.client.models.v1_stateful_set_update_strategy import V1StatefulSetUpdateStrategy
|
||||
from kubernetes.client.models.v1_status import V1Status
|
||||
from kubernetes.client.models.v1_status_cause import V1StatusCause
|
||||
from kubernetes.client.models.v1_status_details import V1StatusDetails
|
||||
from kubernetes.client.models.v1_storage_class import V1StorageClass
|
||||
from kubernetes.client.models.v1_storage_class_list import V1StorageClassList
|
||||
from kubernetes.client.models.v1_storage_os_persistent_volume_source import V1StorageOSPersistentVolumeSource
|
||||
from kubernetes.client.models.v1_storage_os_volume_source import V1StorageOSVolumeSource
|
||||
from kubernetes.client.models.v1_subject_access_review import V1SubjectAccessReview
|
||||
from kubernetes.client.models.v1_subject_access_review_spec import V1SubjectAccessReviewSpec
|
||||
from kubernetes.client.models.v1_subject_access_review_status import V1SubjectAccessReviewStatus
|
||||
from kubernetes.client.models.v1_subject_rules_review_status import V1SubjectRulesReviewStatus
|
||||
from kubernetes.client.models.v1_success_policy import V1SuccessPolicy
|
||||
from kubernetes.client.models.v1_success_policy_rule import V1SuccessPolicyRule
|
||||
from kubernetes.client.models.v1_sysctl import V1Sysctl
|
||||
from kubernetes.client.models.v1_tcp_socket_action import V1TCPSocketAction
|
||||
from kubernetes.client.models.v1_taint import V1Taint
|
||||
from kubernetes.client.models.v1_token_request_spec import V1TokenRequestSpec
|
||||
from kubernetes.client.models.v1_token_request_status import V1TokenRequestStatus
|
||||
from kubernetes.client.models.v1_token_review import V1TokenReview
|
||||
from kubernetes.client.models.v1_token_review_spec import V1TokenReviewSpec
|
||||
from kubernetes.client.models.v1_token_review_status import V1TokenReviewStatus
|
||||
from kubernetes.client.models.v1_toleration import V1Toleration
|
||||
from kubernetes.client.models.v1_topology_selector_label_requirement import V1TopologySelectorLabelRequirement
|
||||
from kubernetes.client.models.v1_topology_selector_term import V1TopologySelectorTerm
|
||||
from kubernetes.client.models.v1_topology_spread_constraint import V1TopologySpreadConstraint
|
||||
from kubernetes.client.models.v1_type_checking import V1TypeChecking
|
||||
from kubernetes.client.models.v1_typed_local_object_reference import V1TypedLocalObjectReference
|
||||
from kubernetes.client.models.v1_typed_object_reference import V1TypedObjectReference
|
||||
from kubernetes.client.models.v1_uncounted_terminated_pods import V1UncountedTerminatedPods
|
||||
from kubernetes.client.models.v1_user_info import V1UserInfo
|
||||
from kubernetes.client.models.v1_user_subject import V1UserSubject
|
||||
from kubernetes.client.models.v1_validating_admission_policy import V1ValidatingAdmissionPolicy
|
||||
from kubernetes.client.models.v1_validating_admission_policy_binding import V1ValidatingAdmissionPolicyBinding
|
||||
from kubernetes.client.models.v1_validating_admission_policy_binding_list import V1ValidatingAdmissionPolicyBindingList
|
||||
from kubernetes.client.models.v1_validating_admission_policy_binding_spec import V1ValidatingAdmissionPolicyBindingSpec
|
||||
from kubernetes.client.models.v1_validating_admission_policy_list import V1ValidatingAdmissionPolicyList
|
||||
from kubernetes.client.models.v1_validating_admission_policy_spec import V1ValidatingAdmissionPolicySpec
|
||||
from kubernetes.client.models.v1_validating_admission_policy_status import V1ValidatingAdmissionPolicyStatus
|
||||
from kubernetes.client.models.v1_validating_webhook import V1ValidatingWebhook
|
||||
from kubernetes.client.models.v1_validating_webhook_configuration import V1ValidatingWebhookConfiguration
|
||||
from kubernetes.client.models.v1_validating_webhook_configuration_list import V1ValidatingWebhookConfigurationList
|
||||
from kubernetes.client.models.v1_validation import V1Validation
|
||||
from kubernetes.client.models.v1_validation_rule import V1ValidationRule
|
||||
from kubernetes.client.models.v1_variable import V1Variable
|
||||
from kubernetes.client.models.v1_volume import V1Volume
|
||||
from kubernetes.client.models.v1_volume_attachment import V1VolumeAttachment
|
||||
from kubernetes.client.models.v1_volume_attachment_list import V1VolumeAttachmentList
|
||||
from kubernetes.client.models.v1_volume_attachment_source import V1VolumeAttachmentSource
|
||||
from kubernetes.client.models.v1_volume_attachment_spec import V1VolumeAttachmentSpec
|
||||
from kubernetes.client.models.v1_volume_attachment_status import V1VolumeAttachmentStatus
|
||||
from kubernetes.client.models.v1_volume_device import V1VolumeDevice
|
||||
from kubernetes.client.models.v1_volume_error import V1VolumeError
|
||||
from kubernetes.client.models.v1_volume_mount import V1VolumeMount
|
||||
from kubernetes.client.models.v1_volume_mount_status import V1VolumeMountStatus
|
||||
from kubernetes.client.models.v1_volume_node_affinity import V1VolumeNodeAffinity
|
||||
from kubernetes.client.models.v1_volume_node_resources import V1VolumeNodeResources
|
||||
from kubernetes.client.models.v1_volume_projection import V1VolumeProjection
|
||||
from kubernetes.client.models.v1_volume_resource_requirements import V1VolumeResourceRequirements
|
||||
from kubernetes.client.models.v1_vsphere_virtual_disk_volume_source import V1VsphereVirtualDiskVolumeSource
|
||||
from kubernetes.client.models.v1_watch_event import V1WatchEvent
|
||||
from kubernetes.client.models.v1_webhook_conversion import V1WebhookConversion
|
||||
from kubernetes.client.models.v1_weighted_pod_affinity_term import V1WeightedPodAffinityTerm
|
||||
from kubernetes.client.models.v1_windows_security_context_options import V1WindowsSecurityContextOptions
|
||||
from kubernetes.client.models.v1alpha1_apply_configuration import V1alpha1ApplyConfiguration
|
||||
from kubernetes.client.models.v1alpha1_cluster_trust_bundle import V1alpha1ClusterTrustBundle
|
||||
from kubernetes.client.models.v1alpha1_cluster_trust_bundle_list import V1alpha1ClusterTrustBundleList
|
||||
from kubernetes.client.models.v1alpha1_cluster_trust_bundle_spec import V1alpha1ClusterTrustBundleSpec
|
||||
from kubernetes.client.models.v1alpha1_group_version_resource import V1alpha1GroupVersionResource
|
||||
from kubernetes.client.models.v1alpha1_json_patch import V1alpha1JSONPatch
|
||||
from kubernetes.client.models.v1alpha1_match_condition import V1alpha1MatchCondition
|
||||
from kubernetes.client.models.v1alpha1_match_resources import V1alpha1MatchResources
|
||||
from kubernetes.client.models.v1alpha1_migration_condition import V1alpha1MigrationCondition
|
||||
from kubernetes.client.models.v1alpha1_mutating_admission_policy import V1alpha1MutatingAdmissionPolicy
|
||||
from kubernetes.client.models.v1alpha1_mutating_admission_policy_binding import V1alpha1MutatingAdmissionPolicyBinding
|
||||
from kubernetes.client.models.v1alpha1_mutating_admission_policy_binding_list import V1alpha1MutatingAdmissionPolicyBindingList
|
||||
from kubernetes.client.models.v1alpha1_mutating_admission_policy_binding_spec import V1alpha1MutatingAdmissionPolicyBindingSpec
|
||||
from kubernetes.client.models.v1alpha1_mutating_admission_policy_list import V1alpha1MutatingAdmissionPolicyList
|
||||
from kubernetes.client.models.v1alpha1_mutating_admission_policy_spec import V1alpha1MutatingAdmissionPolicySpec
|
||||
from kubernetes.client.models.v1alpha1_mutation import V1alpha1Mutation
|
||||
from kubernetes.client.models.v1alpha1_named_rule_with_operations import V1alpha1NamedRuleWithOperations
|
||||
from kubernetes.client.models.v1alpha1_param_kind import V1alpha1ParamKind
|
||||
from kubernetes.client.models.v1alpha1_param_ref import V1alpha1ParamRef
|
||||
from kubernetes.client.models.v1alpha1_server_storage_version import V1alpha1ServerStorageVersion
|
||||
from kubernetes.client.models.v1alpha1_storage_version import V1alpha1StorageVersion
|
||||
from kubernetes.client.models.v1alpha1_storage_version_condition import V1alpha1StorageVersionCondition
|
||||
from kubernetes.client.models.v1alpha1_storage_version_list import V1alpha1StorageVersionList
|
||||
from kubernetes.client.models.v1alpha1_storage_version_migration import V1alpha1StorageVersionMigration
|
||||
from kubernetes.client.models.v1alpha1_storage_version_migration_list import V1alpha1StorageVersionMigrationList
|
||||
from kubernetes.client.models.v1alpha1_storage_version_migration_spec import V1alpha1StorageVersionMigrationSpec
|
||||
from kubernetes.client.models.v1alpha1_storage_version_migration_status import V1alpha1StorageVersionMigrationStatus
|
||||
from kubernetes.client.models.v1alpha1_storage_version_status import V1alpha1StorageVersionStatus
|
||||
from kubernetes.client.models.v1alpha1_variable import V1alpha1Variable
|
||||
from kubernetes.client.models.v1alpha1_volume_attributes_class import V1alpha1VolumeAttributesClass
|
||||
from kubernetes.client.models.v1alpha1_volume_attributes_class_list import V1alpha1VolumeAttributesClassList
|
||||
from kubernetes.client.models.v1alpha2_lease_candidate import V1alpha2LeaseCandidate
|
||||
from kubernetes.client.models.v1alpha2_lease_candidate_list import V1alpha2LeaseCandidateList
|
||||
from kubernetes.client.models.v1alpha2_lease_candidate_spec import V1alpha2LeaseCandidateSpec
|
||||
from kubernetes.client.models.v1alpha3_allocated_device_status import V1alpha3AllocatedDeviceStatus
|
||||
from kubernetes.client.models.v1alpha3_allocation_result import V1alpha3AllocationResult
|
||||
from kubernetes.client.models.v1alpha3_basic_device import V1alpha3BasicDevice
|
||||
from kubernetes.client.models.v1alpha3_cel_device_selector import V1alpha3CELDeviceSelector
|
||||
from kubernetes.client.models.v1alpha3_device import V1alpha3Device
|
||||
from kubernetes.client.models.v1alpha3_device_allocation_configuration import V1alpha3DeviceAllocationConfiguration
|
||||
from kubernetes.client.models.v1alpha3_device_allocation_result import V1alpha3DeviceAllocationResult
|
||||
from kubernetes.client.models.v1alpha3_device_attribute import V1alpha3DeviceAttribute
|
||||
from kubernetes.client.models.v1alpha3_device_claim import V1alpha3DeviceClaim
|
||||
from kubernetes.client.models.v1alpha3_device_claim_configuration import V1alpha3DeviceClaimConfiguration
|
||||
from kubernetes.client.models.v1alpha3_device_class import V1alpha3DeviceClass
|
||||
from kubernetes.client.models.v1alpha3_device_class_configuration import V1alpha3DeviceClassConfiguration
|
||||
from kubernetes.client.models.v1alpha3_device_class_list import V1alpha3DeviceClassList
|
||||
from kubernetes.client.models.v1alpha3_device_class_spec import V1alpha3DeviceClassSpec
|
||||
from kubernetes.client.models.v1alpha3_device_constraint import V1alpha3DeviceConstraint
|
||||
from kubernetes.client.models.v1alpha3_device_request import V1alpha3DeviceRequest
|
||||
from kubernetes.client.models.v1alpha3_device_request_allocation_result import V1alpha3DeviceRequestAllocationResult
|
||||
from kubernetes.client.models.v1alpha3_device_selector import V1alpha3DeviceSelector
|
||||
from kubernetes.client.models.v1alpha3_network_device_data import V1alpha3NetworkDeviceData
|
||||
from kubernetes.client.models.v1alpha3_opaque_device_configuration import V1alpha3OpaqueDeviceConfiguration
|
||||
from kubernetes.client.models.v1alpha3_resource_claim import V1alpha3ResourceClaim
|
||||
from kubernetes.client.models.v1alpha3_resource_claim_consumer_reference import V1alpha3ResourceClaimConsumerReference
|
||||
from kubernetes.client.models.v1alpha3_resource_claim_list import V1alpha3ResourceClaimList
|
||||
from kubernetes.client.models.v1alpha3_resource_claim_spec import V1alpha3ResourceClaimSpec
|
||||
from kubernetes.client.models.v1alpha3_resource_claim_status import V1alpha3ResourceClaimStatus
|
||||
from kubernetes.client.models.v1alpha3_resource_claim_template import V1alpha3ResourceClaimTemplate
|
||||
from kubernetes.client.models.v1alpha3_resource_claim_template_list import V1alpha3ResourceClaimTemplateList
|
||||
from kubernetes.client.models.v1alpha3_resource_claim_template_spec import V1alpha3ResourceClaimTemplateSpec
|
||||
from kubernetes.client.models.v1alpha3_resource_pool import V1alpha3ResourcePool
|
||||
from kubernetes.client.models.v1alpha3_resource_slice import V1alpha3ResourceSlice
|
||||
from kubernetes.client.models.v1alpha3_resource_slice_list import V1alpha3ResourceSliceList
|
||||
from kubernetes.client.models.v1alpha3_resource_slice_spec import V1alpha3ResourceSliceSpec
|
||||
from kubernetes.client.models.v1beta1_allocated_device_status import V1beta1AllocatedDeviceStatus
|
||||
from kubernetes.client.models.v1beta1_allocation_result import V1beta1AllocationResult
|
||||
from kubernetes.client.models.v1beta1_audit_annotation import V1beta1AuditAnnotation
|
||||
from kubernetes.client.models.v1beta1_basic_device import V1beta1BasicDevice
|
||||
from kubernetes.client.models.v1beta1_cel_device_selector import V1beta1CELDeviceSelector
|
||||
from kubernetes.client.models.v1beta1_device import V1beta1Device
|
||||
from kubernetes.client.models.v1beta1_device_allocation_configuration import V1beta1DeviceAllocationConfiguration
|
||||
from kubernetes.client.models.v1beta1_device_allocation_result import V1beta1DeviceAllocationResult
|
||||
from kubernetes.client.models.v1beta1_device_attribute import V1beta1DeviceAttribute
|
||||
from kubernetes.client.models.v1beta1_device_capacity import V1beta1DeviceCapacity
|
||||
from kubernetes.client.models.v1beta1_device_claim import V1beta1DeviceClaim
|
||||
from kubernetes.client.models.v1beta1_device_claim_configuration import V1beta1DeviceClaimConfiguration
|
||||
from kubernetes.client.models.v1beta1_device_class import V1beta1DeviceClass
|
||||
from kubernetes.client.models.v1beta1_device_class_configuration import V1beta1DeviceClassConfiguration
|
||||
from kubernetes.client.models.v1beta1_device_class_list import V1beta1DeviceClassList
|
||||
from kubernetes.client.models.v1beta1_device_class_spec import V1beta1DeviceClassSpec
|
||||
from kubernetes.client.models.v1beta1_device_constraint import V1beta1DeviceConstraint
|
||||
from kubernetes.client.models.v1beta1_device_request import V1beta1DeviceRequest
|
||||
from kubernetes.client.models.v1beta1_device_request_allocation_result import V1beta1DeviceRequestAllocationResult
|
||||
from kubernetes.client.models.v1beta1_device_selector import V1beta1DeviceSelector
|
||||
from kubernetes.client.models.v1beta1_expression_warning import V1beta1ExpressionWarning
|
||||
from kubernetes.client.models.v1beta1_ip_address import V1beta1IPAddress
|
||||
from kubernetes.client.models.v1beta1_ip_address_list import V1beta1IPAddressList
|
||||
from kubernetes.client.models.v1beta1_ip_address_spec import V1beta1IPAddressSpec
|
||||
from kubernetes.client.models.v1beta1_match_condition import V1beta1MatchCondition
|
||||
from kubernetes.client.models.v1beta1_match_resources import V1beta1MatchResources
|
||||
from kubernetes.client.models.v1beta1_named_rule_with_operations import V1beta1NamedRuleWithOperations
|
||||
from kubernetes.client.models.v1beta1_network_device_data import V1beta1NetworkDeviceData
|
||||
from kubernetes.client.models.v1beta1_opaque_device_configuration import V1beta1OpaqueDeviceConfiguration
|
||||
from kubernetes.client.models.v1beta1_param_kind import V1beta1ParamKind
|
||||
from kubernetes.client.models.v1beta1_param_ref import V1beta1ParamRef
|
||||
from kubernetes.client.models.v1beta1_parent_reference import V1beta1ParentReference
|
||||
from kubernetes.client.models.v1beta1_resource_claim import V1beta1ResourceClaim
|
||||
from kubernetes.client.models.v1beta1_resource_claim_consumer_reference import V1beta1ResourceClaimConsumerReference
|
||||
from kubernetes.client.models.v1beta1_resource_claim_list import V1beta1ResourceClaimList
|
||||
from kubernetes.client.models.v1beta1_resource_claim_spec import V1beta1ResourceClaimSpec
|
||||
from kubernetes.client.models.v1beta1_resource_claim_status import V1beta1ResourceClaimStatus
|
||||
from kubernetes.client.models.v1beta1_resource_claim_template import V1beta1ResourceClaimTemplate
|
||||
from kubernetes.client.models.v1beta1_resource_claim_template_list import V1beta1ResourceClaimTemplateList
|
||||
from kubernetes.client.models.v1beta1_resource_claim_template_spec import V1beta1ResourceClaimTemplateSpec
|
||||
from kubernetes.client.models.v1beta1_resource_pool import V1beta1ResourcePool
|
||||
from kubernetes.client.models.v1beta1_resource_slice import V1beta1ResourceSlice
|
||||
from kubernetes.client.models.v1beta1_resource_slice_list import V1beta1ResourceSliceList
|
||||
from kubernetes.client.models.v1beta1_resource_slice_spec import V1beta1ResourceSliceSpec
|
||||
from kubernetes.client.models.v1beta1_self_subject_review import V1beta1SelfSubjectReview
|
||||
from kubernetes.client.models.v1beta1_self_subject_review_status import V1beta1SelfSubjectReviewStatus
|
||||
from kubernetes.client.models.v1beta1_service_cidr import V1beta1ServiceCIDR
|
||||
from kubernetes.client.models.v1beta1_service_cidr_list import V1beta1ServiceCIDRList
|
||||
from kubernetes.client.models.v1beta1_service_cidr_spec import V1beta1ServiceCIDRSpec
|
||||
from kubernetes.client.models.v1beta1_service_cidr_status import V1beta1ServiceCIDRStatus
|
||||
from kubernetes.client.models.v1beta1_type_checking import V1beta1TypeChecking
|
||||
from kubernetes.client.models.v1beta1_validating_admission_policy import V1beta1ValidatingAdmissionPolicy
|
||||
from kubernetes.client.models.v1beta1_validating_admission_policy_binding import V1beta1ValidatingAdmissionPolicyBinding
|
||||
from kubernetes.client.models.v1beta1_validating_admission_policy_binding_list import V1beta1ValidatingAdmissionPolicyBindingList
|
||||
from kubernetes.client.models.v1beta1_validating_admission_policy_binding_spec import V1beta1ValidatingAdmissionPolicyBindingSpec
|
||||
from kubernetes.client.models.v1beta1_validating_admission_policy_list import V1beta1ValidatingAdmissionPolicyList
|
||||
from kubernetes.client.models.v1beta1_validating_admission_policy_spec import V1beta1ValidatingAdmissionPolicySpec
|
||||
from kubernetes.client.models.v1beta1_validating_admission_policy_status import V1beta1ValidatingAdmissionPolicyStatus
|
||||
from kubernetes.client.models.v1beta1_validation import V1beta1Validation
|
||||
from kubernetes.client.models.v1beta1_variable import V1beta1Variable
|
||||
from kubernetes.client.models.v1beta1_volume_attributes_class import V1beta1VolumeAttributesClass
|
||||
from kubernetes.client.models.v1beta1_volume_attributes_class_list import V1beta1VolumeAttributesClassList
|
||||
from kubernetes.client.models.v2_container_resource_metric_source import V2ContainerResourceMetricSource
|
||||
from kubernetes.client.models.v2_container_resource_metric_status import V2ContainerResourceMetricStatus
|
||||
from kubernetes.client.models.v2_cross_version_object_reference import V2CrossVersionObjectReference
|
||||
from kubernetes.client.models.v2_external_metric_source import V2ExternalMetricSource
|
||||
from kubernetes.client.models.v2_external_metric_status import V2ExternalMetricStatus
|
||||
from kubernetes.client.models.v2_hpa_scaling_policy import V2HPAScalingPolicy
|
||||
from kubernetes.client.models.v2_hpa_scaling_rules import V2HPAScalingRules
|
||||
from kubernetes.client.models.v2_horizontal_pod_autoscaler import V2HorizontalPodAutoscaler
|
||||
from kubernetes.client.models.v2_horizontal_pod_autoscaler_behavior import V2HorizontalPodAutoscalerBehavior
|
||||
from kubernetes.client.models.v2_horizontal_pod_autoscaler_condition import V2HorizontalPodAutoscalerCondition
|
||||
from kubernetes.client.models.v2_horizontal_pod_autoscaler_list import V2HorizontalPodAutoscalerList
|
||||
from kubernetes.client.models.v2_horizontal_pod_autoscaler_spec import V2HorizontalPodAutoscalerSpec
|
||||
from kubernetes.client.models.v2_horizontal_pod_autoscaler_status import V2HorizontalPodAutoscalerStatus
|
||||
from kubernetes.client.models.v2_metric_identifier import V2MetricIdentifier
|
||||
from kubernetes.client.models.v2_metric_spec import V2MetricSpec
|
||||
from kubernetes.client.models.v2_metric_status import V2MetricStatus
|
||||
from kubernetes.client.models.v2_metric_target import V2MetricTarget
|
||||
from kubernetes.client.models.v2_metric_value_status import V2MetricValueStatus
|
||||
from kubernetes.client.models.v2_object_metric_source import V2ObjectMetricSource
|
||||
from kubernetes.client.models.v2_object_metric_status import V2ObjectMetricStatus
|
||||
from kubernetes.client.models.v2_pods_metric_source import V2PodsMetricSource
|
||||
from kubernetes.client.models.v2_pods_metric_status import V2PodsMetricStatus
|
||||
from kubernetes.client.models.v2_resource_metric_source import V2ResourceMetricSource
|
||||
from kubernetes.client.models.v2_resource_metric_status import V2ResourceMetricStatus
|
||||
from kubernetes.client.models.version_info import VersionInfo
|
|
@ -0,0 +1,208 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class AdmissionregistrationV1ServiceReference(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'name': 'str',
|
||||
'namespace': 'str',
|
||||
'path': 'str',
|
||||
'port': 'int'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'name': 'name',
|
||||
'namespace': 'namespace',
|
||||
'path': 'path',
|
||||
'port': 'port'
|
||||
}
|
||||
|
||||
def __init__(self, name=None, namespace=None, path=None, port=None, local_vars_configuration=None): # noqa: E501
|
||||
"""AdmissionregistrationV1ServiceReference - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._name = None
|
||||
self._namespace = None
|
||||
self._path = None
|
||||
self._port = None
|
||||
self.discriminator = None
|
||||
|
||||
self.name = name
|
||||
self.namespace = namespace
|
||||
if path is not None:
|
||||
self.path = path
|
||||
if port is not None:
|
||||
self.port = port
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""Gets the name of this AdmissionregistrationV1ServiceReference. # noqa: E501
|
||||
|
||||
`name` is the name of the service. Required # noqa: E501
|
||||
|
||||
:return: The name of this AdmissionregistrationV1ServiceReference. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._name
|
||||
|
||||
@name.setter
|
||||
def name(self, name):
|
||||
"""Sets the name of this AdmissionregistrationV1ServiceReference.
|
||||
|
||||
`name` is the name of the service. Required # noqa: E501
|
||||
|
||||
:param name: The name of this AdmissionregistrationV1ServiceReference. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
||||
|
||||
self._name = name
|
||||
|
||||
@property
|
||||
def namespace(self):
|
||||
"""Gets the namespace of this AdmissionregistrationV1ServiceReference. # noqa: E501
|
||||
|
||||
`namespace` is the namespace of the service. Required # noqa: E501
|
||||
|
||||
:return: The namespace of this AdmissionregistrationV1ServiceReference. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._namespace
|
||||
|
||||
@namespace.setter
|
||||
def namespace(self, namespace):
|
||||
"""Sets the namespace of this AdmissionregistrationV1ServiceReference.
|
||||
|
||||
`namespace` is the namespace of the service. Required # noqa: E501
|
||||
|
||||
:param namespace: The namespace of this AdmissionregistrationV1ServiceReference. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and namespace is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `namespace`, must not be `None`") # noqa: E501
|
||||
|
||||
self._namespace = namespace
|
||||
|
||||
@property
|
||||
def path(self):
|
||||
"""Gets the path of this AdmissionregistrationV1ServiceReference. # noqa: E501
|
||||
|
||||
`path` is an optional URL path which will be sent in any request to this service. # noqa: E501
|
||||
|
||||
:return: The path of this AdmissionregistrationV1ServiceReference. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._path
|
||||
|
||||
@path.setter
|
||||
def path(self, path):
|
||||
"""Sets the path of this AdmissionregistrationV1ServiceReference.
|
||||
|
||||
`path` is an optional URL path which will be sent in any request to this service. # noqa: E501
|
||||
|
||||
:param path: The path of this AdmissionregistrationV1ServiceReference. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._path = path
|
||||
|
||||
@property
|
||||
def port(self):
|
||||
"""Gets the port of this AdmissionregistrationV1ServiceReference. # noqa: E501
|
||||
|
||||
If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). # noqa: E501
|
||||
|
||||
:return: The port of this AdmissionregistrationV1ServiceReference. # noqa: E501
|
||||
:rtype: int
|
||||
"""
|
||||
return self._port
|
||||
|
||||
@port.setter
|
||||
def port(self, port):
|
||||
"""Sets the port of this AdmissionregistrationV1ServiceReference.
|
||||
|
||||
If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). # noqa: E501
|
||||
|
||||
:param port: The port of this AdmissionregistrationV1ServiceReference. # noqa: E501
|
||||
:type: int
|
||||
"""
|
||||
|
||||
self._port = port
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, AdmissionregistrationV1ServiceReference):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, AdmissionregistrationV1ServiceReference):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
|
@ -0,0 +1,179 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class AdmissionregistrationV1WebhookClientConfig(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'ca_bundle': 'str',
|
||||
'service': 'AdmissionregistrationV1ServiceReference',
|
||||
'url': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'ca_bundle': 'caBundle',
|
||||
'service': 'service',
|
||||
'url': 'url'
|
||||
}
|
||||
|
||||
def __init__(self, ca_bundle=None, service=None, url=None, local_vars_configuration=None): # noqa: E501
|
||||
"""AdmissionregistrationV1WebhookClientConfig - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._ca_bundle = None
|
||||
self._service = None
|
||||
self._url = None
|
||||
self.discriminator = None
|
||||
|
||||
if ca_bundle is not None:
|
||||
self.ca_bundle = ca_bundle
|
||||
if service is not None:
|
||||
self.service = service
|
||||
if url is not None:
|
||||
self.url = url
|
||||
|
||||
@property
|
||||
def ca_bundle(self):
|
||||
"""Gets the ca_bundle of this AdmissionregistrationV1WebhookClientConfig. # noqa: E501
|
||||
|
||||
`caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. # noqa: E501
|
||||
|
||||
:return: The ca_bundle of this AdmissionregistrationV1WebhookClientConfig. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._ca_bundle
|
||||
|
||||
@ca_bundle.setter
|
||||
def ca_bundle(self, ca_bundle):
|
||||
"""Sets the ca_bundle of this AdmissionregistrationV1WebhookClientConfig.
|
||||
|
||||
`caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. # noqa: E501
|
||||
|
||||
:param ca_bundle: The ca_bundle of this AdmissionregistrationV1WebhookClientConfig. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if (self.local_vars_configuration.client_side_validation and
|
||||
ca_bundle is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', ca_bundle)): # noqa: E501
|
||||
raise ValueError(r"Invalid value for `ca_bundle`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501
|
||||
|
||||
self._ca_bundle = ca_bundle
|
||||
|
||||
@property
|
||||
def service(self):
|
||||
"""Gets the service of this AdmissionregistrationV1WebhookClientConfig. # noqa: E501
|
||||
|
||||
|
||||
:return: The service of this AdmissionregistrationV1WebhookClientConfig. # noqa: E501
|
||||
:rtype: AdmissionregistrationV1ServiceReference
|
||||
"""
|
||||
return self._service
|
||||
|
||||
@service.setter
|
||||
def service(self, service):
|
||||
"""Sets the service of this AdmissionregistrationV1WebhookClientConfig.
|
||||
|
||||
|
||||
:param service: The service of this AdmissionregistrationV1WebhookClientConfig. # noqa: E501
|
||||
:type: AdmissionregistrationV1ServiceReference
|
||||
"""
|
||||
|
||||
self._service = service
|
||||
|
||||
@property
|
||||
def url(self):
|
||||
"""Gets the url of this AdmissionregistrationV1WebhookClientConfig. # noqa: E501
|
||||
|
||||
`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either. # noqa: E501
|
||||
|
||||
:return: The url of this AdmissionregistrationV1WebhookClientConfig. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._url
|
||||
|
||||
@url.setter
|
||||
def url(self, url):
|
||||
"""Sets the url of this AdmissionregistrationV1WebhookClientConfig.
|
||||
|
||||
`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either. # noqa: E501
|
||||
|
||||
:param url: The url of this AdmissionregistrationV1WebhookClientConfig. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._url = url
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, AdmissionregistrationV1WebhookClientConfig):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, AdmissionregistrationV1WebhookClientConfig):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
208
kubernetes/client/models/apiextensions_v1_service_reference.py
Normal file
208
kubernetes/client/models/apiextensions_v1_service_reference.py
Normal file
|
@ -0,0 +1,208 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class ApiextensionsV1ServiceReference(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'name': 'str',
|
||||
'namespace': 'str',
|
||||
'path': 'str',
|
||||
'port': 'int'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'name': 'name',
|
||||
'namespace': 'namespace',
|
||||
'path': 'path',
|
||||
'port': 'port'
|
||||
}
|
||||
|
||||
def __init__(self, name=None, namespace=None, path=None, port=None, local_vars_configuration=None): # noqa: E501
|
||||
"""ApiextensionsV1ServiceReference - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._name = None
|
||||
self._namespace = None
|
||||
self._path = None
|
||||
self._port = None
|
||||
self.discriminator = None
|
||||
|
||||
self.name = name
|
||||
self.namespace = namespace
|
||||
if path is not None:
|
||||
self.path = path
|
||||
if port is not None:
|
||||
self.port = port
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""Gets the name of this ApiextensionsV1ServiceReference. # noqa: E501
|
||||
|
||||
name is the name of the service. Required # noqa: E501
|
||||
|
||||
:return: The name of this ApiextensionsV1ServiceReference. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._name
|
||||
|
||||
@name.setter
|
||||
def name(self, name):
|
||||
"""Sets the name of this ApiextensionsV1ServiceReference.
|
||||
|
||||
name is the name of the service. Required # noqa: E501
|
||||
|
||||
:param name: The name of this ApiextensionsV1ServiceReference. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
||||
|
||||
self._name = name
|
||||
|
||||
@property
|
||||
def namespace(self):
|
||||
"""Gets the namespace of this ApiextensionsV1ServiceReference. # noqa: E501
|
||||
|
||||
namespace is the namespace of the service. Required # noqa: E501
|
||||
|
||||
:return: The namespace of this ApiextensionsV1ServiceReference. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._namespace
|
||||
|
||||
@namespace.setter
|
||||
def namespace(self, namespace):
|
||||
"""Sets the namespace of this ApiextensionsV1ServiceReference.
|
||||
|
||||
namespace is the namespace of the service. Required # noqa: E501
|
||||
|
||||
:param namespace: The namespace of this ApiextensionsV1ServiceReference. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and namespace is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `namespace`, must not be `None`") # noqa: E501
|
||||
|
||||
self._namespace = namespace
|
||||
|
||||
@property
|
||||
def path(self):
|
||||
"""Gets the path of this ApiextensionsV1ServiceReference. # noqa: E501
|
||||
|
||||
path is an optional URL path at which the webhook will be contacted. # noqa: E501
|
||||
|
||||
:return: The path of this ApiextensionsV1ServiceReference. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._path
|
||||
|
||||
@path.setter
|
||||
def path(self, path):
|
||||
"""Sets the path of this ApiextensionsV1ServiceReference.
|
||||
|
||||
path is an optional URL path at which the webhook will be contacted. # noqa: E501
|
||||
|
||||
:param path: The path of this ApiextensionsV1ServiceReference. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._path = path
|
||||
|
||||
@property
|
||||
def port(self):
|
||||
"""Gets the port of this ApiextensionsV1ServiceReference. # noqa: E501
|
||||
|
||||
port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility. # noqa: E501
|
||||
|
||||
:return: The port of this ApiextensionsV1ServiceReference. # noqa: E501
|
||||
:rtype: int
|
||||
"""
|
||||
return self._port
|
||||
|
||||
@port.setter
|
||||
def port(self, port):
|
||||
"""Sets the port of this ApiextensionsV1ServiceReference.
|
||||
|
||||
port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility. # noqa: E501
|
||||
|
||||
:param port: The port of this ApiextensionsV1ServiceReference. # noqa: E501
|
||||
:type: int
|
||||
"""
|
||||
|
||||
self._port = port
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, ApiextensionsV1ServiceReference):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, ApiextensionsV1ServiceReference):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
|
@ -0,0 +1,179 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class ApiextensionsV1WebhookClientConfig(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'ca_bundle': 'str',
|
||||
'service': 'ApiextensionsV1ServiceReference',
|
||||
'url': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'ca_bundle': 'caBundle',
|
||||
'service': 'service',
|
||||
'url': 'url'
|
||||
}
|
||||
|
||||
def __init__(self, ca_bundle=None, service=None, url=None, local_vars_configuration=None): # noqa: E501
|
||||
"""ApiextensionsV1WebhookClientConfig - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._ca_bundle = None
|
||||
self._service = None
|
||||
self._url = None
|
||||
self.discriminator = None
|
||||
|
||||
if ca_bundle is not None:
|
||||
self.ca_bundle = ca_bundle
|
||||
if service is not None:
|
||||
self.service = service
|
||||
if url is not None:
|
||||
self.url = url
|
||||
|
||||
@property
|
||||
def ca_bundle(self):
|
||||
"""Gets the ca_bundle of this ApiextensionsV1WebhookClientConfig. # noqa: E501
|
||||
|
||||
caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. # noqa: E501
|
||||
|
||||
:return: The ca_bundle of this ApiextensionsV1WebhookClientConfig. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._ca_bundle
|
||||
|
||||
@ca_bundle.setter
|
||||
def ca_bundle(self, ca_bundle):
|
||||
"""Sets the ca_bundle of this ApiextensionsV1WebhookClientConfig.
|
||||
|
||||
caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. # noqa: E501
|
||||
|
||||
:param ca_bundle: The ca_bundle of this ApiextensionsV1WebhookClientConfig. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if (self.local_vars_configuration.client_side_validation and
|
||||
ca_bundle is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', ca_bundle)): # noqa: E501
|
||||
raise ValueError(r"Invalid value for `ca_bundle`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501
|
||||
|
||||
self._ca_bundle = ca_bundle
|
||||
|
||||
@property
|
||||
def service(self):
|
||||
"""Gets the service of this ApiextensionsV1WebhookClientConfig. # noqa: E501
|
||||
|
||||
|
||||
:return: The service of this ApiextensionsV1WebhookClientConfig. # noqa: E501
|
||||
:rtype: ApiextensionsV1ServiceReference
|
||||
"""
|
||||
return self._service
|
||||
|
||||
@service.setter
|
||||
def service(self, service):
|
||||
"""Sets the service of this ApiextensionsV1WebhookClientConfig.
|
||||
|
||||
|
||||
:param service: The service of this ApiextensionsV1WebhookClientConfig. # noqa: E501
|
||||
:type: ApiextensionsV1ServiceReference
|
||||
"""
|
||||
|
||||
self._service = service
|
||||
|
||||
@property
|
||||
def url(self):
|
||||
"""Gets the url of this ApiextensionsV1WebhookClientConfig. # noqa: E501
|
||||
|
||||
url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either. # noqa: E501
|
||||
|
||||
:return: The url of this ApiextensionsV1WebhookClientConfig. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._url
|
||||
|
||||
@url.setter
|
||||
def url(self, url):
|
||||
"""Sets the url of this ApiextensionsV1WebhookClientConfig.
|
||||
|
||||
url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either. # noqa: E501
|
||||
|
||||
:param url: The url of this ApiextensionsV1WebhookClientConfig. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._url = url
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, ApiextensionsV1WebhookClientConfig):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, ApiextensionsV1WebhookClientConfig):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
178
kubernetes/client/models/apiregistration_v1_service_reference.py
Normal file
178
kubernetes/client/models/apiregistration_v1_service_reference.py
Normal file
|
@ -0,0 +1,178 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class ApiregistrationV1ServiceReference(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'name': 'str',
|
||||
'namespace': 'str',
|
||||
'port': 'int'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'name': 'name',
|
||||
'namespace': 'namespace',
|
||||
'port': 'port'
|
||||
}
|
||||
|
||||
def __init__(self, name=None, namespace=None, port=None, local_vars_configuration=None): # noqa: E501
|
||||
"""ApiregistrationV1ServiceReference - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._name = None
|
||||
self._namespace = None
|
||||
self._port = None
|
||||
self.discriminator = None
|
||||
|
||||
if name is not None:
|
||||
self.name = name
|
||||
if namespace is not None:
|
||||
self.namespace = namespace
|
||||
if port is not None:
|
||||
self.port = port
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""Gets the name of this ApiregistrationV1ServiceReference. # noqa: E501
|
||||
|
||||
Name is the name of the service # noqa: E501
|
||||
|
||||
:return: The name of this ApiregistrationV1ServiceReference. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._name
|
||||
|
||||
@name.setter
|
||||
def name(self, name):
|
||||
"""Sets the name of this ApiregistrationV1ServiceReference.
|
||||
|
||||
Name is the name of the service # noqa: E501
|
||||
|
||||
:param name: The name of this ApiregistrationV1ServiceReference. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._name = name
|
||||
|
||||
@property
|
||||
def namespace(self):
|
||||
"""Gets the namespace of this ApiregistrationV1ServiceReference. # noqa: E501
|
||||
|
||||
Namespace is the namespace of the service # noqa: E501
|
||||
|
||||
:return: The namespace of this ApiregistrationV1ServiceReference. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._namespace
|
||||
|
||||
@namespace.setter
|
||||
def namespace(self, namespace):
|
||||
"""Sets the namespace of this ApiregistrationV1ServiceReference.
|
||||
|
||||
Namespace is the namespace of the service # noqa: E501
|
||||
|
||||
:param namespace: The namespace of this ApiregistrationV1ServiceReference. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._namespace = namespace
|
||||
|
||||
@property
|
||||
def port(self):
|
||||
"""Gets the port of this ApiregistrationV1ServiceReference. # noqa: E501
|
||||
|
||||
If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). # noqa: E501
|
||||
|
||||
:return: The port of this ApiregistrationV1ServiceReference. # noqa: E501
|
||||
:rtype: int
|
||||
"""
|
||||
return self._port
|
||||
|
||||
@port.setter
|
||||
def port(self, port):
|
||||
"""Sets the port of this ApiregistrationV1ServiceReference.
|
||||
|
||||
If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). # noqa: E501
|
||||
|
||||
:param port: The port of this ApiregistrationV1ServiceReference. # noqa: E501
|
||||
:type: int
|
||||
"""
|
||||
|
||||
self._port = port
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, ApiregistrationV1ServiceReference):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, ApiregistrationV1ServiceReference):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
229
kubernetes/client/models/authentication_v1_token_request.py
Normal file
229
kubernetes/client/models/authentication_v1_token_request.py
Normal file
|
@ -0,0 +1,229 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class AuthenticationV1TokenRequest(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'api_version': 'str',
|
||||
'kind': 'str',
|
||||
'metadata': 'V1ObjectMeta',
|
||||
'spec': 'V1TokenRequestSpec',
|
||||
'status': 'V1TokenRequestStatus'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'api_version': 'apiVersion',
|
||||
'kind': 'kind',
|
||||
'metadata': 'metadata',
|
||||
'spec': 'spec',
|
||||
'status': 'status'
|
||||
}
|
||||
|
||||
def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501
|
||||
"""AuthenticationV1TokenRequest - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._api_version = None
|
||||
self._kind = None
|
||||
self._metadata = None
|
||||
self._spec = None
|
||||
self._status = None
|
||||
self.discriminator = None
|
||||
|
||||
if api_version is not None:
|
||||
self.api_version = api_version
|
||||
if kind is not None:
|
||||
self.kind = kind
|
||||
if metadata is not None:
|
||||
self.metadata = metadata
|
||||
self.spec = spec
|
||||
if status is not None:
|
||||
self.status = status
|
||||
|
||||
@property
|
||||
def api_version(self):
|
||||
"""Gets the api_version of this AuthenticationV1TokenRequest. # noqa: E501
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:return: The api_version of this AuthenticationV1TokenRequest. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._api_version
|
||||
|
||||
@api_version.setter
|
||||
def api_version(self, api_version):
|
||||
"""Sets the api_version of this AuthenticationV1TokenRequest.
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:param api_version: The api_version of this AuthenticationV1TokenRequest. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._api_version = api_version
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this AuthenticationV1TokenRequest. # noqa: E501
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:return: The kind of this AuthenticationV1TokenRequest. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets the kind of this AuthenticationV1TokenRequest.
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:param kind: The kind of this AuthenticationV1TokenRequest. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def metadata(self):
|
||||
"""Gets the metadata of this AuthenticationV1TokenRequest. # noqa: E501
|
||||
|
||||
|
||||
:return: The metadata of this AuthenticationV1TokenRequest. # noqa: E501
|
||||
:rtype: V1ObjectMeta
|
||||
"""
|
||||
return self._metadata
|
||||
|
||||
@metadata.setter
|
||||
def metadata(self, metadata):
|
||||
"""Sets the metadata of this AuthenticationV1TokenRequest.
|
||||
|
||||
|
||||
:param metadata: The metadata of this AuthenticationV1TokenRequest. # noqa: E501
|
||||
:type: V1ObjectMeta
|
||||
"""
|
||||
|
||||
self._metadata = metadata
|
||||
|
||||
@property
|
||||
def spec(self):
|
||||
"""Gets the spec of this AuthenticationV1TokenRequest. # noqa: E501
|
||||
|
||||
|
||||
:return: The spec of this AuthenticationV1TokenRequest. # noqa: E501
|
||||
:rtype: V1TokenRequestSpec
|
||||
"""
|
||||
return self._spec
|
||||
|
||||
@spec.setter
|
||||
def spec(self, spec):
|
||||
"""Sets the spec of this AuthenticationV1TokenRequest.
|
||||
|
||||
|
||||
:param spec: The spec of this AuthenticationV1TokenRequest. # noqa: E501
|
||||
:type: V1TokenRequestSpec
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501
|
||||
|
||||
self._spec = spec
|
||||
|
||||
@property
|
||||
def status(self):
|
||||
"""Gets the status of this AuthenticationV1TokenRequest. # noqa: E501
|
||||
|
||||
|
||||
:return: The status of this AuthenticationV1TokenRequest. # noqa: E501
|
||||
:rtype: V1TokenRequestStatus
|
||||
"""
|
||||
return self._status
|
||||
|
||||
@status.setter
|
||||
def status(self, status):
|
||||
"""Sets the status of this AuthenticationV1TokenRequest.
|
||||
|
||||
|
||||
:param status: The status of this AuthenticationV1TokenRequest. # noqa: E501
|
||||
:type: V1TokenRequestStatus
|
||||
"""
|
||||
|
||||
self._status = status
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, AuthenticationV1TokenRequest):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, AuthenticationV1TokenRequest):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
207
kubernetes/client/models/core_v1_endpoint_port.py
Normal file
207
kubernetes/client/models/core_v1_endpoint_port.py
Normal file
|
@ -0,0 +1,207 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class CoreV1EndpointPort(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'app_protocol': 'str',
|
||||
'name': 'str',
|
||||
'port': 'int',
|
||||
'protocol': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'app_protocol': 'appProtocol',
|
||||
'name': 'name',
|
||||
'port': 'port',
|
||||
'protocol': 'protocol'
|
||||
}
|
||||
|
||||
def __init__(self, app_protocol=None, name=None, port=None, protocol=None, local_vars_configuration=None): # noqa: E501
|
||||
"""CoreV1EndpointPort - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._app_protocol = None
|
||||
self._name = None
|
||||
self._port = None
|
||||
self._protocol = None
|
||||
self.discriminator = None
|
||||
|
||||
if app_protocol is not None:
|
||||
self.app_protocol = app_protocol
|
||||
if name is not None:
|
||||
self.name = name
|
||||
self.port = port
|
||||
if protocol is not None:
|
||||
self.protocol = protocol
|
||||
|
||||
@property
|
||||
def app_protocol(self):
|
||||
"""Gets the app_protocol of this CoreV1EndpointPort. # noqa: E501
|
||||
|
||||
The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). * Kubernetes-defined prefixed names: * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. # noqa: E501
|
||||
|
||||
:return: The app_protocol of this CoreV1EndpointPort. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._app_protocol
|
||||
|
||||
@app_protocol.setter
|
||||
def app_protocol(self, app_protocol):
|
||||
"""Sets the app_protocol of this CoreV1EndpointPort.
|
||||
|
||||
The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). * Kubernetes-defined prefixed names: * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. # noqa: E501
|
||||
|
||||
:param app_protocol: The app_protocol of this CoreV1EndpointPort. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._app_protocol = app_protocol
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""Gets the name of this CoreV1EndpointPort. # noqa: E501
|
||||
|
||||
The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined. # noqa: E501
|
||||
|
||||
:return: The name of this CoreV1EndpointPort. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._name
|
||||
|
||||
@name.setter
|
||||
def name(self, name):
|
||||
"""Sets the name of this CoreV1EndpointPort.
|
||||
|
||||
The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined. # noqa: E501
|
||||
|
||||
:param name: The name of this CoreV1EndpointPort. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._name = name
|
||||
|
||||
@property
|
||||
def port(self):
|
||||
"""Gets the port of this CoreV1EndpointPort. # noqa: E501
|
||||
|
||||
The port number of the endpoint. # noqa: E501
|
||||
|
||||
:return: The port of this CoreV1EndpointPort. # noqa: E501
|
||||
:rtype: int
|
||||
"""
|
||||
return self._port
|
||||
|
||||
@port.setter
|
||||
def port(self, port):
|
||||
"""Sets the port of this CoreV1EndpointPort.
|
||||
|
||||
The port number of the endpoint. # noqa: E501
|
||||
|
||||
:param port: The port of this CoreV1EndpointPort. # noqa: E501
|
||||
:type: int
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and port is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `port`, must not be `None`") # noqa: E501
|
||||
|
||||
self._port = port
|
||||
|
||||
@property
|
||||
def protocol(self):
|
||||
"""Gets the protocol of this CoreV1EndpointPort. # noqa: E501
|
||||
|
||||
The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. # noqa: E501
|
||||
|
||||
:return: The protocol of this CoreV1EndpointPort. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._protocol
|
||||
|
||||
@protocol.setter
|
||||
def protocol(self, protocol):
|
||||
"""Sets the protocol of this CoreV1EndpointPort.
|
||||
|
||||
The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. # noqa: E501
|
||||
|
||||
:param protocol: The protocol of this CoreV1EndpointPort. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._protocol = protocol
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, CoreV1EndpointPort):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, CoreV1EndpointPort):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
562
kubernetes/client/models/core_v1_event.py
Normal file
562
kubernetes/client/models/core_v1_event.py
Normal file
|
@ -0,0 +1,562 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class CoreV1Event(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'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': 'CoreV1EventSeries',
|
||||
'source': 'V1EventSource',
|
||||
'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'
|
||||
}
|
||||
|
||||
def __init__(self, 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, local_vars_configuration=None): # noqa: E501
|
||||
"""CoreV1Event - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._action = None
|
||||
self._api_version = None
|
||||
self._count = None
|
||||
self._event_time = None
|
||||
self._first_timestamp = None
|
||||
self._involved_object = None
|
||||
self._kind = None
|
||||
self._last_timestamp = None
|
||||
self._message = None
|
||||
self._metadata = None
|
||||
self._reason = None
|
||||
self._related = None
|
||||
self._reporting_component = None
|
||||
self._reporting_instance = None
|
||||
self._series = None
|
||||
self._source = None
|
||||
self._type = None
|
||||
self.discriminator = None
|
||||
|
||||
if action is not None:
|
||||
self.action = action
|
||||
if api_version is not None:
|
||||
self.api_version = api_version
|
||||
if count is not None:
|
||||
self.count = count
|
||||
if event_time is not None:
|
||||
self.event_time = event_time
|
||||
if first_timestamp is not None:
|
||||
self.first_timestamp = first_timestamp
|
||||
self.involved_object = involved_object
|
||||
if kind is not None:
|
||||
self.kind = kind
|
||||
if last_timestamp is not None:
|
||||
self.last_timestamp = last_timestamp
|
||||
if message is not None:
|
||||
self.message = message
|
||||
self.metadata = metadata
|
||||
if reason is not None:
|
||||
self.reason = reason
|
||||
if related is not None:
|
||||
self.related = related
|
||||
if reporting_component is not None:
|
||||
self.reporting_component = reporting_component
|
||||
if reporting_instance is not None:
|
||||
self.reporting_instance = reporting_instance
|
||||
if series is not None:
|
||||
self.series = series
|
||||
if source is not None:
|
||||
self.source = source
|
||||
if type is not None:
|
||||
self.type = type
|
||||
|
||||
@property
|
||||
def action(self):
|
||||
"""Gets the action of this CoreV1Event. # noqa: E501
|
||||
|
||||
What action was taken/failed regarding to the Regarding object. # noqa: E501
|
||||
|
||||
:return: The action of this CoreV1Event. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._action
|
||||
|
||||
@action.setter
|
||||
def action(self, action):
|
||||
"""Sets the action of this CoreV1Event.
|
||||
|
||||
What action was taken/failed regarding to the Regarding object. # noqa: E501
|
||||
|
||||
:param action: The action of this CoreV1Event. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._action = action
|
||||
|
||||
@property
|
||||
def api_version(self):
|
||||
"""Gets the api_version of this CoreV1Event. # noqa: E501
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:return: The api_version of this CoreV1Event. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._api_version
|
||||
|
||||
@api_version.setter
|
||||
def api_version(self, api_version):
|
||||
"""Sets the api_version of this CoreV1Event.
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:param api_version: The api_version of this CoreV1Event. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._api_version = api_version
|
||||
|
||||
@property
|
||||
def count(self):
|
||||
"""Gets the count of this CoreV1Event. # noqa: E501
|
||||
|
||||
The number of times this event has occurred. # noqa: E501
|
||||
|
||||
:return: The count of this CoreV1Event. # noqa: E501
|
||||
:rtype: int
|
||||
"""
|
||||
return self._count
|
||||
|
||||
@count.setter
|
||||
def count(self, count):
|
||||
"""Sets the count of this CoreV1Event.
|
||||
|
||||
The number of times this event has occurred. # noqa: E501
|
||||
|
||||
:param count: The count of this CoreV1Event. # noqa: E501
|
||||
:type: int
|
||||
"""
|
||||
|
||||
self._count = count
|
||||
|
||||
@property
|
||||
def event_time(self):
|
||||
"""Gets the event_time of this CoreV1Event. # noqa: E501
|
||||
|
||||
Time when this Event was first observed. # noqa: E501
|
||||
|
||||
:return: The event_time of this CoreV1Event. # noqa: E501
|
||||
:rtype: datetime
|
||||
"""
|
||||
return self._event_time
|
||||
|
||||
@event_time.setter
|
||||
def event_time(self, event_time):
|
||||
"""Sets the event_time of this CoreV1Event.
|
||||
|
||||
Time when this Event was first observed. # noqa: E501
|
||||
|
||||
:param event_time: The event_time of this CoreV1Event. # noqa: E501
|
||||
:type: datetime
|
||||
"""
|
||||
|
||||
self._event_time = event_time
|
||||
|
||||
@property
|
||||
def first_timestamp(self):
|
||||
"""Gets the first_timestamp of this CoreV1Event. # noqa: E501
|
||||
|
||||
The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) # noqa: E501
|
||||
|
||||
:return: The first_timestamp of this CoreV1Event. # noqa: E501
|
||||
:rtype: datetime
|
||||
"""
|
||||
return self._first_timestamp
|
||||
|
||||
@first_timestamp.setter
|
||||
def first_timestamp(self, first_timestamp):
|
||||
"""Sets the first_timestamp of this CoreV1Event.
|
||||
|
||||
The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) # noqa: E501
|
||||
|
||||
:param first_timestamp: The first_timestamp of this CoreV1Event. # noqa: E501
|
||||
:type: datetime
|
||||
"""
|
||||
|
||||
self._first_timestamp = first_timestamp
|
||||
|
||||
@property
|
||||
def involved_object(self):
|
||||
"""Gets the involved_object of this CoreV1Event. # noqa: E501
|
||||
|
||||
|
||||
:return: The involved_object of this CoreV1Event. # noqa: E501
|
||||
:rtype: V1ObjectReference
|
||||
"""
|
||||
return self._involved_object
|
||||
|
||||
@involved_object.setter
|
||||
def involved_object(self, involved_object):
|
||||
"""Sets the involved_object of this CoreV1Event.
|
||||
|
||||
|
||||
:param involved_object: The involved_object of this CoreV1Event. # noqa: E501
|
||||
:type: V1ObjectReference
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and involved_object is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `involved_object`, must not be `None`") # noqa: E501
|
||||
|
||||
self._involved_object = involved_object
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this CoreV1Event. # noqa: E501
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:return: The kind of this CoreV1Event. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets the kind of this CoreV1Event.
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:param kind: The kind of this CoreV1Event. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def last_timestamp(self):
|
||||
"""Gets the last_timestamp of this CoreV1Event. # noqa: E501
|
||||
|
||||
The time at which the most recent occurrence of this event was recorded. # noqa: E501
|
||||
|
||||
:return: The last_timestamp of this CoreV1Event. # noqa: E501
|
||||
:rtype: datetime
|
||||
"""
|
||||
return self._last_timestamp
|
||||
|
||||
@last_timestamp.setter
|
||||
def last_timestamp(self, last_timestamp):
|
||||
"""Sets the last_timestamp of this CoreV1Event.
|
||||
|
||||
The time at which the most recent occurrence of this event was recorded. # noqa: E501
|
||||
|
||||
:param last_timestamp: The last_timestamp of this CoreV1Event. # noqa: E501
|
||||
:type: datetime
|
||||
"""
|
||||
|
||||
self._last_timestamp = last_timestamp
|
||||
|
||||
@property
|
||||
def message(self):
|
||||
"""Gets the message of this CoreV1Event. # noqa: E501
|
||||
|
||||
A human-readable description of the status of this operation. # noqa: E501
|
||||
|
||||
:return: The message of this CoreV1Event. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._message
|
||||
|
||||
@message.setter
|
||||
def message(self, message):
|
||||
"""Sets the message of this CoreV1Event.
|
||||
|
||||
A human-readable description of the status of this operation. # noqa: E501
|
||||
|
||||
:param message: The message of this CoreV1Event. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._message = message
|
||||
|
||||
@property
|
||||
def metadata(self):
|
||||
"""Gets the metadata of this CoreV1Event. # noqa: E501
|
||||
|
||||
|
||||
:return: The metadata of this CoreV1Event. # noqa: E501
|
||||
:rtype: V1ObjectMeta
|
||||
"""
|
||||
return self._metadata
|
||||
|
||||
@metadata.setter
|
||||
def metadata(self, metadata):
|
||||
"""Sets the metadata of this CoreV1Event.
|
||||
|
||||
|
||||
:param metadata: The metadata of this CoreV1Event. # noqa: E501
|
||||
:type: V1ObjectMeta
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and metadata is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `metadata`, must not be `None`") # noqa: E501
|
||||
|
||||
self._metadata = metadata
|
||||
|
||||
@property
|
||||
def reason(self):
|
||||
"""Gets the reason of this CoreV1Event. # noqa: E501
|
||||
|
||||
This should be a short, machine understandable string that gives the reason for the transition into the object's current status. # noqa: E501
|
||||
|
||||
:return: The reason of this CoreV1Event. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._reason
|
||||
|
||||
@reason.setter
|
||||
def reason(self, reason):
|
||||
"""Sets the reason of this CoreV1Event.
|
||||
|
||||
This should be a short, machine understandable string that gives the reason for the transition into the object's current status. # noqa: E501
|
||||
|
||||
:param reason: The reason of this CoreV1Event. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._reason = reason
|
||||
|
||||
@property
|
||||
def related(self):
|
||||
"""Gets the related of this CoreV1Event. # noqa: E501
|
||||
|
||||
|
||||
:return: The related of this CoreV1Event. # noqa: E501
|
||||
:rtype: V1ObjectReference
|
||||
"""
|
||||
return self._related
|
||||
|
||||
@related.setter
|
||||
def related(self, related):
|
||||
"""Sets the related of this CoreV1Event.
|
||||
|
||||
|
||||
:param related: The related of this CoreV1Event. # noqa: E501
|
||||
:type: V1ObjectReference
|
||||
"""
|
||||
|
||||
self._related = related
|
||||
|
||||
@property
|
||||
def reporting_component(self):
|
||||
"""Gets the reporting_component of this CoreV1Event. # noqa: E501
|
||||
|
||||
Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. # noqa: E501
|
||||
|
||||
:return: The reporting_component of this CoreV1Event. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._reporting_component
|
||||
|
||||
@reporting_component.setter
|
||||
def reporting_component(self, reporting_component):
|
||||
"""Sets the reporting_component of this CoreV1Event.
|
||||
|
||||
Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. # noqa: E501
|
||||
|
||||
:param reporting_component: The reporting_component of this CoreV1Event. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._reporting_component = reporting_component
|
||||
|
||||
@property
|
||||
def reporting_instance(self):
|
||||
"""Gets the reporting_instance of this CoreV1Event. # noqa: E501
|
||||
|
||||
ID of the controller instance, e.g. `kubelet-xyzf`. # noqa: E501
|
||||
|
||||
:return: The reporting_instance of this CoreV1Event. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._reporting_instance
|
||||
|
||||
@reporting_instance.setter
|
||||
def reporting_instance(self, reporting_instance):
|
||||
"""Sets the reporting_instance of this CoreV1Event.
|
||||
|
||||
ID of the controller instance, e.g. `kubelet-xyzf`. # noqa: E501
|
||||
|
||||
:param reporting_instance: The reporting_instance of this CoreV1Event. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._reporting_instance = reporting_instance
|
||||
|
||||
@property
|
||||
def series(self):
|
||||
"""Gets the series of this CoreV1Event. # noqa: E501
|
||||
|
||||
|
||||
:return: The series of this CoreV1Event. # noqa: E501
|
||||
:rtype: CoreV1EventSeries
|
||||
"""
|
||||
return self._series
|
||||
|
||||
@series.setter
|
||||
def series(self, series):
|
||||
"""Sets the series of this CoreV1Event.
|
||||
|
||||
|
||||
:param series: The series of this CoreV1Event. # noqa: E501
|
||||
:type: CoreV1EventSeries
|
||||
"""
|
||||
|
||||
self._series = series
|
||||
|
||||
@property
|
||||
def source(self):
|
||||
"""Gets the source of this CoreV1Event. # noqa: E501
|
||||
|
||||
|
||||
:return: The source of this CoreV1Event. # noqa: E501
|
||||
:rtype: V1EventSource
|
||||
"""
|
||||
return self._source
|
||||
|
||||
@source.setter
|
||||
def source(self, source):
|
||||
"""Sets the source of this CoreV1Event.
|
||||
|
||||
|
||||
:param source: The source of this CoreV1Event. # noqa: E501
|
||||
:type: V1EventSource
|
||||
"""
|
||||
|
||||
self._source = source
|
||||
|
||||
@property
|
||||
def type(self):
|
||||
"""Gets the type of this CoreV1Event. # noqa: E501
|
||||
|
||||
Type of this event (Normal, Warning), new types could be added in the future # noqa: E501
|
||||
|
||||
:return: The type of this CoreV1Event. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._type
|
||||
|
||||
@type.setter
|
||||
def type(self, type):
|
||||
"""Sets the type of this CoreV1Event.
|
||||
|
||||
Type of this event (Normal, Warning), new types could be added in the future # noqa: E501
|
||||
|
||||
:param type: The type of this CoreV1Event. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._type = type
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, CoreV1Event):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, CoreV1Event):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
205
kubernetes/client/models/core_v1_event_list.py
Normal file
205
kubernetes/client/models/core_v1_event_list.py
Normal file
|
@ -0,0 +1,205 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class CoreV1EventList(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'api_version': 'str',
|
||||
'items': 'list[CoreV1Event]',
|
||||
'kind': 'str',
|
||||
'metadata': 'V1ListMeta'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'api_version': 'apiVersion',
|
||||
'items': 'items',
|
||||
'kind': 'kind',
|
||||
'metadata': 'metadata'
|
||||
}
|
||||
|
||||
def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501
|
||||
"""CoreV1EventList - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._api_version = None
|
||||
self._items = None
|
||||
self._kind = None
|
||||
self._metadata = None
|
||||
self.discriminator = None
|
||||
|
||||
if api_version is not None:
|
||||
self.api_version = api_version
|
||||
self.items = items
|
||||
if kind is not None:
|
||||
self.kind = kind
|
||||
if metadata is not None:
|
||||
self.metadata = metadata
|
||||
|
||||
@property
|
||||
def api_version(self):
|
||||
"""Gets the api_version of this CoreV1EventList. # noqa: E501
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:return: The api_version of this CoreV1EventList. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._api_version
|
||||
|
||||
@api_version.setter
|
||||
def api_version(self, api_version):
|
||||
"""Sets the api_version of this CoreV1EventList.
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:param api_version: The api_version of this CoreV1EventList. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._api_version = api_version
|
||||
|
||||
@property
|
||||
def items(self):
|
||||
"""Gets the items of this CoreV1EventList. # noqa: E501
|
||||
|
||||
List of events # noqa: E501
|
||||
|
||||
:return: The items of this CoreV1EventList. # noqa: E501
|
||||
:rtype: list[CoreV1Event]
|
||||
"""
|
||||
return self._items
|
||||
|
||||
@items.setter
|
||||
def items(self, items):
|
||||
"""Sets the items of this CoreV1EventList.
|
||||
|
||||
List of events # noqa: E501
|
||||
|
||||
:param items: The items of this CoreV1EventList. # noqa: E501
|
||||
:type: list[CoreV1Event]
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501
|
||||
|
||||
self._items = items
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this CoreV1EventList. # noqa: E501
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:return: The kind of this CoreV1EventList. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets the kind of this CoreV1EventList.
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:param kind: The kind of this CoreV1EventList. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def metadata(self):
|
||||
"""Gets the metadata of this CoreV1EventList. # noqa: E501
|
||||
|
||||
|
||||
:return: The metadata of this CoreV1EventList. # noqa: E501
|
||||
:rtype: V1ListMeta
|
||||
"""
|
||||
return self._metadata
|
||||
|
||||
@metadata.setter
|
||||
def metadata(self, metadata):
|
||||
"""Sets the metadata of this CoreV1EventList.
|
||||
|
||||
|
||||
:param metadata: The metadata of this CoreV1EventList. # noqa: E501
|
||||
:type: V1ListMeta
|
||||
"""
|
||||
|
||||
self._metadata = metadata
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, CoreV1EventList):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, CoreV1EventList):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
150
kubernetes/client/models/core_v1_event_series.py
Normal file
150
kubernetes/client/models/core_v1_event_series.py
Normal file
|
@ -0,0 +1,150 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class CoreV1EventSeries(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'count': 'int',
|
||||
'last_observed_time': 'datetime'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'count': 'count',
|
||||
'last_observed_time': 'lastObservedTime'
|
||||
}
|
||||
|
||||
def __init__(self, count=None, last_observed_time=None, local_vars_configuration=None): # noqa: E501
|
||||
"""CoreV1EventSeries - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._count = None
|
||||
self._last_observed_time = None
|
||||
self.discriminator = None
|
||||
|
||||
if count is not None:
|
||||
self.count = count
|
||||
if last_observed_time is not None:
|
||||
self.last_observed_time = last_observed_time
|
||||
|
||||
@property
|
||||
def count(self):
|
||||
"""Gets the count of this CoreV1EventSeries. # noqa: E501
|
||||
|
||||
Number of occurrences in this series up to the last heartbeat time # noqa: E501
|
||||
|
||||
:return: The count of this CoreV1EventSeries. # noqa: E501
|
||||
:rtype: int
|
||||
"""
|
||||
return self._count
|
||||
|
||||
@count.setter
|
||||
def count(self, count):
|
||||
"""Sets the count of this CoreV1EventSeries.
|
||||
|
||||
Number of occurrences in this series up to the last heartbeat time # noqa: E501
|
||||
|
||||
:param count: The count of this CoreV1EventSeries. # noqa: E501
|
||||
:type: int
|
||||
"""
|
||||
|
||||
self._count = count
|
||||
|
||||
@property
|
||||
def last_observed_time(self):
|
||||
"""Gets the last_observed_time of this CoreV1EventSeries. # noqa: E501
|
||||
|
||||
Time of the last occurrence observed # noqa: E501
|
||||
|
||||
:return: The last_observed_time of this CoreV1EventSeries. # noqa: E501
|
||||
:rtype: datetime
|
||||
"""
|
||||
return self._last_observed_time
|
||||
|
||||
@last_observed_time.setter
|
||||
def last_observed_time(self, last_observed_time):
|
||||
"""Sets the last_observed_time of this CoreV1EventSeries.
|
||||
|
||||
Time of the last occurrence observed # noqa: E501
|
||||
|
||||
:param last_observed_time: The last_observed_time of this CoreV1EventSeries. # noqa: E501
|
||||
:type: datetime
|
||||
"""
|
||||
|
||||
self._last_observed_time = last_observed_time
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, CoreV1EventSeries):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, CoreV1EventSeries):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
206
kubernetes/client/models/discovery_v1_endpoint_port.py
Normal file
206
kubernetes/client/models/discovery_v1_endpoint_port.py
Normal file
|
@ -0,0 +1,206 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class DiscoveryV1EndpointPort(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'app_protocol': 'str',
|
||||
'name': 'str',
|
||||
'port': 'int',
|
||||
'protocol': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'app_protocol': 'appProtocol',
|
||||
'name': 'name',
|
||||
'port': 'port',
|
||||
'protocol': 'protocol'
|
||||
}
|
||||
|
||||
def __init__(self, app_protocol=None, name=None, port=None, protocol=None, local_vars_configuration=None): # noqa: E501
|
||||
"""DiscoveryV1EndpointPort - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._app_protocol = None
|
||||
self._name = None
|
||||
self._port = None
|
||||
self._protocol = None
|
||||
self.discriminator = None
|
||||
|
||||
if app_protocol is not None:
|
||||
self.app_protocol = app_protocol
|
||||
if name is not None:
|
||||
self.name = name
|
||||
if port is not None:
|
||||
self.port = port
|
||||
if protocol is not None:
|
||||
self.protocol = protocol
|
||||
|
||||
@property
|
||||
def app_protocol(self):
|
||||
"""Gets the app_protocol of this DiscoveryV1EndpointPort. # noqa: E501
|
||||
|
||||
The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). * Kubernetes-defined prefixed names: * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. # noqa: E501
|
||||
|
||||
:return: The app_protocol of this DiscoveryV1EndpointPort. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._app_protocol
|
||||
|
||||
@app_protocol.setter
|
||||
def app_protocol(self, app_protocol):
|
||||
"""Sets the app_protocol of this DiscoveryV1EndpointPort.
|
||||
|
||||
The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). * Kubernetes-defined prefixed names: * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. # noqa: E501
|
||||
|
||||
:param app_protocol: The app_protocol of this DiscoveryV1EndpointPort. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._app_protocol = app_protocol
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""Gets the name of this DiscoveryV1EndpointPort. # noqa: E501
|
||||
|
||||
name represents the name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is derived from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string. # noqa: E501
|
||||
|
||||
:return: The name of this DiscoveryV1EndpointPort. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._name
|
||||
|
||||
@name.setter
|
||||
def name(self, name):
|
||||
"""Sets the name of this DiscoveryV1EndpointPort.
|
||||
|
||||
name represents the name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is derived from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string. # noqa: E501
|
||||
|
||||
:param name: The name of this DiscoveryV1EndpointPort. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._name = name
|
||||
|
||||
@property
|
||||
def port(self):
|
||||
"""Gets the port of this DiscoveryV1EndpointPort. # noqa: E501
|
||||
|
||||
port represents the port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer. # noqa: E501
|
||||
|
||||
:return: The port of this DiscoveryV1EndpointPort. # noqa: E501
|
||||
:rtype: int
|
||||
"""
|
||||
return self._port
|
||||
|
||||
@port.setter
|
||||
def port(self, port):
|
||||
"""Sets the port of this DiscoveryV1EndpointPort.
|
||||
|
||||
port represents the port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer. # noqa: E501
|
||||
|
||||
:param port: The port of this DiscoveryV1EndpointPort. # noqa: E501
|
||||
:type: int
|
||||
"""
|
||||
|
||||
self._port = port
|
||||
|
||||
@property
|
||||
def protocol(self):
|
||||
"""Gets the protocol of this DiscoveryV1EndpointPort. # noqa: E501
|
||||
|
||||
protocol represents the IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. # noqa: E501
|
||||
|
||||
:return: The protocol of this DiscoveryV1EndpointPort. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._protocol
|
||||
|
||||
@protocol.setter
|
||||
def protocol(self, protocol):
|
||||
"""Sets the protocol of this DiscoveryV1EndpointPort.
|
||||
|
||||
protocol represents the IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. # noqa: E501
|
||||
|
||||
:param protocol: The protocol of this DiscoveryV1EndpointPort. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._protocol = protocol
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, DiscoveryV1EndpointPort):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, DiscoveryV1EndpointPort):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
561
kubernetes/client/models/events_v1_event.py
Normal file
561
kubernetes/client/models/events_v1_event.py
Normal file
|
@ -0,0 +1,561 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class EventsV1Event(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'action': 'str',
|
||||
'api_version': 'str',
|
||||
'deprecated_count': 'int',
|
||||
'deprecated_first_timestamp': 'datetime',
|
||||
'deprecated_last_timestamp': 'datetime',
|
||||
'deprecated_source': 'V1EventSource',
|
||||
'event_time': 'datetime',
|
||||
'kind': 'str',
|
||||
'metadata': 'V1ObjectMeta',
|
||||
'note': 'str',
|
||||
'reason': 'str',
|
||||
'regarding': 'V1ObjectReference',
|
||||
'related': 'V1ObjectReference',
|
||||
'reporting_controller': 'str',
|
||||
'reporting_instance': 'str',
|
||||
'series': 'EventsV1EventSeries',
|
||||
'type': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'action': 'action',
|
||||
'api_version': 'apiVersion',
|
||||
'deprecated_count': 'deprecatedCount',
|
||||
'deprecated_first_timestamp': 'deprecatedFirstTimestamp',
|
||||
'deprecated_last_timestamp': 'deprecatedLastTimestamp',
|
||||
'deprecated_source': 'deprecatedSource',
|
||||
'event_time': 'eventTime',
|
||||
'kind': 'kind',
|
||||
'metadata': 'metadata',
|
||||
'note': 'note',
|
||||
'reason': 'reason',
|
||||
'regarding': 'regarding',
|
||||
'related': 'related',
|
||||
'reporting_controller': 'reportingController',
|
||||
'reporting_instance': 'reportingInstance',
|
||||
'series': 'series',
|
||||
'type': 'type'
|
||||
}
|
||||
|
||||
def __init__(self, action=None, api_version=None, deprecated_count=None, deprecated_first_timestamp=None, deprecated_last_timestamp=None, deprecated_source=None, event_time=None, kind=None, metadata=None, note=None, reason=None, regarding=None, related=None, reporting_controller=None, reporting_instance=None, series=None, type=None, local_vars_configuration=None): # noqa: E501
|
||||
"""EventsV1Event - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._action = None
|
||||
self._api_version = None
|
||||
self._deprecated_count = None
|
||||
self._deprecated_first_timestamp = None
|
||||
self._deprecated_last_timestamp = None
|
||||
self._deprecated_source = None
|
||||
self._event_time = None
|
||||
self._kind = None
|
||||
self._metadata = None
|
||||
self._note = None
|
||||
self._reason = None
|
||||
self._regarding = None
|
||||
self._related = None
|
||||
self._reporting_controller = None
|
||||
self._reporting_instance = None
|
||||
self._series = None
|
||||
self._type = None
|
||||
self.discriminator = None
|
||||
|
||||
if action is not None:
|
||||
self.action = action
|
||||
if api_version is not None:
|
||||
self.api_version = api_version
|
||||
if deprecated_count is not None:
|
||||
self.deprecated_count = deprecated_count
|
||||
if deprecated_first_timestamp is not None:
|
||||
self.deprecated_first_timestamp = deprecated_first_timestamp
|
||||
if deprecated_last_timestamp is not None:
|
||||
self.deprecated_last_timestamp = deprecated_last_timestamp
|
||||
if deprecated_source is not None:
|
||||
self.deprecated_source = deprecated_source
|
||||
self.event_time = event_time
|
||||
if kind is not None:
|
||||
self.kind = kind
|
||||
if metadata is not None:
|
||||
self.metadata = metadata
|
||||
if note is not None:
|
||||
self.note = note
|
||||
if reason is not None:
|
||||
self.reason = reason
|
||||
if regarding is not None:
|
||||
self.regarding = regarding
|
||||
if related is not None:
|
||||
self.related = related
|
||||
if reporting_controller is not None:
|
||||
self.reporting_controller = reporting_controller
|
||||
if reporting_instance is not None:
|
||||
self.reporting_instance = reporting_instance
|
||||
if series is not None:
|
||||
self.series = series
|
||||
if type is not None:
|
||||
self.type = type
|
||||
|
||||
@property
|
||||
def action(self):
|
||||
"""Gets the action of this EventsV1Event. # noqa: E501
|
||||
|
||||
action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters. # noqa: E501
|
||||
|
||||
:return: The action of this EventsV1Event. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._action
|
||||
|
||||
@action.setter
|
||||
def action(self, action):
|
||||
"""Sets the action of this EventsV1Event.
|
||||
|
||||
action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters. # noqa: E501
|
||||
|
||||
:param action: The action of this EventsV1Event. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._action = action
|
||||
|
||||
@property
|
||||
def api_version(self):
|
||||
"""Gets the api_version of this EventsV1Event. # noqa: E501
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:return: The api_version of this EventsV1Event. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._api_version
|
||||
|
||||
@api_version.setter
|
||||
def api_version(self, api_version):
|
||||
"""Sets the api_version of this EventsV1Event.
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:param api_version: The api_version of this EventsV1Event. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._api_version = api_version
|
||||
|
||||
@property
|
||||
def deprecated_count(self):
|
||||
"""Gets the deprecated_count of this EventsV1Event. # noqa: E501
|
||||
|
||||
deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type. # noqa: E501
|
||||
|
||||
:return: The deprecated_count of this EventsV1Event. # noqa: E501
|
||||
:rtype: int
|
||||
"""
|
||||
return self._deprecated_count
|
||||
|
||||
@deprecated_count.setter
|
||||
def deprecated_count(self, deprecated_count):
|
||||
"""Sets the deprecated_count of this EventsV1Event.
|
||||
|
||||
deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type. # noqa: E501
|
||||
|
||||
:param deprecated_count: The deprecated_count of this EventsV1Event. # noqa: E501
|
||||
:type: int
|
||||
"""
|
||||
|
||||
self._deprecated_count = deprecated_count
|
||||
|
||||
@property
|
||||
def deprecated_first_timestamp(self):
|
||||
"""Gets the deprecated_first_timestamp of this EventsV1Event. # noqa: E501
|
||||
|
||||
deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. # noqa: E501
|
||||
|
||||
:return: The deprecated_first_timestamp of this EventsV1Event. # noqa: E501
|
||||
:rtype: datetime
|
||||
"""
|
||||
return self._deprecated_first_timestamp
|
||||
|
||||
@deprecated_first_timestamp.setter
|
||||
def deprecated_first_timestamp(self, deprecated_first_timestamp):
|
||||
"""Sets the deprecated_first_timestamp of this EventsV1Event.
|
||||
|
||||
deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. # noqa: E501
|
||||
|
||||
:param deprecated_first_timestamp: The deprecated_first_timestamp of this EventsV1Event. # noqa: E501
|
||||
:type: datetime
|
||||
"""
|
||||
|
||||
self._deprecated_first_timestamp = deprecated_first_timestamp
|
||||
|
||||
@property
|
||||
def deprecated_last_timestamp(self):
|
||||
"""Gets the deprecated_last_timestamp of this EventsV1Event. # noqa: E501
|
||||
|
||||
deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. # noqa: E501
|
||||
|
||||
:return: The deprecated_last_timestamp of this EventsV1Event. # noqa: E501
|
||||
:rtype: datetime
|
||||
"""
|
||||
return self._deprecated_last_timestamp
|
||||
|
||||
@deprecated_last_timestamp.setter
|
||||
def deprecated_last_timestamp(self, deprecated_last_timestamp):
|
||||
"""Sets the deprecated_last_timestamp of this EventsV1Event.
|
||||
|
||||
deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. # noqa: E501
|
||||
|
||||
:param deprecated_last_timestamp: The deprecated_last_timestamp of this EventsV1Event. # noqa: E501
|
||||
:type: datetime
|
||||
"""
|
||||
|
||||
self._deprecated_last_timestamp = deprecated_last_timestamp
|
||||
|
||||
@property
|
||||
def deprecated_source(self):
|
||||
"""Gets the deprecated_source of this EventsV1Event. # noqa: E501
|
||||
|
||||
|
||||
:return: The deprecated_source of this EventsV1Event. # noqa: E501
|
||||
:rtype: V1EventSource
|
||||
"""
|
||||
return self._deprecated_source
|
||||
|
||||
@deprecated_source.setter
|
||||
def deprecated_source(self, deprecated_source):
|
||||
"""Sets the deprecated_source of this EventsV1Event.
|
||||
|
||||
|
||||
:param deprecated_source: The deprecated_source of this EventsV1Event. # noqa: E501
|
||||
:type: V1EventSource
|
||||
"""
|
||||
|
||||
self._deprecated_source = deprecated_source
|
||||
|
||||
@property
|
||||
def event_time(self):
|
||||
"""Gets the event_time of this EventsV1Event. # noqa: E501
|
||||
|
||||
eventTime is the time when this Event was first observed. It is required. # noqa: E501
|
||||
|
||||
:return: The event_time of this EventsV1Event. # noqa: E501
|
||||
:rtype: datetime
|
||||
"""
|
||||
return self._event_time
|
||||
|
||||
@event_time.setter
|
||||
def event_time(self, event_time):
|
||||
"""Sets the event_time of this EventsV1Event.
|
||||
|
||||
eventTime is the time when this Event was first observed. It is required. # noqa: E501
|
||||
|
||||
:param event_time: The event_time of this EventsV1Event. # noqa: E501
|
||||
:type: datetime
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and event_time is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `event_time`, must not be `None`") # noqa: E501
|
||||
|
||||
self._event_time = event_time
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this EventsV1Event. # noqa: E501
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:return: The kind of this EventsV1Event. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets the kind of this EventsV1Event.
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:param kind: The kind of this EventsV1Event. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def metadata(self):
|
||||
"""Gets the metadata of this EventsV1Event. # noqa: E501
|
||||
|
||||
|
||||
:return: The metadata of this EventsV1Event. # noqa: E501
|
||||
:rtype: V1ObjectMeta
|
||||
"""
|
||||
return self._metadata
|
||||
|
||||
@metadata.setter
|
||||
def metadata(self, metadata):
|
||||
"""Sets the metadata of this EventsV1Event.
|
||||
|
||||
|
||||
:param metadata: The metadata of this EventsV1Event. # noqa: E501
|
||||
:type: V1ObjectMeta
|
||||
"""
|
||||
|
||||
self._metadata = metadata
|
||||
|
||||
@property
|
||||
def note(self):
|
||||
"""Gets the note of this EventsV1Event. # noqa: E501
|
||||
|
||||
note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. # noqa: E501
|
||||
|
||||
:return: The note of this EventsV1Event. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._note
|
||||
|
||||
@note.setter
|
||||
def note(self, note):
|
||||
"""Sets the note of this EventsV1Event.
|
||||
|
||||
note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. # noqa: E501
|
||||
|
||||
:param note: The note of this EventsV1Event. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._note = note
|
||||
|
||||
@property
|
||||
def reason(self):
|
||||
"""Gets the reason of this EventsV1Event. # noqa: E501
|
||||
|
||||
reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters. # noqa: E501
|
||||
|
||||
:return: The reason of this EventsV1Event. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._reason
|
||||
|
||||
@reason.setter
|
||||
def reason(self, reason):
|
||||
"""Sets the reason of this EventsV1Event.
|
||||
|
||||
reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters. # noqa: E501
|
||||
|
||||
:param reason: The reason of this EventsV1Event. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._reason = reason
|
||||
|
||||
@property
|
||||
def regarding(self):
|
||||
"""Gets the regarding of this EventsV1Event. # noqa: E501
|
||||
|
||||
|
||||
:return: The regarding of this EventsV1Event. # noqa: E501
|
||||
:rtype: V1ObjectReference
|
||||
"""
|
||||
return self._regarding
|
||||
|
||||
@regarding.setter
|
||||
def regarding(self, regarding):
|
||||
"""Sets the regarding of this EventsV1Event.
|
||||
|
||||
|
||||
:param regarding: The regarding of this EventsV1Event. # noqa: E501
|
||||
:type: V1ObjectReference
|
||||
"""
|
||||
|
||||
self._regarding = regarding
|
||||
|
||||
@property
|
||||
def related(self):
|
||||
"""Gets the related of this EventsV1Event. # noqa: E501
|
||||
|
||||
|
||||
:return: The related of this EventsV1Event. # noqa: E501
|
||||
:rtype: V1ObjectReference
|
||||
"""
|
||||
return self._related
|
||||
|
||||
@related.setter
|
||||
def related(self, related):
|
||||
"""Sets the related of this EventsV1Event.
|
||||
|
||||
|
||||
:param related: The related of this EventsV1Event. # noqa: E501
|
||||
:type: V1ObjectReference
|
||||
"""
|
||||
|
||||
self._related = related
|
||||
|
||||
@property
|
||||
def reporting_controller(self):
|
||||
"""Gets the reporting_controller of this EventsV1Event. # noqa: E501
|
||||
|
||||
reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. # noqa: E501
|
||||
|
||||
:return: The reporting_controller of this EventsV1Event. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._reporting_controller
|
||||
|
||||
@reporting_controller.setter
|
||||
def reporting_controller(self, reporting_controller):
|
||||
"""Sets the reporting_controller of this EventsV1Event.
|
||||
|
||||
reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. # noqa: E501
|
||||
|
||||
:param reporting_controller: The reporting_controller of this EventsV1Event. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._reporting_controller = reporting_controller
|
||||
|
||||
@property
|
||||
def reporting_instance(self):
|
||||
"""Gets the reporting_instance of this EventsV1Event. # noqa: E501
|
||||
|
||||
reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters. # noqa: E501
|
||||
|
||||
:return: The reporting_instance of this EventsV1Event. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._reporting_instance
|
||||
|
||||
@reporting_instance.setter
|
||||
def reporting_instance(self, reporting_instance):
|
||||
"""Sets the reporting_instance of this EventsV1Event.
|
||||
|
||||
reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters. # noqa: E501
|
||||
|
||||
:param reporting_instance: The reporting_instance of this EventsV1Event. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._reporting_instance = reporting_instance
|
||||
|
||||
@property
|
||||
def series(self):
|
||||
"""Gets the series of this EventsV1Event. # noqa: E501
|
||||
|
||||
|
||||
:return: The series of this EventsV1Event. # noqa: E501
|
||||
:rtype: EventsV1EventSeries
|
||||
"""
|
||||
return self._series
|
||||
|
||||
@series.setter
|
||||
def series(self, series):
|
||||
"""Sets the series of this EventsV1Event.
|
||||
|
||||
|
||||
:param series: The series of this EventsV1Event. # noqa: E501
|
||||
:type: EventsV1EventSeries
|
||||
"""
|
||||
|
||||
self._series = series
|
||||
|
||||
@property
|
||||
def type(self):
|
||||
"""Gets the type of this EventsV1Event. # noqa: E501
|
||||
|
||||
type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. This field cannot be empty for new Events. # noqa: E501
|
||||
|
||||
:return: The type of this EventsV1Event. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._type
|
||||
|
||||
@type.setter
|
||||
def type(self, type):
|
||||
"""Sets the type of this EventsV1Event.
|
||||
|
||||
type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. This field cannot be empty for new Events. # noqa: E501
|
||||
|
||||
:param type: The type of this EventsV1Event. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._type = type
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, EventsV1Event):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, EventsV1Event):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
205
kubernetes/client/models/events_v1_event_list.py
Normal file
205
kubernetes/client/models/events_v1_event_list.py
Normal file
|
@ -0,0 +1,205 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class EventsV1EventList(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'api_version': 'str',
|
||||
'items': 'list[EventsV1Event]',
|
||||
'kind': 'str',
|
||||
'metadata': 'V1ListMeta'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'api_version': 'apiVersion',
|
||||
'items': 'items',
|
||||
'kind': 'kind',
|
||||
'metadata': 'metadata'
|
||||
}
|
||||
|
||||
def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501
|
||||
"""EventsV1EventList - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._api_version = None
|
||||
self._items = None
|
||||
self._kind = None
|
||||
self._metadata = None
|
||||
self.discriminator = None
|
||||
|
||||
if api_version is not None:
|
||||
self.api_version = api_version
|
||||
self.items = items
|
||||
if kind is not None:
|
||||
self.kind = kind
|
||||
if metadata is not None:
|
||||
self.metadata = metadata
|
||||
|
||||
@property
|
||||
def api_version(self):
|
||||
"""Gets the api_version of this EventsV1EventList. # noqa: E501
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:return: The api_version of this EventsV1EventList. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._api_version
|
||||
|
||||
@api_version.setter
|
||||
def api_version(self, api_version):
|
||||
"""Sets the api_version of this EventsV1EventList.
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:param api_version: The api_version of this EventsV1EventList. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._api_version = api_version
|
||||
|
||||
@property
|
||||
def items(self):
|
||||
"""Gets the items of this EventsV1EventList. # noqa: E501
|
||||
|
||||
items is a list of schema objects. # noqa: E501
|
||||
|
||||
:return: The items of this EventsV1EventList. # noqa: E501
|
||||
:rtype: list[EventsV1Event]
|
||||
"""
|
||||
return self._items
|
||||
|
||||
@items.setter
|
||||
def items(self, items):
|
||||
"""Sets the items of this EventsV1EventList.
|
||||
|
||||
items is a list of schema objects. # noqa: E501
|
||||
|
||||
:param items: The items of this EventsV1EventList. # noqa: E501
|
||||
:type: list[EventsV1Event]
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501
|
||||
|
||||
self._items = items
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this EventsV1EventList. # noqa: E501
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:return: The kind of this EventsV1EventList. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets the kind of this EventsV1EventList.
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:param kind: The kind of this EventsV1EventList. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def metadata(self):
|
||||
"""Gets the metadata of this EventsV1EventList. # noqa: E501
|
||||
|
||||
|
||||
:return: The metadata of this EventsV1EventList. # noqa: E501
|
||||
:rtype: V1ListMeta
|
||||
"""
|
||||
return self._metadata
|
||||
|
||||
@metadata.setter
|
||||
def metadata(self, metadata):
|
||||
"""Sets the metadata of this EventsV1EventList.
|
||||
|
||||
|
||||
:param metadata: The metadata of this EventsV1EventList. # noqa: E501
|
||||
:type: V1ListMeta
|
||||
"""
|
||||
|
||||
self._metadata = metadata
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, EventsV1EventList):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, EventsV1EventList):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
152
kubernetes/client/models/events_v1_event_series.py
Normal file
152
kubernetes/client/models/events_v1_event_series.py
Normal file
|
@ -0,0 +1,152 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class EventsV1EventSeries(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'count': 'int',
|
||||
'last_observed_time': 'datetime'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'count': 'count',
|
||||
'last_observed_time': 'lastObservedTime'
|
||||
}
|
||||
|
||||
def __init__(self, count=None, last_observed_time=None, local_vars_configuration=None): # noqa: E501
|
||||
"""EventsV1EventSeries - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._count = None
|
||||
self._last_observed_time = None
|
||||
self.discriminator = None
|
||||
|
||||
self.count = count
|
||||
self.last_observed_time = last_observed_time
|
||||
|
||||
@property
|
||||
def count(self):
|
||||
"""Gets the count of this EventsV1EventSeries. # noqa: E501
|
||||
|
||||
count is the number of occurrences in this series up to the last heartbeat time. # noqa: E501
|
||||
|
||||
:return: The count of this EventsV1EventSeries. # noqa: E501
|
||||
:rtype: int
|
||||
"""
|
||||
return self._count
|
||||
|
||||
@count.setter
|
||||
def count(self, count):
|
||||
"""Sets the count of this EventsV1EventSeries.
|
||||
|
||||
count is the number of occurrences in this series up to the last heartbeat time. # noqa: E501
|
||||
|
||||
:param count: The count of this EventsV1EventSeries. # noqa: E501
|
||||
:type: int
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and count is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `count`, must not be `None`") # noqa: E501
|
||||
|
||||
self._count = count
|
||||
|
||||
@property
|
||||
def last_observed_time(self):
|
||||
"""Gets the last_observed_time of this EventsV1EventSeries. # noqa: E501
|
||||
|
||||
lastObservedTime is the time when last Event from the series was seen before last heartbeat. # noqa: E501
|
||||
|
||||
:return: The last_observed_time of this EventsV1EventSeries. # noqa: E501
|
||||
:rtype: datetime
|
||||
"""
|
||||
return self._last_observed_time
|
||||
|
||||
@last_observed_time.setter
|
||||
def last_observed_time(self, last_observed_time):
|
||||
"""Sets the last_observed_time of this EventsV1EventSeries.
|
||||
|
||||
lastObservedTime is the time when last Event from the series was seen before last heartbeat. # noqa: E501
|
||||
|
||||
:param last_observed_time: The last_observed_time of this EventsV1EventSeries. # noqa: E501
|
||||
:type: datetime
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and last_observed_time is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `last_observed_time`, must not be `None`") # noqa: E501
|
||||
|
||||
self._last_observed_time = last_observed_time
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, EventsV1EventSeries):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, EventsV1EventSeries):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
201
kubernetes/client/models/flowcontrol_v1_subject.py
Normal file
201
kubernetes/client/models/flowcontrol_v1_subject.py
Normal file
|
@ -0,0 +1,201 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class FlowcontrolV1Subject(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'group': 'V1GroupSubject',
|
||||
'kind': 'str',
|
||||
'service_account': 'V1ServiceAccountSubject',
|
||||
'user': 'V1UserSubject'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'group': 'group',
|
||||
'kind': 'kind',
|
||||
'service_account': 'serviceAccount',
|
||||
'user': 'user'
|
||||
}
|
||||
|
||||
def __init__(self, group=None, kind=None, service_account=None, user=None, local_vars_configuration=None): # noqa: E501
|
||||
"""FlowcontrolV1Subject - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._group = None
|
||||
self._kind = None
|
||||
self._service_account = None
|
||||
self._user = None
|
||||
self.discriminator = None
|
||||
|
||||
if group is not None:
|
||||
self.group = group
|
||||
self.kind = kind
|
||||
if service_account is not None:
|
||||
self.service_account = service_account
|
||||
if user is not None:
|
||||
self.user = user
|
||||
|
||||
@property
|
||||
def group(self):
|
||||
"""Gets the group of this FlowcontrolV1Subject. # noqa: E501
|
||||
|
||||
|
||||
:return: The group of this FlowcontrolV1Subject. # noqa: E501
|
||||
:rtype: V1GroupSubject
|
||||
"""
|
||||
return self._group
|
||||
|
||||
@group.setter
|
||||
def group(self, group):
|
||||
"""Sets the group of this FlowcontrolV1Subject.
|
||||
|
||||
|
||||
:param group: The group of this FlowcontrolV1Subject. # noqa: E501
|
||||
:type: V1GroupSubject
|
||||
"""
|
||||
|
||||
self._group = group
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this FlowcontrolV1Subject. # noqa: E501
|
||||
|
||||
`kind` indicates which one of the other fields is non-empty. Required # noqa: E501
|
||||
|
||||
:return: The kind of this FlowcontrolV1Subject. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets the kind of this FlowcontrolV1Subject.
|
||||
|
||||
`kind` indicates which one of the other fields is non-empty. Required # noqa: E501
|
||||
|
||||
:param kind: The kind of this FlowcontrolV1Subject. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and kind is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def service_account(self):
|
||||
"""Gets the service_account of this FlowcontrolV1Subject. # noqa: E501
|
||||
|
||||
|
||||
:return: The service_account of this FlowcontrolV1Subject. # noqa: E501
|
||||
:rtype: V1ServiceAccountSubject
|
||||
"""
|
||||
return self._service_account
|
||||
|
||||
@service_account.setter
|
||||
def service_account(self, service_account):
|
||||
"""Sets the service_account of this FlowcontrolV1Subject.
|
||||
|
||||
|
||||
:param service_account: The service_account of this FlowcontrolV1Subject. # noqa: E501
|
||||
:type: V1ServiceAccountSubject
|
||||
"""
|
||||
|
||||
self._service_account = service_account
|
||||
|
||||
@property
|
||||
def user(self):
|
||||
"""Gets the user of this FlowcontrolV1Subject. # noqa: E501
|
||||
|
||||
|
||||
:return: The user of this FlowcontrolV1Subject. # noqa: E501
|
||||
:rtype: V1UserSubject
|
||||
"""
|
||||
return self._user
|
||||
|
||||
@user.setter
|
||||
def user(self, user):
|
||||
"""Sets the user of this FlowcontrolV1Subject.
|
||||
|
||||
|
||||
:param user: The user of this FlowcontrolV1Subject. # noqa: E501
|
||||
:type: V1UserSubject
|
||||
"""
|
||||
|
||||
self._user = user
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, FlowcontrolV1Subject):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, FlowcontrolV1Subject):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
208
kubernetes/client/models/rbac_v1_subject.py
Normal file
208
kubernetes/client/models/rbac_v1_subject.py
Normal file
|
@ -0,0 +1,208 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class RbacV1Subject(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'api_group': 'str',
|
||||
'kind': 'str',
|
||||
'name': 'str',
|
||||
'namespace': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'api_group': 'apiGroup',
|
||||
'kind': 'kind',
|
||||
'name': 'name',
|
||||
'namespace': 'namespace'
|
||||
}
|
||||
|
||||
def __init__(self, api_group=None, kind=None, name=None, namespace=None, local_vars_configuration=None): # noqa: E501
|
||||
"""RbacV1Subject - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._api_group = None
|
||||
self._kind = None
|
||||
self._name = None
|
||||
self._namespace = None
|
||||
self.discriminator = None
|
||||
|
||||
if api_group is not None:
|
||||
self.api_group = api_group
|
||||
self.kind = kind
|
||||
self.name = name
|
||||
if namespace is not None:
|
||||
self.namespace = namespace
|
||||
|
||||
@property
|
||||
def api_group(self):
|
||||
"""Gets the api_group of this RbacV1Subject. # noqa: E501
|
||||
|
||||
APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects. # noqa: E501
|
||||
|
||||
:return: The api_group of this RbacV1Subject. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._api_group
|
||||
|
||||
@api_group.setter
|
||||
def api_group(self, api_group):
|
||||
"""Sets the api_group of this RbacV1Subject.
|
||||
|
||||
APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects. # noqa: E501
|
||||
|
||||
:param api_group: The api_group of this RbacV1Subject. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._api_group = api_group
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this RbacV1Subject. # noqa: E501
|
||||
|
||||
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. # noqa: E501
|
||||
|
||||
:return: The kind of this RbacV1Subject. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets the kind of this RbacV1Subject.
|
||||
|
||||
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. # noqa: E501
|
||||
|
||||
:param kind: The kind of this RbacV1Subject. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and kind is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""Gets the name of this RbacV1Subject. # noqa: E501
|
||||
|
||||
Name of the object being referenced. # noqa: E501
|
||||
|
||||
:return: The name of this RbacV1Subject. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._name
|
||||
|
||||
@name.setter
|
||||
def name(self, name):
|
||||
"""Sets the name of this RbacV1Subject.
|
||||
|
||||
Name of the object being referenced. # noqa: E501
|
||||
|
||||
:param name: The name of this RbacV1Subject. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
||||
|
||||
self._name = name
|
||||
|
||||
@property
|
||||
def namespace(self):
|
||||
"""Gets the namespace of this RbacV1Subject. # noqa: E501
|
||||
|
||||
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. # noqa: E501
|
||||
|
||||
:return: The namespace of this RbacV1Subject. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._namespace
|
||||
|
||||
@namespace.setter
|
||||
def namespace(self, namespace):
|
||||
"""Sets the namespace of this RbacV1Subject.
|
||||
|
||||
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. # noqa: E501
|
||||
|
||||
:param namespace: The namespace of this RbacV1Subject. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._namespace = namespace
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, RbacV1Subject):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, RbacV1Subject):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
151
kubernetes/client/models/storage_v1_token_request.py
Normal file
151
kubernetes/client/models/storage_v1_token_request.py
Normal file
|
@ -0,0 +1,151 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class StorageV1TokenRequest(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'audience': 'str',
|
||||
'expiration_seconds': 'int'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'audience': 'audience',
|
||||
'expiration_seconds': 'expirationSeconds'
|
||||
}
|
||||
|
||||
def __init__(self, audience=None, expiration_seconds=None, local_vars_configuration=None): # noqa: E501
|
||||
"""StorageV1TokenRequest - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._audience = None
|
||||
self._expiration_seconds = None
|
||||
self.discriminator = None
|
||||
|
||||
self.audience = audience
|
||||
if expiration_seconds is not None:
|
||||
self.expiration_seconds = expiration_seconds
|
||||
|
||||
@property
|
||||
def audience(self):
|
||||
"""Gets the audience of this StorageV1TokenRequest. # noqa: E501
|
||||
|
||||
audience is the intended audience of the token in \"TokenRequestSpec\". It will default to the audiences of kube apiserver. # noqa: E501
|
||||
|
||||
:return: The audience of this StorageV1TokenRequest. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._audience
|
||||
|
||||
@audience.setter
|
||||
def audience(self, audience):
|
||||
"""Sets the audience of this StorageV1TokenRequest.
|
||||
|
||||
audience is the intended audience of the token in \"TokenRequestSpec\". It will default to the audiences of kube apiserver. # noqa: E501
|
||||
|
||||
:param audience: The audience of this StorageV1TokenRequest. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and audience is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `audience`, must not be `None`") # noqa: E501
|
||||
|
||||
self._audience = audience
|
||||
|
||||
@property
|
||||
def expiration_seconds(self):
|
||||
"""Gets the expiration_seconds of this StorageV1TokenRequest. # noqa: E501
|
||||
|
||||
expirationSeconds is the duration of validity of the token in \"TokenRequestSpec\". It has the same default value of \"ExpirationSeconds\" in \"TokenRequestSpec\". # noqa: E501
|
||||
|
||||
:return: The expiration_seconds of this StorageV1TokenRequest. # noqa: E501
|
||||
:rtype: int
|
||||
"""
|
||||
return self._expiration_seconds
|
||||
|
||||
@expiration_seconds.setter
|
||||
def expiration_seconds(self, expiration_seconds):
|
||||
"""Sets the expiration_seconds of this StorageV1TokenRequest.
|
||||
|
||||
expirationSeconds is the duration of validity of the token in \"TokenRequestSpec\". It has the same default value of \"ExpirationSeconds\" in \"TokenRequestSpec\". # noqa: E501
|
||||
|
||||
:param expiration_seconds: The expiration_seconds of this StorageV1TokenRequest. # noqa: E501
|
||||
:type: int
|
||||
"""
|
||||
|
||||
self._expiration_seconds = expiration_seconds
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, StorageV1TokenRequest):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, StorageV1TokenRequest):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
172
kubernetes/client/models/v1_affinity.py
Normal file
172
kubernetes/client/models/v1_affinity.py
Normal file
|
@ -0,0 +1,172 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1Affinity(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'node_affinity': 'V1NodeAffinity',
|
||||
'pod_affinity': 'V1PodAffinity',
|
||||
'pod_anti_affinity': 'V1PodAntiAffinity'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'node_affinity': 'nodeAffinity',
|
||||
'pod_affinity': 'podAffinity',
|
||||
'pod_anti_affinity': 'podAntiAffinity'
|
||||
}
|
||||
|
||||
def __init__(self, node_affinity=None, pod_affinity=None, pod_anti_affinity=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1Affinity - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._node_affinity = None
|
||||
self._pod_affinity = None
|
||||
self._pod_anti_affinity = None
|
||||
self.discriminator = None
|
||||
|
||||
if node_affinity is not None:
|
||||
self.node_affinity = node_affinity
|
||||
if pod_affinity is not None:
|
||||
self.pod_affinity = pod_affinity
|
||||
if pod_anti_affinity is not None:
|
||||
self.pod_anti_affinity = pod_anti_affinity
|
||||
|
||||
@property
|
||||
def node_affinity(self):
|
||||
"""Gets the node_affinity of this V1Affinity. # noqa: E501
|
||||
|
||||
|
||||
:return: The node_affinity of this V1Affinity. # noqa: E501
|
||||
:rtype: V1NodeAffinity
|
||||
"""
|
||||
return self._node_affinity
|
||||
|
||||
@node_affinity.setter
|
||||
def node_affinity(self, node_affinity):
|
||||
"""Sets the node_affinity of this V1Affinity.
|
||||
|
||||
|
||||
:param node_affinity: The node_affinity of this V1Affinity. # noqa: E501
|
||||
:type: V1NodeAffinity
|
||||
"""
|
||||
|
||||
self._node_affinity = node_affinity
|
||||
|
||||
@property
|
||||
def pod_affinity(self):
|
||||
"""Gets the pod_affinity of this V1Affinity. # noqa: E501
|
||||
|
||||
|
||||
:return: The pod_affinity of this V1Affinity. # noqa: E501
|
||||
:rtype: V1PodAffinity
|
||||
"""
|
||||
return self._pod_affinity
|
||||
|
||||
@pod_affinity.setter
|
||||
def pod_affinity(self, pod_affinity):
|
||||
"""Sets the pod_affinity of this V1Affinity.
|
||||
|
||||
|
||||
:param pod_affinity: The pod_affinity of this V1Affinity. # noqa: E501
|
||||
:type: V1PodAffinity
|
||||
"""
|
||||
|
||||
self._pod_affinity = pod_affinity
|
||||
|
||||
@property
|
||||
def pod_anti_affinity(self):
|
||||
"""Gets the pod_anti_affinity of this V1Affinity. # noqa: E501
|
||||
|
||||
|
||||
:return: The pod_anti_affinity of this V1Affinity. # noqa: E501
|
||||
:rtype: V1PodAntiAffinity
|
||||
"""
|
||||
return self._pod_anti_affinity
|
||||
|
||||
@pod_anti_affinity.setter
|
||||
def pod_anti_affinity(self, pod_anti_affinity):
|
||||
"""Sets the pod_anti_affinity of this V1Affinity.
|
||||
|
||||
|
||||
:param pod_anti_affinity: The pod_anti_affinity of this V1Affinity. # noqa: E501
|
||||
:type: V1PodAntiAffinity
|
||||
"""
|
||||
|
||||
self._pod_anti_affinity = pod_anti_affinity
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1Affinity):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1Affinity):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
122
kubernetes/client/models/v1_aggregation_rule.py
Normal file
122
kubernetes/client/models/v1_aggregation_rule.py
Normal file
|
@ -0,0 +1,122 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1AggregationRule(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'cluster_role_selectors': 'list[V1LabelSelector]'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'cluster_role_selectors': 'clusterRoleSelectors'
|
||||
}
|
||||
|
||||
def __init__(self, cluster_role_selectors=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1AggregationRule - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._cluster_role_selectors = None
|
||||
self.discriminator = None
|
||||
|
||||
if cluster_role_selectors is not None:
|
||||
self.cluster_role_selectors = cluster_role_selectors
|
||||
|
||||
@property
|
||||
def cluster_role_selectors(self):
|
||||
"""Gets the cluster_role_selectors of this V1AggregationRule. # noqa: E501
|
||||
|
||||
ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added # noqa: E501
|
||||
|
||||
:return: The cluster_role_selectors of this V1AggregationRule. # noqa: E501
|
||||
:rtype: list[V1LabelSelector]
|
||||
"""
|
||||
return self._cluster_role_selectors
|
||||
|
||||
@cluster_role_selectors.setter
|
||||
def cluster_role_selectors(self, cluster_role_selectors):
|
||||
"""Sets the cluster_role_selectors of this V1AggregationRule.
|
||||
|
||||
ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added # noqa: E501
|
||||
|
||||
:param cluster_role_selectors: The cluster_role_selectors of this V1AggregationRule. # noqa: E501
|
||||
:type: list[V1LabelSelector]
|
||||
"""
|
||||
|
||||
self._cluster_role_selectors = cluster_role_selectors
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1AggregationRule):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1AggregationRule):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
262
kubernetes/client/models/v1_api_group.py
Normal file
262
kubernetes/client/models/v1_api_group.py
Normal file
|
@ -0,0 +1,262 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1APIGroup(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'api_version': 'str',
|
||||
'kind': 'str',
|
||||
'name': 'str',
|
||||
'preferred_version': 'V1GroupVersionForDiscovery',
|
||||
'server_address_by_client_cid_rs': 'list[V1ServerAddressByClientCIDR]',
|
||||
'versions': 'list[V1GroupVersionForDiscovery]'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'api_version': 'apiVersion',
|
||||
'kind': 'kind',
|
||||
'name': 'name',
|
||||
'preferred_version': 'preferredVersion',
|
||||
'server_address_by_client_cid_rs': 'serverAddressByClientCIDRs',
|
||||
'versions': 'versions'
|
||||
}
|
||||
|
||||
def __init__(self, api_version=None, kind=None, name=None, preferred_version=None, server_address_by_client_cid_rs=None, versions=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1APIGroup - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._api_version = None
|
||||
self._kind = None
|
||||
self._name = None
|
||||
self._preferred_version = None
|
||||
self._server_address_by_client_cid_rs = None
|
||||
self._versions = None
|
||||
self.discriminator = None
|
||||
|
||||
if api_version is not None:
|
||||
self.api_version = api_version
|
||||
if kind is not None:
|
||||
self.kind = kind
|
||||
self.name = name
|
||||
if preferred_version is not None:
|
||||
self.preferred_version = preferred_version
|
||||
if server_address_by_client_cid_rs is not None:
|
||||
self.server_address_by_client_cid_rs = server_address_by_client_cid_rs
|
||||
self.versions = versions
|
||||
|
||||
@property
|
||||
def api_version(self):
|
||||
"""Gets the api_version of this V1APIGroup. # noqa: E501
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:return: The api_version of this V1APIGroup. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._api_version
|
||||
|
||||
@api_version.setter
|
||||
def api_version(self, api_version):
|
||||
"""Sets the api_version of this V1APIGroup.
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:param api_version: The api_version of this V1APIGroup. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._api_version = api_version
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this V1APIGroup. # noqa: E501
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:return: The kind of this V1APIGroup. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets the kind of this V1APIGroup.
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:param kind: The kind of this V1APIGroup. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""Gets the name of this V1APIGroup. # noqa: E501
|
||||
|
||||
name is the name of the group. # noqa: E501
|
||||
|
||||
:return: The name of this V1APIGroup. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._name
|
||||
|
||||
@name.setter
|
||||
def name(self, name):
|
||||
"""Sets the name of this V1APIGroup.
|
||||
|
||||
name is the name of the group. # noqa: E501
|
||||
|
||||
:param name: The name of this V1APIGroup. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
||||
|
||||
self._name = name
|
||||
|
||||
@property
|
||||
def preferred_version(self):
|
||||
"""Gets the preferred_version of this V1APIGroup. # noqa: E501
|
||||
|
||||
|
||||
:return: The preferred_version of this V1APIGroup. # noqa: E501
|
||||
:rtype: V1GroupVersionForDiscovery
|
||||
"""
|
||||
return self._preferred_version
|
||||
|
||||
@preferred_version.setter
|
||||
def preferred_version(self, preferred_version):
|
||||
"""Sets the preferred_version of this V1APIGroup.
|
||||
|
||||
|
||||
:param preferred_version: The preferred_version of this V1APIGroup. # noqa: E501
|
||||
:type: V1GroupVersionForDiscovery
|
||||
"""
|
||||
|
||||
self._preferred_version = preferred_version
|
||||
|
||||
@property
|
||||
def server_address_by_client_cid_rs(self):
|
||||
"""Gets the server_address_by_client_cid_rs of this V1APIGroup. # noqa: E501
|
||||
|
||||
a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. # noqa: E501
|
||||
|
||||
:return: The server_address_by_client_cid_rs of this V1APIGroup. # noqa: E501
|
||||
:rtype: list[V1ServerAddressByClientCIDR]
|
||||
"""
|
||||
return self._server_address_by_client_cid_rs
|
||||
|
||||
@server_address_by_client_cid_rs.setter
|
||||
def server_address_by_client_cid_rs(self, server_address_by_client_cid_rs):
|
||||
"""Sets the server_address_by_client_cid_rs of this V1APIGroup.
|
||||
|
||||
a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. # noqa: E501
|
||||
|
||||
:param server_address_by_client_cid_rs: The server_address_by_client_cid_rs of this V1APIGroup. # noqa: E501
|
||||
:type: list[V1ServerAddressByClientCIDR]
|
||||
"""
|
||||
|
||||
self._server_address_by_client_cid_rs = server_address_by_client_cid_rs
|
||||
|
||||
@property
|
||||
def versions(self):
|
||||
"""Gets the versions of this V1APIGroup. # noqa: E501
|
||||
|
||||
versions are the versions supported in this group. # noqa: E501
|
||||
|
||||
:return: The versions of this V1APIGroup. # noqa: E501
|
||||
:rtype: list[V1GroupVersionForDiscovery]
|
||||
"""
|
||||
return self._versions
|
||||
|
||||
@versions.setter
|
||||
def versions(self, versions):
|
||||
"""Sets the versions of this V1APIGroup.
|
||||
|
||||
versions are the versions supported in this group. # noqa: E501
|
||||
|
||||
:param versions: The versions of this V1APIGroup. # noqa: E501
|
||||
:type: list[V1GroupVersionForDiscovery]
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and versions is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `versions`, must not be `None`") # noqa: E501
|
||||
|
||||
self._versions = versions
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1APIGroup):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1APIGroup):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
179
kubernetes/client/models/v1_api_group_list.py
Normal file
179
kubernetes/client/models/v1_api_group_list.py
Normal file
|
@ -0,0 +1,179 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1APIGroupList(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'api_version': 'str',
|
||||
'groups': 'list[V1APIGroup]',
|
||||
'kind': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'api_version': 'apiVersion',
|
||||
'groups': 'groups',
|
||||
'kind': 'kind'
|
||||
}
|
||||
|
||||
def __init__(self, api_version=None, groups=None, kind=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1APIGroupList - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._api_version = None
|
||||
self._groups = None
|
||||
self._kind = None
|
||||
self.discriminator = None
|
||||
|
||||
if api_version is not None:
|
||||
self.api_version = api_version
|
||||
self.groups = groups
|
||||
if kind is not None:
|
||||
self.kind = kind
|
||||
|
||||
@property
|
||||
def api_version(self):
|
||||
"""Gets the api_version of this V1APIGroupList. # noqa: E501
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:return: The api_version of this V1APIGroupList. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._api_version
|
||||
|
||||
@api_version.setter
|
||||
def api_version(self, api_version):
|
||||
"""Sets the api_version of this V1APIGroupList.
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:param api_version: The api_version of this V1APIGroupList. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._api_version = api_version
|
||||
|
||||
@property
|
||||
def groups(self):
|
||||
"""Gets the groups of this V1APIGroupList. # noqa: E501
|
||||
|
||||
groups is a list of APIGroup. # noqa: E501
|
||||
|
||||
:return: The groups of this V1APIGroupList. # noqa: E501
|
||||
:rtype: list[V1APIGroup]
|
||||
"""
|
||||
return self._groups
|
||||
|
||||
@groups.setter
|
||||
def groups(self, groups):
|
||||
"""Sets the groups of this V1APIGroupList.
|
||||
|
||||
groups is a list of APIGroup. # noqa: E501
|
||||
|
||||
:param groups: The groups of this V1APIGroupList. # noqa: E501
|
||||
:type: list[V1APIGroup]
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and groups is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `groups`, must not be `None`") # noqa: E501
|
||||
|
||||
self._groups = groups
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this V1APIGroupList. # noqa: E501
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:return: The kind of this V1APIGroupList. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets the kind of this V1APIGroupList.
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:param kind: The kind of this V1APIGroupList. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._kind = kind
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1APIGroupList):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1APIGroupList):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
379
kubernetes/client/models/v1_api_resource.py
Normal file
379
kubernetes/client/models/v1_api_resource.py
Normal file
|
@ -0,0 +1,379 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1APIResource(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'categories': 'list[str]',
|
||||
'group': 'str',
|
||||
'kind': 'str',
|
||||
'name': 'str',
|
||||
'namespaced': 'bool',
|
||||
'short_names': 'list[str]',
|
||||
'singular_name': 'str',
|
||||
'storage_version_hash': 'str',
|
||||
'verbs': 'list[str]',
|
||||
'version': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'categories': 'categories',
|
||||
'group': 'group',
|
||||
'kind': 'kind',
|
||||
'name': 'name',
|
||||
'namespaced': 'namespaced',
|
||||
'short_names': 'shortNames',
|
||||
'singular_name': 'singularName',
|
||||
'storage_version_hash': 'storageVersionHash',
|
||||
'verbs': 'verbs',
|
||||
'version': 'version'
|
||||
}
|
||||
|
||||
def __init__(self, categories=None, group=None, kind=None, name=None, namespaced=None, short_names=None, singular_name=None, storage_version_hash=None, verbs=None, version=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1APIResource - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._categories = None
|
||||
self._group = None
|
||||
self._kind = None
|
||||
self._name = None
|
||||
self._namespaced = None
|
||||
self._short_names = None
|
||||
self._singular_name = None
|
||||
self._storage_version_hash = None
|
||||
self._verbs = None
|
||||
self._version = None
|
||||
self.discriminator = None
|
||||
|
||||
if categories is not None:
|
||||
self.categories = categories
|
||||
if group is not None:
|
||||
self.group = group
|
||||
self.kind = kind
|
||||
self.name = name
|
||||
self.namespaced = namespaced
|
||||
if short_names is not None:
|
||||
self.short_names = short_names
|
||||
self.singular_name = singular_name
|
||||
if storage_version_hash is not None:
|
||||
self.storage_version_hash = storage_version_hash
|
||||
self.verbs = verbs
|
||||
if version is not None:
|
||||
self.version = version
|
||||
|
||||
@property
|
||||
def categories(self):
|
||||
"""Gets the categories of this V1APIResource. # noqa: E501
|
||||
|
||||
categories is a list of the grouped resources this resource belongs to (e.g. 'all') # noqa: E501
|
||||
|
||||
:return: The categories of this V1APIResource. # noqa: E501
|
||||
:rtype: list[str]
|
||||
"""
|
||||
return self._categories
|
||||
|
||||
@categories.setter
|
||||
def categories(self, categories):
|
||||
"""Sets the categories of this V1APIResource.
|
||||
|
||||
categories is a list of the grouped resources this resource belongs to (e.g. 'all') # noqa: E501
|
||||
|
||||
:param categories: The categories of this V1APIResource. # noqa: E501
|
||||
:type: list[str]
|
||||
"""
|
||||
|
||||
self._categories = categories
|
||||
|
||||
@property
|
||||
def group(self):
|
||||
"""Gets the group of this V1APIResource. # noqa: E501
|
||||
|
||||
group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\". # noqa: E501
|
||||
|
||||
:return: The group of this V1APIResource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._group
|
||||
|
||||
@group.setter
|
||||
def group(self, group):
|
||||
"""Sets the group of this V1APIResource.
|
||||
|
||||
group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\". # noqa: E501
|
||||
|
||||
:param group: The group of this V1APIResource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._group = group
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this V1APIResource. # noqa: E501
|
||||
|
||||
kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') # noqa: E501
|
||||
|
||||
:return: The kind of this V1APIResource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets the kind of this V1APIResource.
|
||||
|
||||
kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') # noqa: E501
|
||||
|
||||
:param kind: The kind of this V1APIResource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and kind is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""Gets the name of this V1APIResource. # noqa: E501
|
||||
|
||||
name is the plural name of the resource. # noqa: E501
|
||||
|
||||
:return: The name of this V1APIResource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._name
|
||||
|
||||
@name.setter
|
||||
def name(self, name):
|
||||
"""Sets the name of this V1APIResource.
|
||||
|
||||
name is the plural name of the resource. # noqa: E501
|
||||
|
||||
:param name: The name of this V1APIResource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
||||
|
||||
self._name = name
|
||||
|
||||
@property
|
||||
def namespaced(self):
|
||||
"""Gets the namespaced of this V1APIResource. # noqa: E501
|
||||
|
||||
namespaced indicates if a resource is namespaced or not. # noqa: E501
|
||||
|
||||
:return: The namespaced of this V1APIResource. # noqa: E501
|
||||
:rtype: bool
|
||||
"""
|
||||
return self._namespaced
|
||||
|
||||
@namespaced.setter
|
||||
def namespaced(self, namespaced):
|
||||
"""Sets the namespaced of this V1APIResource.
|
||||
|
||||
namespaced indicates if a resource is namespaced or not. # noqa: E501
|
||||
|
||||
:param namespaced: The namespaced of this V1APIResource. # noqa: E501
|
||||
:type: bool
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and namespaced is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `namespaced`, must not be `None`") # noqa: E501
|
||||
|
||||
self._namespaced = namespaced
|
||||
|
||||
@property
|
||||
def short_names(self):
|
||||
"""Gets the short_names of this V1APIResource. # noqa: E501
|
||||
|
||||
shortNames is a list of suggested short names of the resource. # noqa: E501
|
||||
|
||||
:return: The short_names of this V1APIResource. # noqa: E501
|
||||
:rtype: list[str]
|
||||
"""
|
||||
return self._short_names
|
||||
|
||||
@short_names.setter
|
||||
def short_names(self, short_names):
|
||||
"""Sets the short_names of this V1APIResource.
|
||||
|
||||
shortNames is a list of suggested short names of the resource. # noqa: E501
|
||||
|
||||
:param short_names: The short_names of this V1APIResource. # noqa: E501
|
||||
:type: list[str]
|
||||
"""
|
||||
|
||||
self._short_names = short_names
|
||||
|
||||
@property
|
||||
def singular_name(self):
|
||||
"""Gets the singular_name of this V1APIResource. # noqa: E501
|
||||
|
||||
singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface. # noqa: E501
|
||||
|
||||
:return: The singular_name of this V1APIResource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._singular_name
|
||||
|
||||
@singular_name.setter
|
||||
def singular_name(self, singular_name):
|
||||
"""Sets the singular_name of this V1APIResource.
|
||||
|
||||
singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface. # noqa: E501
|
||||
|
||||
:param singular_name: The singular_name of this V1APIResource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and singular_name is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `singular_name`, must not be `None`") # noqa: E501
|
||||
|
||||
self._singular_name = singular_name
|
||||
|
||||
@property
|
||||
def storage_version_hash(self):
|
||||
"""Gets the storage_version_hash of this V1APIResource. # noqa: E501
|
||||
|
||||
The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates. # noqa: E501
|
||||
|
||||
:return: The storage_version_hash of this V1APIResource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._storage_version_hash
|
||||
|
||||
@storage_version_hash.setter
|
||||
def storage_version_hash(self, storage_version_hash):
|
||||
"""Sets the storage_version_hash of this V1APIResource.
|
||||
|
||||
The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates. # noqa: E501
|
||||
|
||||
:param storage_version_hash: The storage_version_hash of this V1APIResource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._storage_version_hash = storage_version_hash
|
||||
|
||||
@property
|
||||
def verbs(self):
|
||||
"""Gets the verbs of this V1APIResource. # noqa: E501
|
||||
|
||||
verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy) # noqa: E501
|
||||
|
||||
:return: The verbs of this V1APIResource. # noqa: E501
|
||||
:rtype: list[str]
|
||||
"""
|
||||
return self._verbs
|
||||
|
||||
@verbs.setter
|
||||
def verbs(self, verbs):
|
||||
"""Sets the verbs of this V1APIResource.
|
||||
|
||||
verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy) # noqa: E501
|
||||
|
||||
:param verbs: The verbs of this V1APIResource. # noqa: E501
|
||||
:type: list[str]
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and verbs is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `verbs`, must not be `None`") # noqa: E501
|
||||
|
||||
self._verbs = verbs
|
||||
|
||||
@property
|
||||
def version(self):
|
||||
"""Gets the version of this V1APIResource. # noqa: E501
|
||||
|
||||
version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\". # noqa: E501
|
||||
|
||||
:return: The version of this V1APIResource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._version
|
||||
|
||||
@version.setter
|
||||
def version(self, version):
|
||||
"""Sets the version of this V1APIResource.
|
||||
|
||||
version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\". # noqa: E501
|
||||
|
||||
:param version: The version of this V1APIResource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._version = version
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1APIResource):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1APIResource):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
208
kubernetes/client/models/v1_api_resource_list.py
Normal file
208
kubernetes/client/models/v1_api_resource_list.py
Normal file
|
@ -0,0 +1,208 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1APIResourceList(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'api_version': 'str',
|
||||
'group_version': 'str',
|
||||
'kind': 'str',
|
||||
'resources': 'list[V1APIResource]'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'api_version': 'apiVersion',
|
||||
'group_version': 'groupVersion',
|
||||
'kind': 'kind',
|
||||
'resources': 'resources'
|
||||
}
|
||||
|
||||
def __init__(self, api_version=None, group_version=None, kind=None, resources=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1APIResourceList - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._api_version = None
|
||||
self._group_version = None
|
||||
self._kind = None
|
||||
self._resources = None
|
||||
self.discriminator = None
|
||||
|
||||
if api_version is not None:
|
||||
self.api_version = api_version
|
||||
self.group_version = group_version
|
||||
if kind is not None:
|
||||
self.kind = kind
|
||||
self.resources = resources
|
||||
|
||||
@property
|
||||
def api_version(self):
|
||||
"""Gets the api_version of this V1APIResourceList. # noqa: E501
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:return: The api_version of this V1APIResourceList. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._api_version
|
||||
|
||||
@api_version.setter
|
||||
def api_version(self, api_version):
|
||||
"""Sets the api_version of this V1APIResourceList.
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:param api_version: The api_version of this V1APIResourceList. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._api_version = api_version
|
||||
|
||||
@property
|
||||
def group_version(self):
|
||||
"""Gets the group_version of this V1APIResourceList. # noqa: E501
|
||||
|
||||
groupVersion is the group and version this APIResourceList is for. # noqa: E501
|
||||
|
||||
:return: The group_version of this V1APIResourceList. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._group_version
|
||||
|
||||
@group_version.setter
|
||||
def group_version(self, group_version):
|
||||
"""Sets the group_version of this V1APIResourceList.
|
||||
|
||||
groupVersion is the group and version this APIResourceList is for. # noqa: E501
|
||||
|
||||
:param group_version: The group_version of this V1APIResourceList. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and group_version is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `group_version`, must not be `None`") # noqa: E501
|
||||
|
||||
self._group_version = group_version
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this V1APIResourceList. # noqa: E501
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:return: The kind of this V1APIResourceList. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets the kind of this V1APIResourceList.
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:param kind: The kind of this V1APIResourceList. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def resources(self):
|
||||
"""Gets the resources of this V1APIResourceList. # noqa: E501
|
||||
|
||||
resources contains the name of the resources and if they are namespaced. # noqa: E501
|
||||
|
||||
:return: The resources of this V1APIResourceList. # noqa: E501
|
||||
:rtype: list[V1APIResource]
|
||||
"""
|
||||
return self._resources
|
||||
|
||||
@resources.setter
|
||||
def resources(self, resources):
|
||||
"""Sets the resources of this V1APIResourceList.
|
||||
|
||||
resources contains the name of the resources and if they are namespaced. # noqa: E501
|
||||
|
||||
:param resources: The resources of this V1APIResourceList. # noqa: E501
|
||||
:type: list[V1APIResource]
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and resources is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `resources`, must not be `None`") # noqa: E501
|
||||
|
||||
self._resources = resources
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1APIResourceList):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1APIResourceList):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
228
kubernetes/client/models/v1_api_service.py
Normal file
228
kubernetes/client/models/v1_api_service.py
Normal file
|
@ -0,0 +1,228 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1APIService(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'api_version': 'str',
|
||||
'kind': 'str',
|
||||
'metadata': 'V1ObjectMeta',
|
||||
'spec': 'V1APIServiceSpec',
|
||||
'status': 'V1APIServiceStatus'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'api_version': 'apiVersion',
|
||||
'kind': 'kind',
|
||||
'metadata': 'metadata',
|
||||
'spec': 'spec',
|
||||
'status': 'status'
|
||||
}
|
||||
|
||||
def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1APIService - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._api_version = None
|
||||
self._kind = None
|
||||
self._metadata = None
|
||||
self._spec = None
|
||||
self._status = None
|
||||
self.discriminator = None
|
||||
|
||||
if api_version is not None:
|
||||
self.api_version = api_version
|
||||
if kind is not None:
|
||||
self.kind = kind
|
||||
if metadata is not None:
|
||||
self.metadata = metadata
|
||||
if spec is not None:
|
||||
self.spec = spec
|
||||
if status is not None:
|
||||
self.status = status
|
||||
|
||||
@property
|
||||
def api_version(self):
|
||||
"""Gets the api_version of this V1APIService. # noqa: E501
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:return: The api_version of this V1APIService. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._api_version
|
||||
|
||||
@api_version.setter
|
||||
def api_version(self, api_version):
|
||||
"""Sets the api_version of this V1APIService.
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:param api_version: The api_version of this V1APIService. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._api_version = api_version
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this V1APIService. # noqa: E501
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:return: The kind of this V1APIService. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets the kind of this V1APIService.
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:param kind: The kind of this V1APIService. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def metadata(self):
|
||||
"""Gets the metadata of this V1APIService. # noqa: E501
|
||||
|
||||
|
||||
:return: The metadata of this V1APIService. # noqa: E501
|
||||
:rtype: V1ObjectMeta
|
||||
"""
|
||||
return self._metadata
|
||||
|
||||
@metadata.setter
|
||||
def metadata(self, metadata):
|
||||
"""Sets the metadata of this V1APIService.
|
||||
|
||||
|
||||
:param metadata: The metadata of this V1APIService. # noqa: E501
|
||||
:type: V1ObjectMeta
|
||||
"""
|
||||
|
||||
self._metadata = metadata
|
||||
|
||||
@property
|
||||
def spec(self):
|
||||
"""Gets the spec of this V1APIService. # noqa: E501
|
||||
|
||||
|
||||
:return: The spec of this V1APIService. # noqa: E501
|
||||
:rtype: V1APIServiceSpec
|
||||
"""
|
||||
return self._spec
|
||||
|
||||
@spec.setter
|
||||
def spec(self, spec):
|
||||
"""Sets the spec of this V1APIService.
|
||||
|
||||
|
||||
:param spec: The spec of this V1APIService. # noqa: E501
|
||||
:type: V1APIServiceSpec
|
||||
"""
|
||||
|
||||
self._spec = spec
|
||||
|
||||
@property
|
||||
def status(self):
|
||||
"""Gets the status of this V1APIService. # noqa: E501
|
||||
|
||||
|
||||
:return: The status of this V1APIService. # noqa: E501
|
||||
:rtype: V1APIServiceStatus
|
||||
"""
|
||||
return self._status
|
||||
|
||||
@status.setter
|
||||
def status(self, status):
|
||||
"""Sets the status of this V1APIService.
|
||||
|
||||
|
||||
:param status: The status of this V1APIService. # noqa: E501
|
||||
:type: V1APIServiceStatus
|
||||
"""
|
||||
|
||||
self._status = status
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1APIService):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1APIService):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
236
kubernetes/client/models/v1_api_service_condition.py
Normal file
236
kubernetes/client/models/v1_api_service_condition.py
Normal file
|
@ -0,0 +1,236 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1APIServiceCondition(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'last_transition_time': 'datetime',
|
||||
'message': 'str',
|
||||
'reason': 'str',
|
||||
'status': 'str',
|
||||
'type': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'last_transition_time': 'lastTransitionTime',
|
||||
'message': 'message',
|
||||
'reason': 'reason',
|
||||
'status': 'status',
|
||||
'type': 'type'
|
||||
}
|
||||
|
||||
def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1APIServiceCondition - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._last_transition_time = None
|
||||
self._message = None
|
||||
self._reason = None
|
||||
self._status = None
|
||||
self._type = None
|
||||
self.discriminator = None
|
||||
|
||||
if last_transition_time is not None:
|
||||
self.last_transition_time = last_transition_time
|
||||
if message is not None:
|
||||
self.message = message
|
||||
if reason is not None:
|
||||
self.reason = reason
|
||||
self.status = status
|
||||
self.type = type
|
||||
|
||||
@property
|
||||
def last_transition_time(self):
|
||||
"""Gets the last_transition_time of this V1APIServiceCondition. # noqa: E501
|
||||
|
||||
Last time the condition transitioned from one status to another. # noqa: E501
|
||||
|
||||
:return: The last_transition_time of this V1APIServiceCondition. # noqa: E501
|
||||
:rtype: datetime
|
||||
"""
|
||||
return self._last_transition_time
|
||||
|
||||
@last_transition_time.setter
|
||||
def last_transition_time(self, last_transition_time):
|
||||
"""Sets the last_transition_time of this V1APIServiceCondition.
|
||||
|
||||
Last time the condition transitioned from one status to another. # noqa: E501
|
||||
|
||||
:param last_transition_time: The last_transition_time of this V1APIServiceCondition. # noqa: E501
|
||||
:type: datetime
|
||||
"""
|
||||
|
||||
self._last_transition_time = last_transition_time
|
||||
|
||||
@property
|
||||
def message(self):
|
||||
"""Gets the message of this V1APIServiceCondition. # noqa: E501
|
||||
|
||||
Human-readable message indicating details about last transition. # noqa: E501
|
||||
|
||||
:return: The message of this V1APIServiceCondition. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._message
|
||||
|
||||
@message.setter
|
||||
def message(self, message):
|
||||
"""Sets the message of this V1APIServiceCondition.
|
||||
|
||||
Human-readable message indicating details about last transition. # noqa: E501
|
||||
|
||||
:param message: The message of this V1APIServiceCondition. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._message = message
|
||||
|
||||
@property
|
||||
def reason(self):
|
||||
"""Gets the reason of this V1APIServiceCondition. # noqa: E501
|
||||
|
||||
Unique, one-word, CamelCase reason for the condition's last transition. # noqa: E501
|
||||
|
||||
:return: The reason of this V1APIServiceCondition. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._reason
|
||||
|
||||
@reason.setter
|
||||
def reason(self, reason):
|
||||
"""Sets the reason of this V1APIServiceCondition.
|
||||
|
||||
Unique, one-word, CamelCase reason for the condition's last transition. # noqa: E501
|
||||
|
||||
:param reason: The reason of this V1APIServiceCondition. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._reason = reason
|
||||
|
||||
@property
|
||||
def status(self):
|
||||
"""Gets the status of this V1APIServiceCondition. # noqa: E501
|
||||
|
||||
Status is the status of the condition. Can be True, False, Unknown. # noqa: E501
|
||||
|
||||
:return: The status of this V1APIServiceCondition. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._status
|
||||
|
||||
@status.setter
|
||||
def status(self, status):
|
||||
"""Sets the status of this V1APIServiceCondition.
|
||||
|
||||
Status is the status of the condition. Can be True, False, Unknown. # noqa: E501
|
||||
|
||||
:param status: The status of this V1APIServiceCondition. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501
|
||||
|
||||
self._status = status
|
||||
|
||||
@property
|
||||
def type(self):
|
||||
"""Gets the type of this V1APIServiceCondition. # noqa: E501
|
||||
|
||||
Type is the type of the condition. # noqa: E501
|
||||
|
||||
:return: The type of this V1APIServiceCondition. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._type
|
||||
|
||||
@type.setter
|
||||
def type(self, type):
|
||||
"""Sets the type of this V1APIServiceCondition.
|
||||
|
||||
Type is the type of the condition. # noqa: E501
|
||||
|
||||
:param type: The type of this V1APIServiceCondition. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501
|
||||
|
||||
self._type = type
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1APIServiceCondition):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1APIServiceCondition):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
205
kubernetes/client/models/v1_api_service_list.py
Normal file
205
kubernetes/client/models/v1_api_service_list.py
Normal file
|
@ -0,0 +1,205 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1APIServiceList(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'api_version': 'str',
|
||||
'items': 'list[V1APIService]',
|
||||
'kind': 'str',
|
||||
'metadata': 'V1ListMeta'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'api_version': 'apiVersion',
|
||||
'items': 'items',
|
||||
'kind': 'kind',
|
||||
'metadata': 'metadata'
|
||||
}
|
||||
|
||||
def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1APIServiceList - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._api_version = None
|
||||
self._items = None
|
||||
self._kind = None
|
||||
self._metadata = None
|
||||
self.discriminator = None
|
||||
|
||||
if api_version is not None:
|
||||
self.api_version = api_version
|
||||
self.items = items
|
||||
if kind is not None:
|
||||
self.kind = kind
|
||||
if metadata is not None:
|
||||
self.metadata = metadata
|
||||
|
||||
@property
|
||||
def api_version(self):
|
||||
"""Gets the api_version of this V1APIServiceList. # noqa: E501
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:return: The api_version of this V1APIServiceList. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._api_version
|
||||
|
||||
@api_version.setter
|
||||
def api_version(self, api_version):
|
||||
"""Sets the api_version of this V1APIServiceList.
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:param api_version: The api_version of this V1APIServiceList. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._api_version = api_version
|
||||
|
||||
@property
|
||||
def items(self):
|
||||
"""Gets the items of this V1APIServiceList. # noqa: E501
|
||||
|
||||
Items is the list of APIService # noqa: E501
|
||||
|
||||
:return: The items of this V1APIServiceList. # noqa: E501
|
||||
:rtype: list[V1APIService]
|
||||
"""
|
||||
return self._items
|
||||
|
||||
@items.setter
|
||||
def items(self, items):
|
||||
"""Sets the items of this V1APIServiceList.
|
||||
|
||||
Items is the list of APIService # noqa: E501
|
||||
|
||||
:param items: The items of this V1APIServiceList. # noqa: E501
|
||||
:type: list[V1APIService]
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501
|
||||
|
||||
self._items = items
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this V1APIServiceList. # noqa: E501
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:return: The kind of this V1APIServiceList. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets the kind of this V1APIServiceList.
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:param kind: The kind of this V1APIServiceList. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def metadata(self):
|
||||
"""Gets the metadata of this V1APIServiceList. # noqa: E501
|
||||
|
||||
|
||||
:return: The metadata of this V1APIServiceList. # noqa: E501
|
||||
:rtype: V1ListMeta
|
||||
"""
|
||||
return self._metadata
|
||||
|
||||
@metadata.setter
|
||||
def metadata(self, metadata):
|
||||
"""Sets the metadata of this V1APIServiceList.
|
||||
|
||||
|
||||
:param metadata: The metadata of this V1APIServiceList. # noqa: E501
|
||||
:type: V1ListMeta
|
||||
"""
|
||||
|
||||
self._metadata = metadata
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1APIServiceList):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1APIServiceList):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
293
kubernetes/client/models/v1_api_service_spec.py
Normal file
293
kubernetes/client/models/v1_api_service_spec.py
Normal file
|
@ -0,0 +1,293 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1APIServiceSpec(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'ca_bundle': 'str',
|
||||
'group': 'str',
|
||||
'group_priority_minimum': 'int',
|
||||
'insecure_skip_tls_verify': 'bool',
|
||||
'service': 'ApiregistrationV1ServiceReference',
|
||||
'version': 'str',
|
||||
'version_priority': 'int'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'ca_bundle': 'caBundle',
|
||||
'group': 'group',
|
||||
'group_priority_minimum': 'groupPriorityMinimum',
|
||||
'insecure_skip_tls_verify': 'insecureSkipTLSVerify',
|
||||
'service': 'service',
|
||||
'version': 'version',
|
||||
'version_priority': 'versionPriority'
|
||||
}
|
||||
|
||||
def __init__(self, ca_bundle=None, group=None, group_priority_minimum=None, insecure_skip_tls_verify=None, service=None, version=None, version_priority=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1APIServiceSpec - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._ca_bundle = None
|
||||
self._group = None
|
||||
self._group_priority_minimum = None
|
||||
self._insecure_skip_tls_verify = None
|
||||
self._service = None
|
||||
self._version = None
|
||||
self._version_priority = None
|
||||
self.discriminator = None
|
||||
|
||||
if ca_bundle is not None:
|
||||
self.ca_bundle = ca_bundle
|
||||
if group is not None:
|
||||
self.group = group
|
||||
self.group_priority_minimum = group_priority_minimum
|
||||
if insecure_skip_tls_verify is not None:
|
||||
self.insecure_skip_tls_verify = insecure_skip_tls_verify
|
||||
if service is not None:
|
||||
self.service = service
|
||||
if version is not None:
|
||||
self.version = version
|
||||
self.version_priority = version_priority
|
||||
|
||||
@property
|
||||
def ca_bundle(self):
|
||||
"""Gets the ca_bundle of this V1APIServiceSpec. # noqa: E501
|
||||
|
||||
CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used. # noqa: E501
|
||||
|
||||
:return: The ca_bundle of this V1APIServiceSpec. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._ca_bundle
|
||||
|
||||
@ca_bundle.setter
|
||||
def ca_bundle(self, ca_bundle):
|
||||
"""Sets the ca_bundle of this V1APIServiceSpec.
|
||||
|
||||
CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used. # noqa: E501
|
||||
|
||||
:param ca_bundle: The ca_bundle of this V1APIServiceSpec. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if (self.local_vars_configuration.client_side_validation and
|
||||
ca_bundle is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', ca_bundle)): # noqa: E501
|
||||
raise ValueError(r"Invalid value for `ca_bundle`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501
|
||||
|
||||
self._ca_bundle = ca_bundle
|
||||
|
||||
@property
|
||||
def group(self):
|
||||
"""Gets the group of this V1APIServiceSpec. # noqa: E501
|
||||
|
||||
Group is the API group name this server hosts # noqa: E501
|
||||
|
||||
:return: The group of this V1APIServiceSpec. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._group
|
||||
|
||||
@group.setter
|
||||
def group(self, group):
|
||||
"""Sets the group of this V1APIServiceSpec.
|
||||
|
||||
Group is the API group name this server hosts # noqa: E501
|
||||
|
||||
:param group: The group of this V1APIServiceSpec. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._group = group
|
||||
|
||||
@property
|
||||
def group_priority_minimum(self):
|
||||
"""Gets the group_priority_minimum of this V1APIServiceSpec. # noqa: E501
|
||||
|
||||
GroupPriorityMinimum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMinimum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s # noqa: E501
|
||||
|
||||
:return: The group_priority_minimum of this V1APIServiceSpec. # noqa: E501
|
||||
:rtype: int
|
||||
"""
|
||||
return self._group_priority_minimum
|
||||
|
||||
@group_priority_minimum.setter
|
||||
def group_priority_minimum(self, group_priority_minimum):
|
||||
"""Sets the group_priority_minimum of this V1APIServiceSpec.
|
||||
|
||||
GroupPriorityMinimum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMinimum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s # noqa: E501
|
||||
|
||||
:param group_priority_minimum: The group_priority_minimum of this V1APIServiceSpec. # noqa: E501
|
||||
:type: int
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and group_priority_minimum is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `group_priority_minimum`, must not be `None`") # noqa: E501
|
||||
|
||||
self._group_priority_minimum = group_priority_minimum
|
||||
|
||||
@property
|
||||
def insecure_skip_tls_verify(self):
|
||||
"""Gets the insecure_skip_tls_verify of this V1APIServiceSpec. # noqa: E501
|
||||
|
||||
InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. # noqa: E501
|
||||
|
||||
:return: The insecure_skip_tls_verify of this V1APIServiceSpec. # noqa: E501
|
||||
:rtype: bool
|
||||
"""
|
||||
return self._insecure_skip_tls_verify
|
||||
|
||||
@insecure_skip_tls_verify.setter
|
||||
def insecure_skip_tls_verify(self, insecure_skip_tls_verify):
|
||||
"""Sets the insecure_skip_tls_verify of this V1APIServiceSpec.
|
||||
|
||||
InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. # noqa: E501
|
||||
|
||||
:param insecure_skip_tls_verify: The insecure_skip_tls_verify of this V1APIServiceSpec. # noqa: E501
|
||||
:type: bool
|
||||
"""
|
||||
|
||||
self._insecure_skip_tls_verify = insecure_skip_tls_verify
|
||||
|
||||
@property
|
||||
def service(self):
|
||||
"""Gets the service of this V1APIServiceSpec. # noqa: E501
|
||||
|
||||
|
||||
:return: The service of this V1APIServiceSpec. # noqa: E501
|
||||
:rtype: ApiregistrationV1ServiceReference
|
||||
"""
|
||||
return self._service
|
||||
|
||||
@service.setter
|
||||
def service(self, service):
|
||||
"""Sets the service of this V1APIServiceSpec.
|
||||
|
||||
|
||||
:param service: The service of this V1APIServiceSpec. # noqa: E501
|
||||
:type: ApiregistrationV1ServiceReference
|
||||
"""
|
||||
|
||||
self._service = service
|
||||
|
||||
@property
|
||||
def version(self):
|
||||
"""Gets the version of this V1APIServiceSpec. # noqa: E501
|
||||
|
||||
Version is the API version this server hosts. For example, \"v1\" # noqa: E501
|
||||
|
||||
:return: The version of this V1APIServiceSpec. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._version
|
||||
|
||||
@version.setter
|
||||
def version(self, version):
|
||||
"""Sets the version of this V1APIServiceSpec.
|
||||
|
||||
Version is the API version this server hosts. For example, \"v1\" # noqa: E501
|
||||
|
||||
:param version: The version of this V1APIServiceSpec. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._version = version
|
||||
|
||||
@property
|
||||
def version_priority(self):
|
||||
"""Gets the version_priority of this V1APIServiceSpec. # noqa: E501
|
||||
|
||||
VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. # noqa: E501
|
||||
|
||||
:return: The version_priority of this V1APIServiceSpec. # noqa: E501
|
||||
:rtype: int
|
||||
"""
|
||||
return self._version_priority
|
||||
|
||||
@version_priority.setter
|
||||
def version_priority(self, version_priority):
|
||||
"""Sets the version_priority of this V1APIServiceSpec.
|
||||
|
||||
VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. # noqa: E501
|
||||
|
||||
:param version_priority: The version_priority of this V1APIServiceSpec. # noqa: E501
|
||||
:type: int
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and version_priority is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `version_priority`, must not be `None`") # noqa: E501
|
||||
|
||||
self._version_priority = version_priority
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1APIServiceSpec):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1APIServiceSpec):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
122
kubernetes/client/models/v1_api_service_status.py
Normal file
122
kubernetes/client/models/v1_api_service_status.py
Normal file
|
@ -0,0 +1,122 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1APIServiceStatus(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'conditions': 'list[V1APIServiceCondition]'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'conditions': 'conditions'
|
||||
}
|
||||
|
||||
def __init__(self, conditions=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1APIServiceStatus - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._conditions = None
|
||||
self.discriminator = None
|
||||
|
||||
if conditions is not None:
|
||||
self.conditions = conditions
|
||||
|
||||
@property
|
||||
def conditions(self):
|
||||
"""Gets the conditions of this V1APIServiceStatus. # noqa: E501
|
||||
|
||||
Current service state of apiService. # noqa: E501
|
||||
|
||||
:return: The conditions of this V1APIServiceStatus. # noqa: E501
|
||||
:rtype: list[V1APIServiceCondition]
|
||||
"""
|
||||
return self._conditions
|
||||
|
||||
@conditions.setter
|
||||
def conditions(self, conditions):
|
||||
"""Sets the conditions of this V1APIServiceStatus.
|
||||
|
||||
Current service state of apiService. # noqa: E501
|
||||
|
||||
:param conditions: The conditions of this V1APIServiceStatus. # noqa: E501
|
||||
:type: list[V1APIServiceCondition]
|
||||
"""
|
||||
|
||||
self._conditions = conditions
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1APIServiceStatus):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1APIServiceStatus):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
208
kubernetes/client/models/v1_api_versions.py
Normal file
208
kubernetes/client/models/v1_api_versions.py
Normal file
|
@ -0,0 +1,208 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1APIVersions(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'api_version': 'str',
|
||||
'kind': 'str',
|
||||
'server_address_by_client_cid_rs': 'list[V1ServerAddressByClientCIDR]',
|
||||
'versions': 'list[str]'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'api_version': 'apiVersion',
|
||||
'kind': 'kind',
|
||||
'server_address_by_client_cid_rs': 'serverAddressByClientCIDRs',
|
||||
'versions': 'versions'
|
||||
}
|
||||
|
||||
def __init__(self, api_version=None, kind=None, server_address_by_client_cid_rs=None, versions=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1APIVersions - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._api_version = None
|
||||
self._kind = None
|
||||
self._server_address_by_client_cid_rs = None
|
||||
self._versions = None
|
||||
self.discriminator = None
|
||||
|
||||
if api_version is not None:
|
||||
self.api_version = api_version
|
||||
if kind is not None:
|
||||
self.kind = kind
|
||||
self.server_address_by_client_cid_rs = server_address_by_client_cid_rs
|
||||
self.versions = versions
|
||||
|
||||
@property
|
||||
def api_version(self):
|
||||
"""Gets the api_version of this V1APIVersions. # noqa: E501
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:return: The api_version of this V1APIVersions. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._api_version
|
||||
|
||||
@api_version.setter
|
||||
def api_version(self, api_version):
|
||||
"""Sets the api_version of this V1APIVersions.
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:param api_version: The api_version of this V1APIVersions. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._api_version = api_version
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this V1APIVersions. # noqa: E501
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:return: The kind of this V1APIVersions. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets the kind of this V1APIVersions.
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:param kind: The kind of this V1APIVersions. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def server_address_by_client_cid_rs(self):
|
||||
"""Gets the server_address_by_client_cid_rs of this V1APIVersions. # noqa: E501
|
||||
|
||||
a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. # noqa: E501
|
||||
|
||||
:return: The server_address_by_client_cid_rs of this V1APIVersions. # noqa: E501
|
||||
:rtype: list[V1ServerAddressByClientCIDR]
|
||||
"""
|
||||
return self._server_address_by_client_cid_rs
|
||||
|
||||
@server_address_by_client_cid_rs.setter
|
||||
def server_address_by_client_cid_rs(self, server_address_by_client_cid_rs):
|
||||
"""Sets the server_address_by_client_cid_rs of this V1APIVersions.
|
||||
|
||||
a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. # noqa: E501
|
||||
|
||||
:param server_address_by_client_cid_rs: The server_address_by_client_cid_rs of this V1APIVersions. # noqa: E501
|
||||
:type: list[V1ServerAddressByClientCIDR]
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and server_address_by_client_cid_rs is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `server_address_by_client_cid_rs`, must not be `None`") # noqa: E501
|
||||
|
||||
self._server_address_by_client_cid_rs = server_address_by_client_cid_rs
|
||||
|
||||
@property
|
||||
def versions(self):
|
||||
"""Gets the versions of this V1APIVersions. # noqa: E501
|
||||
|
||||
versions are the api versions that are available. # noqa: E501
|
||||
|
||||
:return: The versions of this V1APIVersions. # noqa: E501
|
||||
:rtype: list[str]
|
||||
"""
|
||||
return self._versions
|
||||
|
||||
@versions.setter
|
||||
def versions(self, versions):
|
||||
"""Sets the versions of this V1APIVersions.
|
||||
|
||||
versions are the api versions that are available. # noqa: E501
|
||||
|
||||
:param versions: The versions of this V1APIVersions. # noqa: E501
|
||||
:type: list[str]
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and versions is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `versions`, must not be `None`") # noqa: E501
|
||||
|
||||
self._versions = versions
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1APIVersions):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1APIVersions):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
151
kubernetes/client/models/v1_app_armor_profile.py
Normal file
151
kubernetes/client/models/v1_app_armor_profile.py
Normal file
|
@ -0,0 +1,151 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1AppArmorProfile(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'localhost_profile': 'str',
|
||||
'type': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'localhost_profile': 'localhostProfile',
|
||||
'type': 'type'
|
||||
}
|
||||
|
||||
def __init__(self, localhost_profile=None, type=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1AppArmorProfile - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._localhost_profile = None
|
||||
self._type = None
|
||||
self.discriminator = None
|
||||
|
||||
if localhost_profile is not None:
|
||||
self.localhost_profile = localhost_profile
|
||||
self.type = type
|
||||
|
||||
@property
|
||||
def localhost_profile(self):
|
||||
"""Gets the localhost_profile of this V1AppArmorProfile. # noqa: E501
|
||||
|
||||
localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is \"Localhost\". # noqa: E501
|
||||
|
||||
:return: The localhost_profile of this V1AppArmorProfile. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._localhost_profile
|
||||
|
||||
@localhost_profile.setter
|
||||
def localhost_profile(self, localhost_profile):
|
||||
"""Sets the localhost_profile of this V1AppArmorProfile.
|
||||
|
||||
localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is \"Localhost\". # noqa: E501
|
||||
|
||||
:param localhost_profile: The localhost_profile of this V1AppArmorProfile. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._localhost_profile = localhost_profile
|
||||
|
||||
@property
|
||||
def type(self):
|
||||
"""Gets the type of this V1AppArmorProfile. # noqa: E501
|
||||
|
||||
type indicates which kind of AppArmor profile will be applied. Valid options are: Localhost - a profile pre-loaded on the node. RuntimeDefault - the container runtime's default profile. Unconfined - no AppArmor enforcement. # noqa: E501
|
||||
|
||||
:return: The type of this V1AppArmorProfile. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._type
|
||||
|
||||
@type.setter
|
||||
def type(self, type):
|
||||
"""Sets the type of this V1AppArmorProfile.
|
||||
|
||||
type indicates which kind of AppArmor profile will be applied. Valid options are: Localhost - a profile pre-loaded on the node. RuntimeDefault - the container runtime's default profile. Unconfined - no AppArmor enforcement. # noqa: E501
|
||||
|
||||
:param type: The type of this V1AppArmorProfile. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501
|
||||
|
||||
self._type = type
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1AppArmorProfile):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1AppArmorProfile):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
152
kubernetes/client/models/v1_attached_volume.py
Normal file
152
kubernetes/client/models/v1_attached_volume.py
Normal file
|
@ -0,0 +1,152 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1AttachedVolume(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'device_path': 'str',
|
||||
'name': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'device_path': 'devicePath',
|
||||
'name': 'name'
|
||||
}
|
||||
|
||||
def __init__(self, device_path=None, name=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1AttachedVolume - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._device_path = None
|
||||
self._name = None
|
||||
self.discriminator = None
|
||||
|
||||
self.device_path = device_path
|
||||
self.name = name
|
||||
|
||||
@property
|
||||
def device_path(self):
|
||||
"""Gets the device_path of this V1AttachedVolume. # noqa: E501
|
||||
|
||||
DevicePath represents the device path where the volume should be available # noqa: E501
|
||||
|
||||
:return: The device_path of this V1AttachedVolume. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._device_path
|
||||
|
||||
@device_path.setter
|
||||
def device_path(self, device_path):
|
||||
"""Sets the device_path of this V1AttachedVolume.
|
||||
|
||||
DevicePath represents the device path where the volume should be available # noqa: E501
|
||||
|
||||
:param device_path: The device_path of this V1AttachedVolume. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and device_path is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `device_path`, must not be `None`") # noqa: E501
|
||||
|
||||
self._device_path = device_path
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""Gets the name of this V1AttachedVolume. # noqa: E501
|
||||
|
||||
Name of the attached volume # noqa: E501
|
||||
|
||||
:return: The name of this V1AttachedVolume. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._name
|
||||
|
||||
@name.setter
|
||||
def name(self, name):
|
||||
"""Sets the name of this V1AttachedVolume.
|
||||
|
||||
Name of the attached volume # noqa: E501
|
||||
|
||||
:param name: The name of this V1AttachedVolume. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
||||
|
||||
self._name = name
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1AttachedVolume):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1AttachedVolume):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
152
kubernetes/client/models/v1_audit_annotation.py
Normal file
152
kubernetes/client/models/v1_audit_annotation.py
Normal file
|
@ -0,0 +1,152 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1AuditAnnotation(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'key': 'str',
|
||||
'value_expression': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'key': 'key',
|
||||
'value_expression': 'valueExpression'
|
||||
}
|
||||
|
||||
def __init__(self, key=None, value_expression=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1AuditAnnotation - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._key = None
|
||||
self._value_expression = None
|
||||
self.discriminator = None
|
||||
|
||||
self.key = key
|
||||
self.value_expression = value_expression
|
||||
|
||||
@property
|
||||
def key(self):
|
||||
"""Gets the key of this V1AuditAnnotation. # noqa: E501
|
||||
|
||||
key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length. The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\". If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded. Required. # noqa: E501
|
||||
|
||||
:return: The key of this V1AuditAnnotation. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._key
|
||||
|
||||
@key.setter
|
||||
def key(self, key):
|
||||
"""Sets the key of this V1AuditAnnotation.
|
||||
|
||||
key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length. The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\". If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded. Required. # noqa: E501
|
||||
|
||||
:param key: The key of this V1AuditAnnotation. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and key is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501
|
||||
|
||||
self._key = key
|
||||
|
||||
@property
|
||||
def value_expression(self):
|
||||
"""Gets the value_expression of this V1AuditAnnotation. # noqa: E501
|
||||
|
||||
valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb. If multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list. Required. # noqa: E501
|
||||
|
||||
:return: The value_expression of this V1AuditAnnotation. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._value_expression
|
||||
|
||||
@value_expression.setter
|
||||
def value_expression(self, value_expression):
|
||||
"""Sets the value_expression of this V1AuditAnnotation.
|
||||
|
||||
valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb. If multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list. Required. # noqa: E501
|
||||
|
||||
:param value_expression: The value_expression of this V1AuditAnnotation. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and value_expression is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `value_expression`, must not be `None`") # noqa: E501
|
||||
|
||||
self._value_expression = value_expression
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1AuditAnnotation):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1AuditAnnotation):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
|
@ -0,0 +1,207 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1AWSElasticBlockStoreVolumeSource(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'fs_type': 'str',
|
||||
'partition': 'int',
|
||||
'read_only': 'bool',
|
||||
'volume_id': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'fs_type': 'fsType',
|
||||
'partition': 'partition',
|
||||
'read_only': 'readOnly',
|
||||
'volume_id': 'volumeID'
|
||||
}
|
||||
|
||||
def __init__(self, fs_type=None, partition=None, read_only=None, volume_id=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1AWSElasticBlockStoreVolumeSource - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._fs_type = None
|
||||
self._partition = None
|
||||
self._read_only = None
|
||||
self._volume_id = None
|
||||
self.discriminator = None
|
||||
|
||||
if fs_type is not None:
|
||||
self.fs_type = fs_type
|
||||
if partition is not None:
|
||||
self.partition = partition
|
||||
if read_only is not None:
|
||||
self.read_only = read_only
|
||||
self.volume_id = volume_id
|
||||
|
||||
@property
|
||||
def fs_type(self):
|
||||
"""Gets the fs_type of this V1AWSElasticBlockStoreVolumeSource. # noqa: E501
|
||||
|
||||
fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore # noqa: E501
|
||||
|
||||
:return: The fs_type of this V1AWSElasticBlockStoreVolumeSource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._fs_type
|
||||
|
||||
@fs_type.setter
|
||||
def fs_type(self, fs_type):
|
||||
"""Sets the fs_type of this V1AWSElasticBlockStoreVolumeSource.
|
||||
|
||||
fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore # noqa: E501
|
||||
|
||||
:param fs_type: The fs_type of this V1AWSElasticBlockStoreVolumeSource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._fs_type = fs_type
|
||||
|
||||
@property
|
||||
def partition(self):
|
||||
"""Gets the partition of this V1AWSElasticBlockStoreVolumeSource. # noqa: E501
|
||||
|
||||
partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). # noqa: E501
|
||||
|
||||
:return: The partition of this V1AWSElasticBlockStoreVolumeSource. # noqa: E501
|
||||
:rtype: int
|
||||
"""
|
||||
return self._partition
|
||||
|
||||
@partition.setter
|
||||
def partition(self, partition):
|
||||
"""Sets the partition of this V1AWSElasticBlockStoreVolumeSource.
|
||||
|
||||
partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). # noqa: E501
|
||||
|
||||
:param partition: The partition of this V1AWSElasticBlockStoreVolumeSource. # noqa: E501
|
||||
:type: int
|
||||
"""
|
||||
|
||||
self._partition = partition
|
||||
|
||||
@property
|
||||
def read_only(self):
|
||||
"""Gets the read_only of this V1AWSElasticBlockStoreVolumeSource. # noqa: E501
|
||||
|
||||
readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore # noqa: E501
|
||||
|
||||
:return: The read_only of this V1AWSElasticBlockStoreVolumeSource. # noqa: E501
|
||||
:rtype: bool
|
||||
"""
|
||||
return self._read_only
|
||||
|
||||
@read_only.setter
|
||||
def read_only(self, read_only):
|
||||
"""Sets the read_only of this V1AWSElasticBlockStoreVolumeSource.
|
||||
|
||||
readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore # noqa: E501
|
||||
|
||||
:param read_only: The read_only of this V1AWSElasticBlockStoreVolumeSource. # noqa: E501
|
||||
:type: bool
|
||||
"""
|
||||
|
||||
self._read_only = read_only
|
||||
|
||||
@property
|
||||
def volume_id(self):
|
||||
"""Gets the volume_id of this V1AWSElasticBlockStoreVolumeSource. # noqa: E501
|
||||
|
||||
volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore # noqa: E501
|
||||
|
||||
:return: The volume_id of this V1AWSElasticBlockStoreVolumeSource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._volume_id
|
||||
|
||||
@volume_id.setter
|
||||
def volume_id(self, volume_id):
|
||||
"""Sets the volume_id of this V1AWSElasticBlockStoreVolumeSource.
|
||||
|
||||
volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore # noqa: E501
|
||||
|
||||
:param volume_id: The volume_id of this V1AWSElasticBlockStoreVolumeSource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and volume_id is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `volume_id`, must not be `None`") # noqa: E501
|
||||
|
||||
self._volume_id = volume_id
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1AWSElasticBlockStoreVolumeSource):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1AWSElasticBlockStoreVolumeSource):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
264
kubernetes/client/models/v1_azure_disk_volume_source.py
Normal file
264
kubernetes/client/models/v1_azure_disk_volume_source.py
Normal file
|
@ -0,0 +1,264 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1AzureDiskVolumeSource(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'caching_mode': 'str',
|
||||
'disk_name': 'str',
|
||||
'disk_uri': 'str',
|
||||
'fs_type': 'str',
|
||||
'kind': 'str',
|
||||
'read_only': 'bool'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'caching_mode': 'cachingMode',
|
||||
'disk_name': 'diskName',
|
||||
'disk_uri': 'diskURI',
|
||||
'fs_type': 'fsType',
|
||||
'kind': 'kind',
|
||||
'read_only': 'readOnly'
|
||||
}
|
||||
|
||||
def __init__(self, caching_mode=None, disk_name=None, disk_uri=None, fs_type=None, kind=None, read_only=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1AzureDiskVolumeSource - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._caching_mode = None
|
||||
self._disk_name = None
|
||||
self._disk_uri = None
|
||||
self._fs_type = None
|
||||
self._kind = None
|
||||
self._read_only = None
|
||||
self.discriminator = None
|
||||
|
||||
if caching_mode is not None:
|
||||
self.caching_mode = caching_mode
|
||||
self.disk_name = disk_name
|
||||
self.disk_uri = disk_uri
|
||||
if fs_type is not None:
|
||||
self.fs_type = fs_type
|
||||
if kind is not None:
|
||||
self.kind = kind
|
||||
if read_only is not None:
|
||||
self.read_only = read_only
|
||||
|
||||
@property
|
||||
def caching_mode(self):
|
||||
"""Gets the caching_mode of this V1AzureDiskVolumeSource. # noqa: E501
|
||||
|
||||
cachingMode is the Host Caching mode: None, Read Only, Read Write. # noqa: E501
|
||||
|
||||
:return: The caching_mode of this V1AzureDiskVolumeSource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._caching_mode
|
||||
|
||||
@caching_mode.setter
|
||||
def caching_mode(self, caching_mode):
|
||||
"""Sets the caching_mode of this V1AzureDiskVolumeSource.
|
||||
|
||||
cachingMode is the Host Caching mode: None, Read Only, Read Write. # noqa: E501
|
||||
|
||||
:param caching_mode: The caching_mode of this V1AzureDiskVolumeSource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._caching_mode = caching_mode
|
||||
|
||||
@property
|
||||
def disk_name(self):
|
||||
"""Gets the disk_name of this V1AzureDiskVolumeSource. # noqa: E501
|
||||
|
||||
diskName is the Name of the data disk in the blob storage # noqa: E501
|
||||
|
||||
:return: The disk_name of this V1AzureDiskVolumeSource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._disk_name
|
||||
|
||||
@disk_name.setter
|
||||
def disk_name(self, disk_name):
|
||||
"""Sets the disk_name of this V1AzureDiskVolumeSource.
|
||||
|
||||
diskName is the Name of the data disk in the blob storage # noqa: E501
|
||||
|
||||
:param disk_name: The disk_name of this V1AzureDiskVolumeSource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and disk_name is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `disk_name`, must not be `None`") # noqa: E501
|
||||
|
||||
self._disk_name = disk_name
|
||||
|
||||
@property
|
||||
def disk_uri(self):
|
||||
"""Gets the disk_uri of this V1AzureDiskVolumeSource. # noqa: E501
|
||||
|
||||
diskURI is the URI of data disk in the blob storage # noqa: E501
|
||||
|
||||
:return: The disk_uri of this V1AzureDiskVolumeSource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._disk_uri
|
||||
|
||||
@disk_uri.setter
|
||||
def disk_uri(self, disk_uri):
|
||||
"""Sets the disk_uri of this V1AzureDiskVolumeSource.
|
||||
|
||||
diskURI is the URI of data disk in the blob storage # noqa: E501
|
||||
|
||||
:param disk_uri: The disk_uri of this V1AzureDiskVolumeSource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and disk_uri is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `disk_uri`, must not be `None`") # noqa: E501
|
||||
|
||||
self._disk_uri = disk_uri
|
||||
|
||||
@property
|
||||
def fs_type(self):
|
||||
"""Gets the fs_type of this V1AzureDiskVolumeSource. # noqa: E501
|
||||
|
||||
fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. # noqa: E501
|
||||
|
||||
:return: The fs_type of this V1AzureDiskVolumeSource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._fs_type
|
||||
|
||||
@fs_type.setter
|
||||
def fs_type(self, fs_type):
|
||||
"""Sets the fs_type of this V1AzureDiskVolumeSource.
|
||||
|
||||
fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. # noqa: E501
|
||||
|
||||
:param fs_type: The fs_type of this V1AzureDiskVolumeSource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._fs_type = fs_type
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this V1AzureDiskVolumeSource. # noqa: E501
|
||||
|
||||
kind expected values are 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 # noqa: E501
|
||||
|
||||
:return: The kind of this V1AzureDiskVolumeSource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets the kind of this V1AzureDiskVolumeSource.
|
||||
|
||||
kind expected values are 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 # noqa: E501
|
||||
|
||||
:param kind: The kind of this V1AzureDiskVolumeSource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def read_only(self):
|
||||
"""Gets the read_only of this V1AzureDiskVolumeSource. # noqa: E501
|
||||
|
||||
readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501
|
||||
|
||||
:return: The read_only of this V1AzureDiskVolumeSource. # noqa: E501
|
||||
:rtype: bool
|
||||
"""
|
||||
return self._read_only
|
||||
|
||||
@read_only.setter
|
||||
def read_only(self, read_only):
|
||||
"""Sets the read_only of this V1AzureDiskVolumeSource.
|
||||
|
||||
readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501
|
||||
|
||||
:param read_only: The read_only of this V1AzureDiskVolumeSource. # noqa: E501
|
||||
:type: bool
|
||||
"""
|
||||
|
||||
self._read_only = read_only
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1AzureDiskVolumeSource):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1AzureDiskVolumeSource):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
|
@ -0,0 +1,208 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1AzureFilePersistentVolumeSource(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'read_only': 'bool',
|
||||
'secret_name': 'str',
|
||||
'secret_namespace': 'str',
|
||||
'share_name': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'read_only': 'readOnly',
|
||||
'secret_name': 'secretName',
|
||||
'secret_namespace': 'secretNamespace',
|
||||
'share_name': 'shareName'
|
||||
}
|
||||
|
||||
def __init__(self, read_only=None, secret_name=None, secret_namespace=None, share_name=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1AzureFilePersistentVolumeSource - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._read_only = None
|
||||
self._secret_name = None
|
||||
self._secret_namespace = None
|
||||
self._share_name = None
|
||||
self.discriminator = None
|
||||
|
||||
if read_only is not None:
|
||||
self.read_only = read_only
|
||||
self.secret_name = secret_name
|
||||
if secret_namespace is not None:
|
||||
self.secret_namespace = secret_namespace
|
||||
self.share_name = share_name
|
||||
|
||||
@property
|
||||
def read_only(self):
|
||||
"""Gets the read_only of this V1AzureFilePersistentVolumeSource. # noqa: E501
|
||||
|
||||
readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501
|
||||
|
||||
:return: The read_only of this V1AzureFilePersistentVolumeSource. # noqa: E501
|
||||
:rtype: bool
|
||||
"""
|
||||
return self._read_only
|
||||
|
||||
@read_only.setter
|
||||
def read_only(self, read_only):
|
||||
"""Sets the read_only of this V1AzureFilePersistentVolumeSource.
|
||||
|
||||
readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501
|
||||
|
||||
:param read_only: The read_only of this V1AzureFilePersistentVolumeSource. # noqa: E501
|
||||
:type: bool
|
||||
"""
|
||||
|
||||
self._read_only = read_only
|
||||
|
||||
@property
|
||||
def secret_name(self):
|
||||
"""Gets the secret_name of this V1AzureFilePersistentVolumeSource. # noqa: E501
|
||||
|
||||
secretName is the name of secret that contains Azure Storage Account Name and Key # noqa: E501
|
||||
|
||||
:return: The secret_name of this V1AzureFilePersistentVolumeSource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._secret_name
|
||||
|
||||
@secret_name.setter
|
||||
def secret_name(self, secret_name):
|
||||
"""Sets the secret_name of this V1AzureFilePersistentVolumeSource.
|
||||
|
||||
secretName is the name of secret that contains Azure Storage Account Name and Key # noqa: E501
|
||||
|
||||
:param secret_name: The secret_name of this V1AzureFilePersistentVolumeSource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and secret_name is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `secret_name`, must not be `None`") # noqa: E501
|
||||
|
||||
self._secret_name = secret_name
|
||||
|
||||
@property
|
||||
def secret_namespace(self):
|
||||
"""Gets the secret_namespace of this V1AzureFilePersistentVolumeSource. # noqa: E501
|
||||
|
||||
secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod # noqa: E501
|
||||
|
||||
:return: The secret_namespace of this V1AzureFilePersistentVolumeSource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._secret_namespace
|
||||
|
||||
@secret_namespace.setter
|
||||
def secret_namespace(self, secret_namespace):
|
||||
"""Sets the secret_namespace of this V1AzureFilePersistentVolumeSource.
|
||||
|
||||
secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod # noqa: E501
|
||||
|
||||
:param secret_namespace: The secret_namespace of this V1AzureFilePersistentVolumeSource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._secret_namespace = secret_namespace
|
||||
|
||||
@property
|
||||
def share_name(self):
|
||||
"""Gets the share_name of this V1AzureFilePersistentVolumeSource. # noqa: E501
|
||||
|
||||
shareName is the azure Share Name # noqa: E501
|
||||
|
||||
:return: The share_name of this V1AzureFilePersistentVolumeSource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._share_name
|
||||
|
||||
@share_name.setter
|
||||
def share_name(self, share_name):
|
||||
"""Sets the share_name of this V1AzureFilePersistentVolumeSource.
|
||||
|
||||
shareName is the azure Share Name # noqa: E501
|
||||
|
||||
:param share_name: The share_name of this V1AzureFilePersistentVolumeSource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and share_name is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `share_name`, must not be `None`") # noqa: E501
|
||||
|
||||
self._share_name = share_name
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1AzureFilePersistentVolumeSource):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1AzureFilePersistentVolumeSource):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
180
kubernetes/client/models/v1_azure_file_volume_source.py
Normal file
180
kubernetes/client/models/v1_azure_file_volume_source.py
Normal file
|
@ -0,0 +1,180 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1AzureFileVolumeSource(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'read_only': 'bool',
|
||||
'secret_name': 'str',
|
||||
'share_name': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'read_only': 'readOnly',
|
||||
'secret_name': 'secretName',
|
||||
'share_name': 'shareName'
|
||||
}
|
||||
|
||||
def __init__(self, read_only=None, secret_name=None, share_name=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1AzureFileVolumeSource - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._read_only = None
|
||||
self._secret_name = None
|
||||
self._share_name = None
|
||||
self.discriminator = None
|
||||
|
||||
if read_only is not None:
|
||||
self.read_only = read_only
|
||||
self.secret_name = secret_name
|
||||
self.share_name = share_name
|
||||
|
||||
@property
|
||||
def read_only(self):
|
||||
"""Gets the read_only of this V1AzureFileVolumeSource. # noqa: E501
|
||||
|
||||
readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501
|
||||
|
||||
:return: The read_only of this V1AzureFileVolumeSource. # noqa: E501
|
||||
:rtype: bool
|
||||
"""
|
||||
return self._read_only
|
||||
|
||||
@read_only.setter
|
||||
def read_only(self, read_only):
|
||||
"""Sets the read_only of this V1AzureFileVolumeSource.
|
||||
|
||||
readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501
|
||||
|
||||
:param read_only: The read_only of this V1AzureFileVolumeSource. # noqa: E501
|
||||
:type: bool
|
||||
"""
|
||||
|
||||
self._read_only = read_only
|
||||
|
||||
@property
|
||||
def secret_name(self):
|
||||
"""Gets the secret_name of this V1AzureFileVolumeSource. # noqa: E501
|
||||
|
||||
secretName is the name of secret that contains Azure Storage Account Name and Key # noqa: E501
|
||||
|
||||
:return: The secret_name of this V1AzureFileVolumeSource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._secret_name
|
||||
|
||||
@secret_name.setter
|
||||
def secret_name(self, secret_name):
|
||||
"""Sets the secret_name of this V1AzureFileVolumeSource.
|
||||
|
||||
secretName is the name of secret that contains Azure Storage Account Name and Key # noqa: E501
|
||||
|
||||
:param secret_name: The secret_name of this V1AzureFileVolumeSource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and secret_name is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `secret_name`, must not be `None`") # noqa: E501
|
||||
|
||||
self._secret_name = secret_name
|
||||
|
||||
@property
|
||||
def share_name(self):
|
||||
"""Gets the share_name of this V1AzureFileVolumeSource. # noqa: E501
|
||||
|
||||
shareName is the azure share Name # noqa: E501
|
||||
|
||||
:return: The share_name of this V1AzureFileVolumeSource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._share_name
|
||||
|
||||
@share_name.setter
|
||||
def share_name(self, share_name):
|
||||
"""Sets the share_name of this V1AzureFileVolumeSource.
|
||||
|
||||
shareName is the azure share Name # noqa: E501
|
||||
|
||||
:param share_name: The share_name of this V1AzureFileVolumeSource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and share_name is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `share_name`, must not be `None`") # noqa: E501
|
||||
|
||||
self._share_name = share_name
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1AzureFileVolumeSource):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1AzureFileVolumeSource):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
203
kubernetes/client/models/v1_binding.py
Normal file
203
kubernetes/client/models/v1_binding.py
Normal file
|
@ -0,0 +1,203 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1Binding(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'api_version': 'str',
|
||||
'kind': 'str',
|
||||
'metadata': 'V1ObjectMeta',
|
||||
'target': 'V1ObjectReference'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'api_version': 'apiVersion',
|
||||
'kind': 'kind',
|
||||
'metadata': 'metadata',
|
||||
'target': 'target'
|
||||
}
|
||||
|
||||
def __init__(self, api_version=None, kind=None, metadata=None, target=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1Binding - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._api_version = None
|
||||
self._kind = None
|
||||
self._metadata = None
|
||||
self._target = None
|
||||
self.discriminator = None
|
||||
|
||||
if api_version is not None:
|
||||
self.api_version = api_version
|
||||
if kind is not None:
|
||||
self.kind = kind
|
||||
if metadata is not None:
|
||||
self.metadata = metadata
|
||||
self.target = target
|
||||
|
||||
@property
|
||||
def api_version(self):
|
||||
"""Gets the api_version of this V1Binding. # noqa: E501
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:return: The api_version of this V1Binding. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._api_version
|
||||
|
||||
@api_version.setter
|
||||
def api_version(self, api_version):
|
||||
"""Sets 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/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:param api_version: The api_version of this V1Binding. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._api_version = api_version
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this V1Binding. # noqa: E501
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:return: The kind of this V1Binding. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets 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/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:param kind: The kind of this V1Binding. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def metadata(self):
|
||||
"""Gets the metadata of this V1Binding. # noqa: E501
|
||||
|
||||
|
||||
:return: The metadata of this V1Binding. # noqa: E501
|
||||
:rtype: V1ObjectMeta
|
||||
"""
|
||||
return self._metadata
|
||||
|
||||
@metadata.setter
|
||||
def metadata(self, metadata):
|
||||
"""Sets the metadata of this V1Binding.
|
||||
|
||||
|
||||
:param metadata: The metadata of this V1Binding. # noqa: E501
|
||||
:type: V1ObjectMeta
|
||||
"""
|
||||
|
||||
self._metadata = metadata
|
||||
|
||||
@property
|
||||
def target(self):
|
||||
"""Gets the target of this V1Binding. # noqa: E501
|
||||
|
||||
|
||||
:return: The target of this V1Binding. # noqa: E501
|
||||
:rtype: V1ObjectReference
|
||||
"""
|
||||
return self._target
|
||||
|
||||
@target.setter
|
||||
def target(self, target):
|
||||
"""Sets the target of this V1Binding.
|
||||
|
||||
|
||||
:param target: The target of this V1Binding. # noqa: E501
|
||||
:type: V1ObjectReference
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and target is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `target`, must not be `None`") # noqa: E501
|
||||
|
||||
self._target = target
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1Binding):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1Binding):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
206
kubernetes/client/models/v1_bound_object_reference.py
Normal file
206
kubernetes/client/models/v1_bound_object_reference.py
Normal file
|
@ -0,0 +1,206 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1BoundObjectReference(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'api_version': 'str',
|
||||
'kind': 'str',
|
||||
'name': 'str',
|
||||
'uid': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'api_version': 'apiVersion',
|
||||
'kind': 'kind',
|
||||
'name': 'name',
|
||||
'uid': 'uid'
|
||||
}
|
||||
|
||||
def __init__(self, api_version=None, kind=None, name=None, uid=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1BoundObjectReference - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._api_version = None
|
||||
self._kind = None
|
||||
self._name = None
|
||||
self._uid = None
|
||||
self.discriminator = None
|
||||
|
||||
if api_version is not None:
|
||||
self.api_version = api_version
|
||||
if kind is not None:
|
||||
self.kind = kind
|
||||
if name is not None:
|
||||
self.name = name
|
||||
if uid is not None:
|
||||
self.uid = uid
|
||||
|
||||
@property
|
||||
def api_version(self):
|
||||
"""Gets the api_version of this V1BoundObjectReference. # noqa: E501
|
||||
|
||||
API version of the referent. # noqa: E501
|
||||
|
||||
:return: The api_version of this V1BoundObjectReference. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._api_version
|
||||
|
||||
@api_version.setter
|
||||
def api_version(self, api_version):
|
||||
"""Sets the api_version of this V1BoundObjectReference.
|
||||
|
||||
API version of the referent. # noqa: E501
|
||||
|
||||
:param api_version: The api_version of this V1BoundObjectReference. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._api_version = api_version
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this V1BoundObjectReference. # noqa: E501
|
||||
|
||||
Kind of the referent. Valid kinds are 'Pod' and 'Secret'. # noqa: E501
|
||||
|
||||
:return: The kind of this V1BoundObjectReference. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets the kind of this V1BoundObjectReference.
|
||||
|
||||
Kind of the referent. Valid kinds are 'Pod' and 'Secret'. # noqa: E501
|
||||
|
||||
:param kind: The kind of this V1BoundObjectReference. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""Gets the name of this V1BoundObjectReference. # noqa: E501
|
||||
|
||||
Name of the referent. # noqa: E501
|
||||
|
||||
:return: The name of this V1BoundObjectReference. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._name
|
||||
|
||||
@name.setter
|
||||
def name(self, name):
|
||||
"""Sets the name of this V1BoundObjectReference.
|
||||
|
||||
Name of the referent. # noqa: E501
|
||||
|
||||
:param name: The name of this V1BoundObjectReference. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._name = name
|
||||
|
||||
@property
|
||||
def uid(self):
|
||||
"""Gets the uid of this V1BoundObjectReference. # noqa: E501
|
||||
|
||||
UID of the referent. # noqa: E501
|
||||
|
||||
:return: The uid of this V1BoundObjectReference. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._uid
|
||||
|
||||
@uid.setter
|
||||
def uid(self, uid):
|
||||
"""Sets the uid of this V1BoundObjectReference.
|
||||
|
||||
UID of the referent. # noqa: E501
|
||||
|
||||
:param uid: The uid of this V1BoundObjectReference. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._uid = uid
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1BoundObjectReference):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1BoundObjectReference):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
150
kubernetes/client/models/v1_capabilities.py
Normal file
150
kubernetes/client/models/v1_capabilities.py
Normal file
|
@ -0,0 +1,150 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1Capabilities(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'add': 'list[str]',
|
||||
'drop': 'list[str]'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'add': 'add',
|
||||
'drop': 'drop'
|
||||
}
|
||||
|
||||
def __init__(self, add=None, drop=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1Capabilities - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._add = None
|
||||
self._drop = None
|
||||
self.discriminator = None
|
||||
|
||||
if add is not None:
|
||||
self.add = add
|
||||
if drop is not None:
|
||||
self.drop = drop
|
||||
|
||||
@property
|
||||
def add(self):
|
||||
"""Gets the add of this V1Capabilities. # noqa: E501
|
||||
|
||||
Added capabilities # noqa: E501
|
||||
|
||||
:return: The add of this V1Capabilities. # noqa: E501
|
||||
:rtype: list[str]
|
||||
"""
|
||||
return self._add
|
||||
|
||||
@add.setter
|
||||
def add(self, add):
|
||||
"""Sets the add of this V1Capabilities.
|
||||
|
||||
Added capabilities # noqa: E501
|
||||
|
||||
:param add: The add of this V1Capabilities. # noqa: E501
|
||||
:type: list[str]
|
||||
"""
|
||||
|
||||
self._add = add
|
||||
|
||||
@property
|
||||
def drop(self):
|
||||
"""Gets the drop of this V1Capabilities. # noqa: E501
|
||||
|
||||
Removed capabilities # noqa: E501
|
||||
|
||||
:return: The drop of this V1Capabilities. # noqa: E501
|
||||
:rtype: list[str]
|
||||
"""
|
||||
return self._drop
|
||||
|
||||
@drop.setter
|
||||
def drop(self, drop):
|
||||
"""Sets the drop of this V1Capabilities.
|
||||
|
||||
Removed capabilities # noqa: E501
|
||||
|
||||
:param drop: The drop of this V1Capabilities. # noqa: E501
|
||||
:type: list[str]
|
||||
"""
|
||||
|
||||
self._drop = drop
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1Capabilities):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1Capabilities):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
261
kubernetes/client/models/v1_ceph_fs_persistent_volume_source.py
Normal file
261
kubernetes/client/models/v1_ceph_fs_persistent_volume_source.py
Normal file
|
@ -0,0 +1,261 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1CephFSPersistentVolumeSource(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'monitors': 'list[str]',
|
||||
'path': 'str',
|
||||
'read_only': 'bool',
|
||||
'secret_file': 'str',
|
||||
'secret_ref': 'V1SecretReference',
|
||||
'user': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'monitors': 'monitors',
|
||||
'path': 'path',
|
||||
'read_only': 'readOnly',
|
||||
'secret_file': 'secretFile',
|
||||
'secret_ref': 'secretRef',
|
||||
'user': 'user'
|
||||
}
|
||||
|
||||
def __init__(self, monitors=None, path=None, read_only=None, secret_file=None, secret_ref=None, user=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1CephFSPersistentVolumeSource - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._monitors = None
|
||||
self._path = None
|
||||
self._read_only = None
|
||||
self._secret_file = None
|
||||
self._secret_ref = None
|
||||
self._user = None
|
||||
self.discriminator = None
|
||||
|
||||
self.monitors = monitors
|
||||
if path is not None:
|
||||
self.path = path
|
||||
if read_only is not None:
|
||||
self.read_only = read_only
|
||||
if secret_file is not None:
|
||||
self.secret_file = secret_file
|
||||
if secret_ref is not None:
|
||||
self.secret_ref = secret_ref
|
||||
if user is not None:
|
||||
self.user = user
|
||||
|
||||
@property
|
||||
def monitors(self):
|
||||
"""Gets the monitors of this V1CephFSPersistentVolumeSource. # noqa: E501
|
||||
|
||||
monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it # noqa: E501
|
||||
|
||||
:return: The monitors of this V1CephFSPersistentVolumeSource. # noqa: E501
|
||||
:rtype: list[str]
|
||||
"""
|
||||
return self._monitors
|
||||
|
||||
@monitors.setter
|
||||
def monitors(self, monitors):
|
||||
"""Sets the monitors of this V1CephFSPersistentVolumeSource.
|
||||
|
||||
monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it # noqa: E501
|
||||
|
||||
:param monitors: The monitors of this V1CephFSPersistentVolumeSource. # noqa: E501
|
||||
:type: list[str]
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and monitors is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `monitors`, must not be `None`") # noqa: E501
|
||||
|
||||
self._monitors = monitors
|
||||
|
||||
@property
|
||||
def path(self):
|
||||
"""Gets the path of this V1CephFSPersistentVolumeSource. # noqa: E501
|
||||
|
||||
path is Optional: Used as the mounted root, rather than the full Ceph tree, default is / # noqa: E501
|
||||
|
||||
:return: The path of this V1CephFSPersistentVolumeSource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._path
|
||||
|
||||
@path.setter
|
||||
def path(self, path):
|
||||
"""Sets the path of this V1CephFSPersistentVolumeSource.
|
||||
|
||||
path is Optional: Used as the mounted root, rather than the full Ceph tree, default is / # noqa: E501
|
||||
|
||||
:param path: The path of this V1CephFSPersistentVolumeSource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._path = path
|
||||
|
||||
@property
|
||||
def read_only(self):
|
||||
"""Gets the read_only of this V1CephFSPersistentVolumeSource. # noqa: E501
|
||||
|
||||
readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it # noqa: E501
|
||||
|
||||
:return: The read_only of this V1CephFSPersistentVolumeSource. # noqa: E501
|
||||
:rtype: bool
|
||||
"""
|
||||
return self._read_only
|
||||
|
||||
@read_only.setter
|
||||
def read_only(self, read_only):
|
||||
"""Sets the read_only of this V1CephFSPersistentVolumeSource.
|
||||
|
||||
readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it # noqa: E501
|
||||
|
||||
:param read_only: The read_only of this V1CephFSPersistentVolumeSource. # noqa: E501
|
||||
:type: bool
|
||||
"""
|
||||
|
||||
self._read_only = read_only
|
||||
|
||||
@property
|
||||
def secret_file(self):
|
||||
"""Gets the secret_file of this V1CephFSPersistentVolumeSource. # noqa: E501
|
||||
|
||||
secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it # noqa: E501
|
||||
|
||||
:return: The secret_file of this V1CephFSPersistentVolumeSource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._secret_file
|
||||
|
||||
@secret_file.setter
|
||||
def secret_file(self, secret_file):
|
||||
"""Sets the secret_file of this V1CephFSPersistentVolumeSource.
|
||||
|
||||
secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it # noqa: E501
|
||||
|
||||
:param secret_file: The secret_file of this V1CephFSPersistentVolumeSource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._secret_file = secret_file
|
||||
|
||||
@property
|
||||
def secret_ref(self):
|
||||
"""Gets the secret_ref of this V1CephFSPersistentVolumeSource. # noqa: E501
|
||||
|
||||
|
||||
:return: The secret_ref of this V1CephFSPersistentVolumeSource. # noqa: E501
|
||||
:rtype: V1SecretReference
|
||||
"""
|
||||
return self._secret_ref
|
||||
|
||||
@secret_ref.setter
|
||||
def secret_ref(self, secret_ref):
|
||||
"""Sets the secret_ref of this V1CephFSPersistentVolumeSource.
|
||||
|
||||
|
||||
:param secret_ref: The secret_ref of this V1CephFSPersistentVolumeSource. # noqa: E501
|
||||
:type: V1SecretReference
|
||||
"""
|
||||
|
||||
self._secret_ref = secret_ref
|
||||
|
||||
@property
|
||||
def user(self):
|
||||
"""Gets the user of this V1CephFSPersistentVolumeSource. # noqa: E501
|
||||
|
||||
user is Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it # noqa: E501
|
||||
|
||||
:return: The user of this V1CephFSPersistentVolumeSource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._user
|
||||
|
||||
@user.setter
|
||||
def user(self, user):
|
||||
"""Sets the user of this V1CephFSPersistentVolumeSource.
|
||||
|
||||
user is Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it # noqa: E501
|
||||
|
||||
:param user: The user of this V1CephFSPersistentVolumeSource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._user = user
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1CephFSPersistentVolumeSource):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1CephFSPersistentVolumeSource):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
261
kubernetes/client/models/v1_ceph_fs_volume_source.py
Normal file
261
kubernetes/client/models/v1_ceph_fs_volume_source.py
Normal file
|
@ -0,0 +1,261 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1CephFSVolumeSource(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'monitors': 'list[str]',
|
||||
'path': 'str',
|
||||
'read_only': 'bool',
|
||||
'secret_file': 'str',
|
||||
'secret_ref': 'V1LocalObjectReference',
|
||||
'user': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'monitors': 'monitors',
|
||||
'path': 'path',
|
||||
'read_only': 'readOnly',
|
||||
'secret_file': 'secretFile',
|
||||
'secret_ref': 'secretRef',
|
||||
'user': 'user'
|
||||
}
|
||||
|
||||
def __init__(self, monitors=None, path=None, read_only=None, secret_file=None, secret_ref=None, user=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1CephFSVolumeSource - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._monitors = None
|
||||
self._path = None
|
||||
self._read_only = None
|
||||
self._secret_file = None
|
||||
self._secret_ref = None
|
||||
self._user = None
|
||||
self.discriminator = None
|
||||
|
||||
self.monitors = monitors
|
||||
if path is not None:
|
||||
self.path = path
|
||||
if read_only is not None:
|
||||
self.read_only = read_only
|
||||
if secret_file is not None:
|
||||
self.secret_file = secret_file
|
||||
if secret_ref is not None:
|
||||
self.secret_ref = secret_ref
|
||||
if user is not None:
|
||||
self.user = user
|
||||
|
||||
@property
|
||||
def monitors(self):
|
||||
"""Gets the monitors of this V1CephFSVolumeSource. # noqa: E501
|
||||
|
||||
monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it # noqa: E501
|
||||
|
||||
:return: The monitors of this V1CephFSVolumeSource. # noqa: E501
|
||||
:rtype: list[str]
|
||||
"""
|
||||
return self._monitors
|
||||
|
||||
@monitors.setter
|
||||
def monitors(self, monitors):
|
||||
"""Sets the monitors of this V1CephFSVolumeSource.
|
||||
|
||||
monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it # noqa: E501
|
||||
|
||||
:param monitors: The monitors of this V1CephFSVolumeSource. # noqa: E501
|
||||
:type: list[str]
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and monitors is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `monitors`, must not be `None`") # noqa: E501
|
||||
|
||||
self._monitors = monitors
|
||||
|
||||
@property
|
||||
def path(self):
|
||||
"""Gets the path of this V1CephFSVolumeSource. # noqa: E501
|
||||
|
||||
path is Optional: Used as the mounted root, rather than the full Ceph tree, default is / # noqa: E501
|
||||
|
||||
:return: The path of this V1CephFSVolumeSource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._path
|
||||
|
||||
@path.setter
|
||||
def path(self, path):
|
||||
"""Sets the path of this V1CephFSVolumeSource.
|
||||
|
||||
path is Optional: Used as the mounted root, rather than the full Ceph tree, default is / # noqa: E501
|
||||
|
||||
:param path: The path of this V1CephFSVolumeSource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._path = path
|
||||
|
||||
@property
|
||||
def read_only(self):
|
||||
"""Gets the read_only of this V1CephFSVolumeSource. # noqa: E501
|
||||
|
||||
readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it # noqa: E501
|
||||
|
||||
:return: The read_only of this V1CephFSVolumeSource. # noqa: E501
|
||||
:rtype: bool
|
||||
"""
|
||||
return self._read_only
|
||||
|
||||
@read_only.setter
|
||||
def read_only(self, read_only):
|
||||
"""Sets the read_only of this V1CephFSVolumeSource.
|
||||
|
||||
readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it # noqa: E501
|
||||
|
||||
:param read_only: The read_only of this V1CephFSVolumeSource. # noqa: E501
|
||||
:type: bool
|
||||
"""
|
||||
|
||||
self._read_only = read_only
|
||||
|
||||
@property
|
||||
def secret_file(self):
|
||||
"""Gets the secret_file of this V1CephFSVolumeSource. # noqa: E501
|
||||
|
||||
secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it # noqa: E501
|
||||
|
||||
:return: The secret_file of this V1CephFSVolumeSource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._secret_file
|
||||
|
||||
@secret_file.setter
|
||||
def secret_file(self, secret_file):
|
||||
"""Sets the secret_file of this V1CephFSVolumeSource.
|
||||
|
||||
secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it # noqa: E501
|
||||
|
||||
:param secret_file: The secret_file of this V1CephFSVolumeSource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._secret_file = secret_file
|
||||
|
||||
@property
|
||||
def secret_ref(self):
|
||||
"""Gets the secret_ref of this V1CephFSVolumeSource. # noqa: E501
|
||||
|
||||
|
||||
:return: The secret_ref of this V1CephFSVolumeSource. # noqa: E501
|
||||
:rtype: V1LocalObjectReference
|
||||
"""
|
||||
return self._secret_ref
|
||||
|
||||
@secret_ref.setter
|
||||
def secret_ref(self, secret_ref):
|
||||
"""Sets the secret_ref of this V1CephFSVolumeSource.
|
||||
|
||||
|
||||
:param secret_ref: The secret_ref of this V1CephFSVolumeSource. # noqa: E501
|
||||
:type: V1LocalObjectReference
|
||||
"""
|
||||
|
||||
self._secret_ref = secret_ref
|
||||
|
||||
@property
|
||||
def user(self):
|
||||
"""Gets the user of this V1CephFSVolumeSource. # noqa: E501
|
||||
|
||||
user is optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it # noqa: E501
|
||||
|
||||
:return: The user of this V1CephFSVolumeSource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._user
|
||||
|
||||
@user.setter
|
||||
def user(self, user):
|
||||
"""Sets the user of this V1CephFSVolumeSource.
|
||||
|
||||
user is optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it # noqa: E501
|
||||
|
||||
:param user: The user of this V1CephFSVolumeSource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._user = user
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1CephFSVolumeSource):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1CephFSVolumeSource):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
229
kubernetes/client/models/v1_certificate_signing_request.py
Normal file
229
kubernetes/client/models/v1_certificate_signing_request.py
Normal file
|
@ -0,0 +1,229 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1CertificateSigningRequest(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'api_version': 'str',
|
||||
'kind': 'str',
|
||||
'metadata': 'V1ObjectMeta',
|
||||
'spec': 'V1CertificateSigningRequestSpec',
|
||||
'status': 'V1CertificateSigningRequestStatus'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'api_version': 'apiVersion',
|
||||
'kind': 'kind',
|
||||
'metadata': 'metadata',
|
||||
'spec': 'spec',
|
||||
'status': 'status'
|
||||
}
|
||||
|
||||
def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1CertificateSigningRequest - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._api_version = None
|
||||
self._kind = None
|
||||
self._metadata = None
|
||||
self._spec = None
|
||||
self._status = None
|
||||
self.discriminator = None
|
||||
|
||||
if api_version is not None:
|
||||
self.api_version = api_version
|
||||
if kind is not None:
|
||||
self.kind = kind
|
||||
if metadata is not None:
|
||||
self.metadata = metadata
|
||||
self.spec = spec
|
||||
if status is not None:
|
||||
self.status = status
|
||||
|
||||
@property
|
||||
def api_version(self):
|
||||
"""Gets the api_version of this V1CertificateSigningRequest. # noqa: E501
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:return: The api_version of this V1CertificateSigningRequest. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._api_version
|
||||
|
||||
@api_version.setter
|
||||
def api_version(self, api_version):
|
||||
"""Sets the api_version of this V1CertificateSigningRequest.
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:param api_version: The api_version of this V1CertificateSigningRequest. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._api_version = api_version
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this V1CertificateSigningRequest. # noqa: E501
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:return: The kind of this V1CertificateSigningRequest. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets the kind of this V1CertificateSigningRequest.
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:param kind: The kind of this V1CertificateSigningRequest. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def metadata(self):
|
||||
"""Gets the metadata of this V1CertificateSigningRequest. # noqa: E501
|
||||
|
||||
|
||||
:return: The metadata of this V1CertificateSigningRequest. # noqa: E501
|
||||
:rtype: V1ObjectMeta
|
||||
"""
|
||||
return self._metadata
|
||||
|
||||
@metadata.setter
|
||||
def metadata(self, metadata):
|
||||
"""Sets the metadata of this V1CertificateSigningRequest.
|
||||
|
||||
|
||||
:param metadata: The metadata of this V1CertificateSigningRequest. # noqa: E501
|
||||
:type: V1ObjectMeta
|
||||
"""
|
||||
|
||||
self._metadata = metadata
|
||||
|
||||
@property
|
||||
def spec(self):
|
||||
"""Gets the spec of this V1CertificateSigningRequest. # noqa: E501
|
||||
|
||||
|
||||
:return: The spec of this V1CertificateSigningRequest. # noqa: E501
|
||||
:rtype: V1CertificateSigningRequestSpec
|
||||
"""
|
||||
return self._spec
|
||||
|
||||
@spec.setter
|
||||
def spec(self, spec):
|
||||
"""Sets the spec of this V1CertificateSigningRequest.
|
||||
|
||||
|
||||
:param spec: The spec of this V1CertificateSigningRequest. # noqa: E501
|
||||
:type: V1CertificateSigningRequestSpec
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501
|
||||
|
||||
self._spec = spec
|
||||
|
||||
@property
|
||||
def status(self):
|
||||
"""Gets the status of this V1CertificateSigningRequest. # noqa: E501
|
||||
|
||||
|
||||
:return: The status of this V1CertificateSigningRequest. # noqa: E501
|
||||
:rtype: V1CertificateSigningRequestStatus
|
||||
"""
|
||||
return self._status
|
||||
|
||||
@status.setter
|
||||
def status(self, status):
|
||||
"""Sets the status of this V1CertificateSigningRequest.
|
||||
|
||||
|
||||
:param status: The status of this V1CertificateSigningRequest. # noqa: E501
|
||||
:type: V1CertificateSigningRequestStatus
|
||||
"""
|
||||
|
||||
self._status = status
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1CertificateSigningRequest):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1CertificateSigningRequest):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
|
@ -0,0 +1,264 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1CertificateSigningRequestCondition(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'last_transition_time': 'datetime',
|
||||
'last_update_time': 'datetime',
|
||||
'message': 'str',
|
||||
'reason': 'str',
|
||||
'status': 'str',
|
||||
'type': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'last_transition_time': 'lastTransitionTime',
|
||||
'last_update_time': 'lastUpdateTime',
|
||||
'message': 'message',
|
||||
'reason': 'reason',
|
||||
'status': 'status',
|
||||
'type': 'type'
|
||||
}
|
||||
|
||||
def __init__(self, last_transition_time=None, last_update_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1CertificateSigningRequestCondition - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._last_transition_time = None
|
||||
self._last_update_time = None
|
||||
self._message = None
|
||||
self._reason = None
|
||||
self._status = None
|
||||
self._type = None
|
||||
self.discriminator = None
|
||||
|
||||
if last_transition_time is not None:
|
||||
self.last_transition_time = last_transition_time
|
||||
if last_update_time is not None:
|
||||
self.last_update_time = last_update_time
|
||||
if message is not None:
|
||||
self.message = message
|
||||
if reason is not None:
|
||||
self.reason = reason
|
||||
self.status = status
|
||||
self.type = type
|
||||
|
||||
@property
|
||||
def last_transition_time(self):
|
||||
"""Gets the last_transition_time of this V1CertificateSigningRequestCondition. # noqa: E501
|
||||
|
||||
lastTransitionTime is the time the condition last transitioned from one status to another. If unset, when a new condition type is added or an existing condition's status is changed, the server defaults this to the current time. # noqa: E501
|
||||
|
||||
:return: The last_transition_time of this V1CertificateSigningRequestCondition. # noqa: E501
|
||||
:rtype: datetime
|
||||
"""
|
||||
return self._last_transition_time
|
||||
|
||||
@last_transition_time.setter
|
||||
def last_transition_time(self, last_transition_time):
|
||||
"""Sets the last_transition_time of this V1CertificateSigningRequestCondition.
|
||||
|
||||
lastTransitionTime is the time the condition last transitioned from one status to another. If unset, when a new condition type is added or an existing condition's status is changed, the server defaults this to the current time. # noqa: E501
|
||||
|
||||
:param last_transition_time: The last_transition_time of this V1CertificateSigningRequestCondition. # noqa: E501
|
||||
:type: datetime
|
||||
"""
|
||||
|
||||
self._last_transition_time = last_transition_time
|
||||
|
||||
@property
|
||||
def last_update_time(self):
|
||||
"""Gets the last_update_time of this V1CertificateSigningRequestCondition. # noqa: E501
|
||||
|
||||
lastUpdateTime is the time of the last update to this condition # noqa: E501
|
||||
|
||||
:return: The last_update_time of this V1CertificateSigningRequestCondition. # noqa: E501
|
||||
:rtype: datetime
|
||||
"""
|
||||
return self._last_update_time
|
||||
|
||||
@last_update_time.setter
|
||||
def last_update_time(self, last_update_time):
|
||||
"""Sets the last_update_time of this V1CertificateSigningRequestCondition.
|
||||
|
||||
lastUpdateTime is the time of the last update to this condition # noqa: E501
|
||||
|
||||
:param last_update_time: The last_update_time of this V1CertificateSigningRequestCondition. # noqa: E501
|
||||
:type: datetime
|
||||
"""
|
||||
|
||||
self._last_update_time = last_update_time
|
||||
|
||||
@property
|
||||
def message(self):
|
||||
"""Gets the message of this V1CertificateSigningRequestCondition. # noqa: E501
|
||||
|
||||
message contains a human readable message with details about the request state # noqa: E501
|
||||
|
||||
:return: The message of this V1CertificateSigningRequestCondition. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._message
|
||||
|
||||
@message.setter
|
||||
def message(self, message):
|
||||
"""Sets the message of this V1CertificateSigningRequestCondition.
|
||||
|
||||
message contains a human readable message with details about the request state # noqa: E501
|
||||
|
||||
:param message: The message of this V1CertificateSigningRequestCondition. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._message = message
|
||||
|
||||
@property
|
||||
def reason(self):
|
||||
"""Gets the reason of this V1CertificateSigningRequestCondition. # noqa: E501
|
||||
|
||||
reason indicates a brief reason for the request state # noqa: E501
|
||||
|
||||
:return: The reason of this V1CertificateSigningRequestCondition. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._reason
|
||||
|
||||
@reason.setter
|
||||
def reason(self, reason):
|
||||
"""Sets the reason of this V1CertificateSigningRequestCondition.
|
||||
|
||||
reason indicates a brief reason for the request state # noqa: E501
|
||||
|
||||
:param reason: The reason of this V1CertificateSigningRequestCondition. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._reason = reason
|
||||
|
||||
@property
|
||||
def status(self):
|
||||
"""Gets the status of this V1CertificateSigningRequestCondition. # noqa: E501
|
||||
|
||||
status of the condition, one of True, False, Unknown. Approved, Denied, and Failed conditions may not be \"False\" or \"Unknown\". # noqa: E501
|
||||
|
||||
:return: The status of this V1CertificateSigningRequestCondition. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._status
|
||||
|
||||
@status.setter
|
||||
def status(self, status):
|
||||
"""Sets the status of this V1CertificateSigningRequestCondition.
|
||||
|
||||
status of the condition, one of True, False, Unknown. Approved, Denied, and Failed conditions may not be \"False\" or \"Unknown\". # noqa: E501
|
||||
|
||||
:param status: The status of this V1CertificateSigningRequestCondition. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501
|
||||
|
||||
self._status = status
|
||||
|
||||
@property
|
||||
def type(self):
|
||||
"""Gets the type of this V1CertificateSigningRequestCondition. # noqa: E501
|
||||
|
||||
type of the condition. Known conditions are \"Approved\", \"Denied\", and \"Failed\". An \"Approved\" condition is added via the /approval subresource, indicating the request was approved and should be issued by the signer. A \"Denied\" condition is added via the /approval subresource, indicating the request was denied and should not be issued by the signer. A \"Failed\" condition is added via the /status subresource, indicating the signer failed to issue the certificate. Approved and Denied conditions are mutually exclusive. Approved, Denied, and Failed conditions cannot be removed once added. Only one condition of a given type is allowed. # noqa: E501
|
||||
|
||||
:return: The type of this V1CertificateSigningRequestCondition. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._type
|
||||
|
||||
@type.setter
|
||||
def type(self, type):
|
||||
"""Sets the type of this V1CertificateSigningRequestCondition.
|
||||
|
||||
type of the condition. Known conditions are \"Approved\", \"Denied\", and \"Failed\". An \"Approved\" condition is added via the /approval subresource, indicating the request was approved and should be issued by the signer. A \"Denied\" condition is added via the /approval subresource, indicating the request was denied and should not be issued by the signer. A \"Failed\" condition is added via the /status subresource, indicating the signer failed to issue the certificate. Approved and Denied conditions are mutually exclusive. Approved, Denied, and Failed conditions cannot be removed once added. Only one condition of a given type is allowed. # noqa: E501
|
||||
|
||||
:param type: The type of this V1CertificateSigningRequestCondition. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501
|
||||
|
||||
self._type = type
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1CertificateSigningRequestCondition):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1CertificateSigningRequestCondition):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
205
kubernetes/client/models/v1_certificate_signing_request_list.py
Normal file
205
kubernetes/client/models/v1_certificate_signing_request_list.py
Normal file
|
@ -0,0 +1,205 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1CertificateSigningRequestList(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'api_version': 'str',
|
||||
'items': 'list[V1CertificateSigningRequest]',
|
||||
'kind': 'str',
|
||||
'metadata': 'V1ListMeta'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'api_version': 'apiVersion',
|
||||
'items': 'items',
|
||||
'kind': 'kind',
|
||||
'metadata': 'metadata'
|
||||
}
|
||||
|
||||
def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1CertificateSigningRequestList - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._api_version = None
|
||||
self._items = None
|
||||
self._kind = None
|
||||
self._metadata = None
|
||||
self.discriminator = None
|
||||
|
||||
if api_version is not None:
|
||||
self.api_version = api_version
|
||||
self.items = items
|
||||
if kind is not None:
|
||||
self.kind = kind
|
||||
if metadata is not None:
|
||||
self.metadata = metadata
|
||||
|
||||
@property
|
||||
def api_version(self):
|
||||
"""Gets the api_version of this V1CertificateSigningRequestList. # noqa: E501
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:return: The api_version of this V1CertificateSigningRequestList. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._api_version
|
||||
|
||||
@api_version.setter
|
||||
def api_version(self, api_version):
|
||||
"""Sets the api_version of this V1CertificateSigningRequestList.
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:param api_version: The api_version of this V1CertificateSigningRequestList. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._api_version = api_version
|
||||
|
||||
@property
|
||||
def items(self):
|
||||
"""Gets the items of this V1CertificateSigningRequestList. # noqa: E501
|
||||
|
||||
items is a collection of CertificateSigningRequest objects # noqa: E501
|
||||
|
||||
:return: The items of this V1CertificateSigningRequestList. # noqa: E501
|
||||
:rtype: list[V1CertificateSigningRequest]
|
||||
"""
|
||||
return self._items
|
||||
|
||||
@items.setter
|
||||
def items(self, items):
|
||||
"""Sets the items of this V1CertificateSigningRequestList.
|
||||
|
||||
items is a collection of CertificateSigningRequest objects # noqa: E501
|
||||
|
||||
:param items: The items of this V1CertificateSigningRequestList. # noqa: E501
|
||||
:type: list[V1CertificateSigningRequest]
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501
|
||||
|
||||
self._items = items
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this V1CertificateSigningRequestList. # noqa: E501
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:return: The kind of this V1CertificateSigningRequestList. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets the kind of this V1CertificateSigningRequestList.
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:param kind: The kind of this V1CertificateSigningRequestList. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def metadata(self):
|
||||
"""Gets the metadata of this V1CertificateSigningRequestList. # noqa: E501
|
||||
|
||||
|
||||
:return: The metadata of this V1CertificateSigningRequestList. # noqa: E501
|
||||
:rtype: V1ListMeta
|
||||
"""
|
||||
return self._metadata
|
||||
|
||||
@metadata.setter
|
||||
def metadata(self, metadata):
|
||||
"""Sets the metadata of this V1CertificateSigningRequestList.
|
||||
|
||||
|
||||
:param metadata: The metadata of this V1CertificateSigningRequestList. # noqa: E501
|
||||
:type: V1ListMeta
|
||||
"""
|
||||
|
||||
self._metadata = metadata
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1CertificateSigningRequestList):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1CertificateSigningRequestList):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
323
kubernetes/client/models/v1_certificate_signing_request_spec.py
Normal file
323
kubernetes/client/models/v1_certificate_signing_request_spec.py
Normal file
|
@ -0,0 +1,323 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1CertificateSigningRequestSpec(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'expiration_seconds': 'int',
|
||||
'extra': 'dict(str, list[str])',
|
||||
'groups': 'list[str]',
|
||||
'request': 'str',
|
||||
'signer_name': 'str',
|
||||
'uid': 'str',
|
||||
'usages': 'list[str]',
|
||||
'username': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'expiration_seconds': 'expirationSeconds',
|
||||
'extra': 'extra',
|
||||
'groups': 'groups',
|
||||
'request': 'request',
|
||||
'signer_name': 'signerName',
|
||||
'uid': 'uid',
|
||||
'usages': 'usages',
|
||||
'username': 'username'
|
||||
}
|
||||
|
||||
def __init__(self, expiration_seconds=None, extra=None, groups=None, request=None, signer_name=None, uid=None, usages=None, username=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1CertificateSigningRequestSpec - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._expiration_seconds = None
|
||||
self._extra = None
|
||||
self._groups = None
|
||||
self._request = None
|
||||
self._signer_name = None
|
||||
self._uid = None
|
||||
self._usages = None
|
||||
self._username = None
|
||||
self.discriminator = None
|
||||
|
||||
if expiration_seconds is not None:
|
||||
self.expiration_seconds = expiration_seconds
|
||||
if extra is not None:
|
||||
self.extra = extra
|
||||
if groups is not None:
|
||||
self.groups = groups
|
||||
self.request = request
|
||||
self.signer_name = signer_name
|
||||
if uid is not None:
|
||||
self.uid = uid
|
||||
if usages is not None:
|
||||
self.usages = usages
|
||||
if username is not None:
|
||||
self.username = username
|
||||
|
||||
@property
|
||||
def expiration_seconds(self):
|
||||
"""Gets the expiration_seconds of this V1CertificateSigningRequestSpec. # noqa: E501
|
||||
|
||||
expirationSeconds is the requested duration of validity of the issued certificate. The certificate signer may issue a certificate with a different validity duration so a client must check the delta between the notBefore and and notAfter fields in the issued certificate to determine the actual duration. The v1.22+ in-tree implementations of the well-known Kubernetes signers will honor this field as long as the requested duration is not greater than the maximum duration they will honor per the --cluster-signing-duration CLI flag to the Kubernetes controller manager. Certificate signers may not honor this field for various reasons: 1. Old signer that is unaware of the field (such as the in-tree implementations prior to v1.22) 2. Signer whose configured maximum is shorter than the requested duration 3. Signer whose configured minimum is longer than the requested duration The minimum valid value for expirationSeconds is 600, i.e. 10 minutes. # noqa: E501
|
||||
|
||||
:return: The expiration_seconds of this V1CertificateSigningRequestSpec. # noqa: E501
|
||||
:rtype: int
|
||||
"""
|
||||
return self._expiration_seconds
|
||||
|
||||
@expiration_seconds.setter
|
||||
def expiration_seconds(self, expiration_seconds):
|
||||
"""Sets the expiration_seconds of this V1CertificateSigningRequestSpec.
|
||||
|
||||
expirationSeconds is the requested duration of validity of the issued certificate. The certificate signer may issue a certificate with a different validity duration so a client must check the delta between the notBefore and and notAfter fields in the issued certificate to determine the actual duration. The v1.22+ in-tree implementations of the well-known Kubernetes signers will honor this field as long as the requested duration is not greater than the maximum duration they will honor per the --cluster-signing-duration CLI flag to the Kubernetes controller manager. Certificate signers may not honor this field for various reasons: 1. Old signer that is unaware of the field (such as the in-tree implementations prior to v1.22) 2. Signer whose configured maximum is shorter than the requested duration 3. Signer whose configured minimum is longer than the requested duration The minimum valid value for expirationSeconds is 600, i.e. 10 minutes. # noqa: E501
|
||||
|
||||
:param expiration_seconds: The expiration_seconds of this V1CertificateSigningRequestSpec. # noqa: E501
|
||||
:type: int
|
||||
"""
|
||||
|
||||
self._expiration_seconds = expiration_seconds
|
||||
|
||||
@property
|
||||
def extra(self):
|
||||
"""Gets the extra of this V1CertificateSigningRequestSpec. # noqa: E501
|
||||
|
||||
extra contains extra attributes of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. # noqa: E501
|
||||
|
||||
:return: The extra of this V1CertificateSigningRequestSpec. # noqa: E501
|
||||
:rtype: dict(str, list[str])
|
||||
"""
|
||||
return self._extra
|
||||
|
||||
@extra.setter
|
||||
def extra(self, extra):
|
||||
"""Sets the extra of this V1CertificateSigningRequestSpec.
|
||||
|
||||
extra contains extra attributes of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. # noqa: E501
|
||||
|
||||
:param extra: The extra of this V1CertificateSigningRequestSpec. # noqa: E501
|
||||
:type: dict(str, list[str])
|
||||
"""
|
||||
|
||||
self._extra = extra
|
||||
|
||||
@property
|
||||
def groups(self):
|
||||
"""Gets the groups of this V1CertificateSigningRequestSpec. # noqa: E501
|
||||
|
||||
groups contains group membership of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. # noqa: E501
|
||||
|
||||
:return: The groups of this V1CertificateSigningRequestSpec. # noqa: E501
|
||||
:rtype: list[str]
|
||||
"""
|
||||
return self._groups
|
||||
|
||||
@groups.setter
|
||||
def groups(self, groups):
|
||||
"""Sets the groups of this V1CertificateSigningRequestSpec.
|
||||
|
||||
groups contains group membership of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. # noqa: E501
|
||||
|
||||
:param groups: The groups of this V1CertificateSigningRequestSpec. # noqa: E501
|
||||
:type: list[str]
|
||||
"""
|
||||
|
||||
self._groups = groups
|
||||
|
||||
@property
|
||||
def request(self):
|
||||
"""Gets the request of this V1CertificateSigningRequestSpec. # noqa: E501
|
||||
|
||||
request contains an x509 certificate signing request encoded in a \"CERTIFICATE REQUEST\" PEM block. When serialized as JSON or YAML, the data is additionally base64-encoded. # noqa: E501
|
||||
|
||||
:return: The request of this V1CertificateSigningRequestSpec. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._request
|
||||
|
||||
@request.setter
|
||||
def request(self, request):
|
||||
"""Sets the request of this V1CertificateSigningRequestSpec.
|
||||
|
||||
request contains an x509 certificate signing request encoded in a \"CERTIFICATE REQUEST\" PEM block. When serialized as JSON or YAML, the data is additionally base64-encoded. # noqa: E501
|
||||
|
||||
:param request: The request of this V1CertificateSigningRequestSpec. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and request is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `request`, must not be `None`") # noqa: E501
|
||||
if (self.local_vars_configuration.client_side_validation and
|
||||
request is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', request)): # noqa: E501
|
||||
raise ValueError(r"Invalid value for `request`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501
|
||||
|
||||
self._request = request
|
||||
|
||||
@property
|
||||
def signer_name(self):
|
||||
"""Gets the signer_name of this V1CertificateSigningRequestSpec. # noqa: E501
|
||||
|
||||
signerName indicates the requested signer, and is a qualified name. List/watch requests for CertificateSigningRequests can filter on this field using a \"spec.signerName=NAME\" fieldSelector. Well-known Kubernetes signers are: 1. \"kubernetes.io/kube-apiserver-client\": issues client certificates that can be used to authenticate to kube-apiserver. Requests for this signer are never auto-approved by kube-controller-manager, can be issued by the \"csrsigning\" controller in kube-controller-manager. 2. \"kubernetes.io/kube-apiserver-client-kubelet\": issues client certificates that kubelets use to authenticate to kube-apiserver. Requests for this signer can be auto-approved by the \"csrapproving\" controller in kube-controller-manager, and can be issued by the \"csrsigning\" controller in kube-controller-manager. 3. \"kubernetes.io/kubelet-serving\" issues serving certificates that kubelets use to serve TLS endpoints, which kube-apiserver can connect to securely. Requests for this signer are never auto-approved by kube-controller-manager, and can be issued by the \"csrsigning\" controller in kube-controller-manager. More details are available at https://k8s.io/docs/reference/access-authn-authz/certificate-signing-requests/#kubernetes-signers Custom signerNames can also be specified. The signer defines: 1. Trust distribution: how trust (CA bundles) are distributed. 2. Permitted subjects: and behavior when a disallowed subject is requested. 3. Required, permitted, or forbidden x509 extensions in the request (including whether subjectAltNames are allowed, which types, restrictions on allowed values) and behavior when a disallowed extension is requested. 4. Required, permitted, or forbidden key usages / extended key usages. 5. Expiration/certificate lifetime: whether it is fixed by the signer, configurable by the admin. 6. Whether or not requests for CA certificates are allowed. # noqa: E501
|
||||
|
||||
:return: The signer_name of this V1CertificateSigningRequestSpec. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._signer_name
|
||||
|
||||
@signer_name.setter
|
||||
def signer_name(self, signer_name):
|
||||
"""Sets the signer_name of this V1CertificateSigningRequestSpec.
|
||||
|
||||
signerName indicates the requested signer, and is a qualified name. List/watch requests for CertificateSigningRequests can filter on this field using a \"spec.signerName=NAME\" fieldSelector. Well-known Kubernetes signers are: 1. \"kubernetes.io/kube-apiserver-client\": issues client certificates that can be used to authenticate to kube-apiserver. Requests for this signer are never auto-approved by kube-controller-manager, can be issued by the \"csrsigning\" controller in kube-controller-manager. 2. \"kubernetes.io/kube-apiserver-client-kubelet\": issues client certificates that kubelets use to authenticate to kube-apiserver. Requests for this signer can be auto-approved by the \"csrapproving\" controller in kube-controller-manager, and can be issued by the \"csrsigning\" controller in kube-controller-manager. 3. \"kubernetes.io/kubelet-serving\" issues serving certificates that kubelets use to serve TLS endpoints, which kube-apiserver can connect to securely. Requests for this signer are never auto-approved by kube-controller-manager, and can be issued by the \"csrsigning\" controller in kube-controller-manager. More details are available at https://k8s.io/docs/reference/access-authn-authz/certificate-signing-requests/#kubernetes-signers Custom signerNames can also be specified. The signer defines: 1. Trust distribution: how trust (CA bundles) are distributed. 2. Permitted subjects: and behavior when a disallowed subject is requested. 3. Required, permitted, or forbidden x509 extensions in the request (including whether subjectAltNames are allowed, which types, restrictions on allowed values) and behavior when a disallowed extension is requested. 4. Required, permitted, or forbidden key usages / extended key usages. 5. Expiration/certificate lifetime: whether it is fixed by the signer, configurable by the admin. 6. Whether or not requests for CA certificates are allowed. # noqa: E501
|
||||
|
||||
:param signer_name: The signer_name of this V1CertificateSigningRequestSpec. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and signer_name is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `signer_name`, must not be `None`") # noqa: E501
|
||||
|
||||
self._signer_name = signer_name
|
||||
|
||||
@property
|
||||
def uid(self):
|
||||
"""Gets the uid of this V1CertificateSigningRequestSpec. # noqa: E501
|
||||
|
||||
uid contains the uid of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. # noqa: E501
|
||||
|
||||
:return: The uid of this V1CertificateSigningRequestSpec. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._uid
|
||||
|
||||
@uid.setter
|
||||
def uid(self, uid):
|
||||
"""Sets the uid of this V1CertificateSigningRequestSpec.
|
||||
|
||||
uid contains the uid of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. # noqa: E501
|
||||
|
||||
:param uid: The uid of this V1CertificateSigningRequestSpec. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._uid = uid
|
||||
|
||||
@property
|
||||
def usages(self):
|
||||
"""Gets the usages of this V1CertificateSigningRequestSpec. # noqa: E501
|
||||
|
||||
usages specifies a set of key usages requested in the issued certificate. Requests for TLS client certificates typically request: \"digital signature\", \"key encipherment\", \"client auth\". Requests for TLS serving certificates typically request: \"key encipherment\", \"digital signature\", \"server auth\". Valid values are: \"signing\", \"digital signature\", \"content commitment\", \"key encipherment\", \"key agreement\", \"data encipherment\", \"cert sign\", \"crl sign\", \"encipher only\", \"decipher only\", \"any\", \"server auth\", \"client auth\", \"code signing\", \"email protection\", \"s/mime\", \"ipsec end system\", \"ipsec tunnel\", \"ipsec user\", \"timestamping\", \"ocsp signing\", \"microsoft sgc\", \"netscape sgc\" # noqa: E501
|
||||
|
||||
:return: The usages of this V1CertificateSigningRequestSpec. # noqa: E501
|
||||
:rtype: list[str]
|
||||
"""
|
||||
return self._usages
|
||||
|
||||
@usages.setter
|
||||
def usages(self, usages):
|
||||
"""Sets the usages of this V1CertificateSigningRequestSpec.
|
||||
|
||||
usages specifies a set of key usages requested in the issued certificate. Requests for TLS client certificates typically request: \"digital signature\", \"key encipherment\", \"client auth\". Requests for TLS serving certificates typically request: \"key encipherment\", \"digital signature\", \"server auth\". Valid values are: \"signing\", \"digital signature\", \"content commitment\", \"key encipherment\", \"key agreement\", \"data encipherment\", \"cert sign\", \"crl sign\", \"encipher only\", \"decipher only\", \"any\", \"server auth\", \"client auth\", \"code signing\", \"email protection\", \"s/mime\", \"ipsec end system\", \"ipsec tunnel\", \"ipsec user\", \"timestamping\", \"ocsp signing\", \"microsoft sgc\", \"netscape sgc\" # noqa: E501
|
||||
|
||||
:param usages: The usages of this V1CertificateSigningRequestSpec. # noqa: E501
|
||||
:type: list[str]
|
||||
"""
|
||||
|
||||
self._usages = usages
|
||||
|
||||
@property
|
||||
def username(self):
|
||||
"""Gets the username of this V1CertificateSigningRequestSpec. # noqa: E501
|
||||
|
||||
username contains the name of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. # noqa: E501
|
||||
|
||||
:return: The username of this V1CertificateSigningRequestSpec. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._username
|
||||
|
||||
@username.setter
|
||||
def username(self, username):
|
||||
"""Sets the username of this V1CertificateSigningRequestSpec.
|
||||
|
||||
username contains the name of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. # noqa: E501
|
||||
|
||||
:param username: The username of this V1CertificateSigningRequestSpec. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._username = username
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1CertificateSigningRequestSpec):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1CertificateSigningRequestSpec):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
|
@ -0,0 +1,153 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1CertificateSigningRequestStatus(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'certificate': 'str',
|
||||
'conditions': 'list[V1CertificateSigningRequestCondition]'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'certificate': 'certificate',
|
||||
'conditions': 'conditions'
|
||||
}
|
||||
|
||||
def __init__(self, certificate=None, conditions=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1CertificateSigningRequestStatus - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._certificate = None
|
||||
self._conditions = None
|
||||
self.discriminator = None
|
||||
|
||||
if certificate is not None:
|
||||
self.certificate = certificate
|
||||
if conditions is not None:
|
||||
self.conditions = conditions
|
||||
|
||||
@property
|
||||
def certificate(self):
|
||||
"""Gets the certificate of this V1CertificateSigningRequestStatus. # noqa: E501
|
||||
|
||||
certificate is populated with an issued certificate by the signer after an Approved condition is present. This field is set via the /status subresource. Once populated, this field is immutable. If the certificate signing request is denied, a condition of type \"Denied\" is added and this field remains empty. If the signer cannot issue the certificate, a condition of type \"Failed\" is added and this field remains empty. Validation requirements: 1. certificate must contain one or more PEM blocks. 2. All PEM blocks must have the \"CERTIFICATE\" label, contain no headers, and the encoded data must be a BER-encoded ASN.1 Certificate structure as described in section 4 of RFC5280. 3. Non-PEM content may appear before or after the \"CERTIFICATE\" PEM blocks and is unvalidated, to allow for explanatory text as described in section 5.2 of RFC7468. If more than one PEM block is present, and the definition of the requested spec.signerName does not indicate otherwise, the first block is the issued certificate, and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes. The certificate is encoded in PEM format. When serialized as JSON or YAML, the data is additionally base64-encoded, so it consists of: base64( -----BEGIN CERTIFICATE----- ... -----END CERTIFICATE----- ) # noqa: E501
|
||||
|
||||
:return: The certificate of this V1CertificateSigningRequestStatus. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._certificate
|
||||
|
||||
@certificate.setter
|
||||
def certificate(self, certificate):
|
||||
"""Sets the certificate of this V1CertificateSigningRequestStatus.
|
||||
|
||||
certificate is populated with an issued certificate by the signer after an Approved condition is present. This field is set via the /status subresource. Once populated, this field is immutable. If the certificate signing request is denied, a condition of type \"Denied\" is added and this field remains empty. If the signer cannot issue the certificate, a condition of type \"Failed\" is added and this field remains empty. Validation requirements: 1. certificate must contain one or more PEM blocks. 2. All PEM blocks must have the \"CERTIFICATE\" label, contain no headers, and the encoded data must be a BER-encoded ASN.1 Certificate structure as described in section 4 of RFC5280. 3. Non-PEM content may appear before or after the \"CERTIFICATE\" PEM blocks and is unvalidated, to allow for explanatory text as described in section 5.2 of RFC7468. If more than one PEM block is present, and the definition of the requested spec.signerName does not indicate otherwise, the first block is the issued certificate, and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes. The certificate is encoded in PEM format. When serialized as JSON or YAML, the data is additionally base64-encoded, so it consists of: base64( -----BEGIN CERTIFICATE----- ... -----END CERTIFICATE----- ) # noqa: E501
|
||||
|
||||
:param certificate: The certificate of this V1CertificateSigningRequestStatus. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if (self.local_vars_configuration.client_side_validation and
|
||||
certificate is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', certificate)): # noqa: E501
|
||||
raise ValueError(r"Invalid value for `certificate`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501
|
||||
|
||||
self._certificate = certificate
|
||||
|
||||
@property
|
||||
def conditions(self):
|
||||
"""Gets the conditions of this V1CertificateSigningRequestStatus. # noqa: E501
|
||||
|
||||
conditions applied to the request. Known conditions are \"Approved\", \"Denied\", and \"Failed\". # noqa: E501
|
||||
|
||||
:return: The conditions of this V1CertificateSigningRequestStatus. # noqa: E501
|
||||
:rtype: list[V1CertificateSigningRequestCondition]
|
||||
"""
|
||||
return self._conditions
|
||||
|
||||
@conditions.setter
|
||||
def conditions(self, conditions):
|
||||
"""Sets the conditions of this V1CertificateSigningRequestStatus.
|
||||
|
||||
conditions applied to the request. Known conditions are \"Approved\", \"Denied\", and \"Failed\". # noqa: E501
|
||||
|
||||
:param conditions: The conditions of this V1CertificateSigningRequestStatus. # noqa: E501
|
||||
:type: list[V1CertificateSigningRequestCondition]
|
||||
"""
|
||||
|
||||
self._conditions = conditions
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1CertificateSigningRequestStatus):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1CertificateSigningRequestStatus):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
205
kubernetes/client/models/v1_cinder_persistent_volume_source.py
Normal file
205
kubernetes/client/models/v1_cinder_persistent_volume_source.py
Normal file
|
@ -0,0 +1,205 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1CinderPersistentVolumeSource(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'fs_type': 'str',
|
||||
'read_only': 'bool',
|
||||
'secret_ref': 'V1SecretReference',
|
||||
'volume_id': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'fs_type': 'fsType',
|
||||
'read_only': 'readOnly',
|
||||
'secret_ref': 'secretRef',
|
||||
'volume_id': 'volumeID'
|
||||
}
|
||||
|
||||
def __init__(self, fs_type=None, read_only=None, secret_ref=None, volume_id=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1CinderPersistentVolumeSource - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._fs_type = None
|
||||
self._read_only = None
|
||||
self._secret_ref = None
|
||||
self._volume_id = None
|
||||
self.discriminator = None
|
||||
|
||||
if fs_type is not None:
|
||||
self.fs_type = fs_type
|
||||
if read_only is not None:
|
||||
self.read_only = read_only
|
||||
if secret_ref is not None:
|
||||
self.secret_ref = secret_ref
|
||||
self.volume_id = volume_id
|
||||
|
||||
@property
|
||||
def fs_type(self):
|
||||
"""Gets the fs_type of this V1CinderPersistentVolumeSource. # noqa: E501
|
||||
|
||||
fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md # noqa: E501
|
||||
|
||||
:return: The fs_type of this V1CinderPersistentVolumeSource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._fs_type
|
||||
|
||||
@fs_type.setter
|
||||
def fs_type(self, fs_type):
|
||||
"""Sets the fs_type of this V1CinderPersistentVolumeSource.
|
||||
|
||||
fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md # noqa: E501
|
||||
|
||||
:param fs_type: The fs_type of this V1CinderPersistentVolumeSource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._fs_type = fs_type
|
||||
|
||||
@property
|
||||
def read_only(self):
|
||||
"""Gets the read_only of this V1CinderPersistentVolumeSource. # noqa: E501
|
||||
|
||||
readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md # noqa: E501
|
||||
|
||||
:return: The read_only of this V1CinderPersistentVolumeSource. # noqa: E501
|
||||
:rtype: bool
|
||||
"""
|
||||
return self._read_only
|
||||
|
||||
@read_only.setter
|
||||
def read_only(self, read_only):
|
||||
"""Sets the read_only of this V1CinderPersistentVolumeSource.
|
||||
|
||||
readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md # noqa: E501
|
||||
|
||||
:param read_only: The read_only of this V1CinderPersistentVolumeSource. # noqa: E501
|
||||
:type: bool
|
||||
"""
|
||||
|
||||
self._read_only = read_only
|
||||
|
||||
@property
|
||||
def secret_ref(self):
|
||||
"""Gets the secret_ref of this V1CinderPersistentVolumeSource. # noqa: E501
|
||||
|
||||
|
||||
:return: The secret_ref of this V1CinderPersistentVolumeSource. # noqa: E501
|
||||
:rtype: V1SecretReference
|
||||
"""
|
||||
return self._secret_ref
|
||||
|
||||
@secret_ref.setter
|
||||
def secret_ref(self, secret_ref):
|
||||
"""Sets the secret_ref of this V1CinderPersistentVolumeSource.
|
||||
|
||||
|
||||
:param secret_ref: The secret_ref of this V1CinderPersistentVolumeSource. # noqa: E501
|
||||
:type: V1SecretReference
|
||||
"""
|
||||
|
||||
self._secret_ref = secret_ref
|
||||
|
||||
@property
|
||||
def volume_id(self):
|
||||
"""Gets the volume_id of this V1CinderPersistentVolumeSource. # noqa: E501
|
||||
|
||||
volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md # noqa: E501
|
||||
|
||||
:return: The volume_id of this V1CinderPersistentVolumeSource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._volume_id
|
||||
|
||||
@volume_id.setter
|
||||
def volume_id(self, volume_id):
|
||||
"""Sets the volume_id of this V1CinderPersistentVolumeSource.
|
||||
|
||||
volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md # noqa: E501
|
||||
|
||||
:param volume_id: The volume_id of this V1CinderPersistentVolumeSource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and volume_id is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `volume_id`, must not be `None`") # noqa: E501
|
||||
|
||||
self._volume_id = volume_id
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1CinderPersistentVolumeSource):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1CinderPersistentVolumeSource):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
205
kubernetes/client/models/v1_cinder_volume_source.py
Normal file
205
kubernetes/client/models/v1_cinder_volume_source.py
Normal file
|
@ -0,0 +1,205 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1CinderVolumeSource(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'fs_type': 'str',
|
||||
'read_only': 'bool',
|
||||
'secret_ref': 'V1LocalObjectReference',
|
||||
'volume_id': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'fs_type': 'fsType',
|
||||
'read_only': 'readOnly',
|
||||
'secret_ref': 'secretRef',
|
||||
'volume_id': 'volumeID'
|
||||
}
|
||||
|
||||
def __init__(self, fs_type=None, read_only=None, secret_ref=None, volume_id=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1CinderVolumeSource - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._fs_type = None
|
||||
self._read_only = None
|
||||
self._secret_ref = None
|
||||
self._volume_id = None
|
||||
self.discriminator = None
|
||||
|
||||
if fs_type is not None:
|
||||
self.fs_type = fs_type
|
||||
if read_only is not None:
|
||||
self.read_only = read_only
|
||||
if secret_ref is not None:
|
||||
self.secret_ref = secret_ref
|
||||
self.volume_id = volume_id
|
||||
|
||||
@property
|
||||
def fs_type(self):
|
||||
"""Gets the fs_type of this V1CinderVolumeSource. # noqa: E501
|
||||
|
||||
fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md # noqa: E501
|
||||
|
||||
:return: The fs_type of this V1CinderVolumeSource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._fs_type
|
||||
|
||||
@fs_type.setter
|
||||
def fs_type(self, fs_type):
|
||||
"""Sets the fs_type of this V1CinderVolumeSource.
|
||||
|
||||
fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md # noqa: E501
|
||||
|
||||
:param fs_type: The fs_type of this V1CinderVolumeSource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._fs_type = fs_type
|
||||
|
||||
@property
|
||||
def read_only(self):
|
||||
"""Gets the read_only of this V1CinderVolumeSource. # noqa: E501
|
||||
|
||||
readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md # noqa: E501
|
||||
|
||||
:return: The read_only of this V1CinderVolumeSource. # noqa: E501
|
||||
:rtype: bool
|
||||
"""
|
||||
return self._read_only
|
||||
|
||||
@read_only.setter
|
||||
def read_only(self, read_only):
|
||||
"""Sets the read_only of this V1CinderVolumeSource.
|
||||
|
||||
readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md # noqa: E501
|
||||
|
||||
:param read_only: The read_only of this V1CinderVolumeSource. # noqa: E501
|
||||
:type: bool
|
||||
"""
|
||||
|
||||
self._read_only = read_only
|
||||
|
||||
@property
|
||||
def secret_ref(self):
|
||||
"""Gets the secret_ref of this V1CinderVolumeSource. # noqa: E501
|
||||
|
||||
|
||||
:return: The secret_ref of this V1CinderVolumeSource. # noqa: E501
|
||||
:rtype: V1LocalObjectReference
|
||||
"""
|
||||
return self._secret_ref
|
||||
|
||||
@secret_ref.setter
|
||||
def secret_ref(self, secret_ref):
|
||||
"""Sets the secret_ref of this V1CinderVolumeSource.
|
||||
|
||||
|
||||
:param secret_ref: The secret_ref of this V1CinderVolumeSource. # noqa: E501
|
||||
:type: V1LocalObjectReference
|
||||
"""
|
||||
|
||||
self._secret_ref = secret_ref
|
||||
|
||||
@property
|
||||
def volume_id(self):
|
||||
"""Gets the volume_id of this V1CinderVolumeSource. # noqa: E501
|
||||
|
||||
volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md # noqa: E501
|
||||
|
||||
:return: The volume_id of this V1CinderVolumeSource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._volume_id
|
||||
|
||||
@volume_id.setter
|
||||
def volume_id(self, volume_id):
|
||||
"""Sets the volume_id of this V1CinderVolumeSource.
|
||||
|
||||
volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md # noqa: E501
|
||||
|
||||
:param volume_id: The volume_id of this V1CinderVolumeSource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and volume_id is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `volume_id`, must not be `None`") # noqa: E501
|
||||
|
||||
self._volume_id = volume_id
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1CinderVolumeSource):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1CinderVolumeSource):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
122
kubernetes/client/models/v1_client_ip_config.py
Normal file
122
kubernetes/client/models/v1_client_ip_config.py
Normal file
|
@ -0,0 +1,122 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1ClientIPConfig(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'timeout_seconds': 'int'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'timeout_seconds': 'timeoutSeconds'
|
||||
}
|
||||
|
||||
def __init__(self, timeout_seconds=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1ClientIPConfig - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._timeout_seconds = None
|
||||
self.discriminator = None
|
||||
|
||||
if timeout_seconds is not None:
|
||||
self.timeout_seconds = timeout_seconds
|
||||
|
||||
@property
|
||||
def timeout_seconds(self):
|
||||
"""Gets the timeout_seconds of this V1ClientIPConfig. # noqa: E501
|
||||
|
||||
timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == \"ClientIP\". Default value is 10800(for 3 hours). # noqa: E501
|
||||
|
||||
:return: The timeout_seconds of this V1ClientIPConfig. # noqa: E501
|
||||
:rtype: int
|
||||
"""
|
||||
return self._timeout_seconds
|
||||
|
||||
@timeout_seconds.setter
|
||||
def timeout_seconds(self, timeout_seconds):
|
||||
"""Sets the timeout_seconds of this V1ClientIPConfig.
|
||||
|
||||
timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == \"ClientIP\". Default value is 10800(for 3 hours). # noqa: E501
|
||||
|
||||
:param timeout_seconds: The timeout_seconds of this V1ClientIPConfig. # noqa: E501
|
||||
:type: int
|
||||
"""
|
||||
|
||||
self._timeout_seconds = timeout_seconds
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1ClientIPConfig):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1ClientIPConfig):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
230
kubernetes/client/models/v1_cluster_role.py
Normal file
230
kubernetes/client/models/v1_cluster_role.py
Normal file
|
@ -0,0 +1,230 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1ClusterRole(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'aggregation_rule': 'V1AggregationRule',
|
||||
'api_version': 'str',
|
||||
'kind': 'str',
|
||||
'metadata': 'V1ObjectMeta',
|
||||
'rules': 'list[V1PolicyRule]'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'aggregation_rule': 'aggregationRule',
|
||||
'api_version': 'apiVersion',
|
||||
'kind': 'kind',
|
||||
'metadata': 'metadata',
|
||||
'rules': 'rules'
|
||||
}
|
||||
|
||||
def __init__(self, aggregation_rule=None, api_version=None, kind=None, metadata=None, rules=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1ClusterRole - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._aggregation_rule = None
|
||||
self._api_version = None
|
||||
self._kind = None
|
||||
self._metadata = None
|
||||
self._rules = None
|
||||
self.discriminator = None
|
||||
|
||||
if aggregation_rule is not None:
|
||||
self.aggregation_rule = aggregation_rule
|
||||
if api_version is not None:
|
||||
self.api_version = api_version
|
||||
if kind is not None:
|
||||
self.kind = kind
|
||||
if metadata is not None:
|
||||
self.metadata = metadata
|
||||
if rules is not None:
|
||||
self.rules = rules
|
||||
|
||||
@property
|
||||
def aggregation_rule(self):
|
||||
"""Gets the aggregation_rule of this V1ClusterRole. # noqa: E501
|
||||
|
||||
|
||||
:return: The aggregation_rule of this V1ClusterRole. # noqa: E501
|
||||
:rtype: V1AggregationRule
|
||||
"""
|
||||
return self._aggregation_rule
|
||||
|
||||
@aggregation_rule.setter
|
||||
def aggregation_rule(self, aggregation_rule):
|
||||
"""Sets the aggregation_rule of this V1ClusterRole.
|
||||
|
||||
|
||||
:param aggregation_rule: The aggregation_rule of this V1ClusterRole. # noqa: E501
|
||||
:type: V1AggregationRule
|
||||
"""
|
||||
|
||||
self._aggregation_rule = aggregation_rule
|
||||
|
||||
@property
|
||||
def api_version(self):
|
||||
"""Gets the api_version of this V1ClusterRole. # noqa: E501
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:return: The api_version of this V1ClusterRole. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._api_version
|
||||
|
||||
@api_version.setter
|
||||
def api_version(self, api_version):
|
||||
"""Sets the api_version of this V1ClusterRole.
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:param api_version: The api_version of this V1ClusterRole. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._api_version = api_version
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this V1ClusterRole. # noqa: E501
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:return: The kind of this V1ClusterRole. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets the kind of this V1ClusterRole.
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:param kind: The kind of this V1ClusterRole. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def metadata(self):
|
||||
"""Gets the metadata of this V1ClusterRole. # noqa: E501
|
||||
|
||||
|
||||
:return: The metadata of this V1ClusterRole. # noqa: E501
|
||||
:rtype: V1ObjectMeta
|
||||
"""
|
||||
return self._metadata
|
||||
|
||||
@metadata.setter
|
||||
def metadata(self, metadata):
|
||||
"""Sets the metadata of this V1ClusterRole.
|
||||
|
||||
|
||||
:param metadata: The metadata of this V1ClusterRole. # noqa: E501
|
||||
:type: V1ObjectMeta
|
||||
"""
|
||||
|
||||
self._metadata = metadata
|
||||
|
||||
@property
|
||||
def rules(self):
|
||||
"""Gets the rules of this V1ClusterRole. # noqa: E501
|
||||
|
||||
Rules holds all the PolicyRules for this ClusterRole # noqa: E501
|
||||
|
||||
:return: The rules of this V1ClusterRole. # noqa: E501
|
||||
:rtype: list[V1PolicyRule]
|
||||
"""
|
||||
return self._rules
|
||||
|
||||
@rules.setter
|
||||
def rules(self, rules):
|
||||
"""Sets the rules of this V1ClusterRole.
|
||||
|
||||
Rules holds all the PolicyRules for this ClusterRole # noqa: E501
|
||||
|
||||
:param rules: The rules of this V1ClusterRole. # noqa: E501
|
||||
:type: list[V1PolicyRule]
|
||||
"""
|
||||
|
||||
self._rules = rules
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1ClusterRole):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1ClusterRole):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
231
kubernetes/client/models/v1_cluster_role_binding.py
Normal file
231
kubernetes/client/models/v1_cluster_role_binding.py
Normal file
|
@ -0,0 +1,231 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1ClusterRoleBinding(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'api_version': 'str',
|
||||
'kind': 'str',
|
||||
'metadata': 'V1ObjectMeta',
|
||||
'role_ref': 'V1RoleRef',
|
||||
'subjects': 'list[RbacV1Subject]'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'api_version': 'apiVersion',
|
||||
'kind': 'kind',
|
||||
'metadata': 'metadata',
|
||||
'role_ref': 'roleRef',
|
||||
'subjects': 'subjects'
|
||||
}
|
||||
|
||||
def __init__(self, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1ClusterRoleBinding - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._api_version = None
|
||||
self._kind = None
|
||||
self._metadata = None
|
||||
self._role_ref = None
|
||||
self._subjects = None
|
||||
self.discriminator = None
|
||||
|
||||
if api_version is not None:
|
||||
self.api_version = api_version
|
||||
if kind is not None:
|
||||
self.kind = kind
|
||||
if metadata is not None:
|
||||
self.metadata = metadata
|
||||
self.role_ref = role_ref
|
||||
if subjects is not None:
|
||||
self.subjects = subjects
|
||||
|
||||
@property
|
||||
def api_version(self):
|
||||
"""Gets the api_version of this V1ClusterRoleBinding. # noqa: E501
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:return: The api_version of this V1ClusterRoleBinding. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._api_version
|
||||
|
||||
@api_version.setter
|
||||
def api_version(self, api_version):
|
||||
"""Sets the api_version of this V1ClusterRoleBinding.
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:param api_version: The api_version of this V1ClusterRoleBinding. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._api_version = api_version
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this V1ClusterRoleBinding. # noqa: E501
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:return: The kind of this V1ClusterRoleBinding. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets the kind of this V1ClusterRoleBinding.
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:param kind: The kind of this V1ClusterRoleBinding. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def metadata(self):
|
||||
"""Gets the metadata of this V1ClusterRoleBinding. # noqa: E501
|
||||
|
||||
|
||||
:return: The metadata of this V1ClusterRoleBinding. # noqa: E501
|
||||
:rtype: V1ObjectMeta
|
||||
"""
|
||||
return self._metadata
|
||||
|
||||
@metadata.setter
|
||||
def metadata(self, metadata):
|
||||
"""Sets the metadata of this V1ClusterRoleBinding.
|
||||
|
||||
|
||||
:param metadata: The metadata of this V1ClusterRoleBinding. # noqa: E501
|
||||
:type: V1ObjectMeta
|
||||
"""
|
||||
|
||||
self._metadata = metadata
|
||||
|
||||
@property
|
||||
def role_ref(self):
|
||||
"""Gets the role_ref of this V1ClusterRoleBinding. # noqa: E501
|
||||
|
||||
|
||||
:return: The role_ref of this V1ClusterRoleBinding. # noqa: E501
|
||||
:rtype: V1RoleRef
|
||||
"""
|
||||
return self._role_ref
|
||||
|
||||
@role_ref.setter
|
||||
def role_ref(self, role_ref):
|
||||
"""Sets the role_ref of this V1ClusterRoleBinding.
|
||||
|
||||
|
||||
:param role_ref: The role_ref of this V1ClusterRoleBinding. # noqa: E501
|
||||
:type: V1RoleRef
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and role_ref is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `role_ref`, must not be `None`") # noqa: E501
|
||||
|
||||
self._role_ref = role_ref
|
||||
|
||||
@property
|
||||
def subjects(self):
|
||||
"""Gets the subjects of this V1ClusterRoleBinding. # noqa: E501
|
||||
|
||||
Subjects holds references to the objects the role applies to. # noqa: E501
|
||||
|
||||
:return: The subjects of this V1ClusterRoleBinding. # noqa: E501
|
||||
:rtype: list[RbacV1Subject]
|
||||
"""
|
||||
return self._subjects
|
||||
|
||||
@subjects.setter
|
||||
def subjects(self, subjects):
|
||||
"""Sets the subjects of this V1ClusterRoleBinding.
|
||||
|
||||
Subjects holds references to the objects the role applies to. # noqa: E501
|
||||
|
||||
:param subjects: The subjects of this V1ClusterRoleBinding. # noqa: E501
|
||||
:type: list[RbacV1Subject]
|
||||
"""
|
||||
|
||||
self._subjects = subjects
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1ClusterRoleBinding):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1ClusterRoleBinding):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
205
kubernetes/client/models/v1_cluster_role_binding_list.py
Normal file
205
kubernetes/client/models/v1_cluster_role_binding_list.py
Normal file
|
@ -0,0 +1,205 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1ClusterRoleBindingList(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'api_version': 'str',
|
||||
'items': 'list[V1ClusterRoleBinding]',
|
||||
'kind': 'str',
|
||||
'metadata': 'V1ListMeta'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'api_version': 'apiVersion',
|
||||
'items': 'items',
|
||||
'kind': 'kind',
|
||||
'metadata': 'metadata'
|
||||
}
|
||||
|
||||
def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1ClusterRoleBindingList - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._api_version = None
|
||||
self._items = None
|
||||
self._kind = None
|
||||
self._metadata = None
|
||||
self.discriminator = None
|
||||
|
||||
if api_version is not None:
|
||||
self.api_version = api_version
|
||||
self.items = items
|
||||
if kind is not None:
|
||||
self.kind = kind
|
||||
if metadata is not None:
|
||||
self.metadata = metadata
|
||||
|
||||
@property
|
||||
def api_version(self):
|
||||
"""Gets the api_version of this V1ClusterRoleBindingList. # noqa: E501
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:return: The api_version of this V1ClusterRoleBindingList. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._api_version
|
||||
|
||||
@api_version.setter
|
||||
def api_version(self, api_version):
|
||||
"""Sets the api_version of this V1ClusterRoleBindingList.
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:param api_version: The api_version of this V1ClusterRoleBindingList. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._api_version = api_version
|
||||
|
||||
@property
|
||||
def items(self):
|
||||
"""Gets the items of this V1ClusterRoleBindingList. # noqa: E501
|
||||
|
||||
Items is a list of ClusterRoleBindings # noqa: E501
|
||||
|
||||
:return: The items of this V1ClusterRoleBindingList. # noqa: E501
|
||||
:rtype: list[V1ClusterRoleBinding]
|
||||
"""
|
||||
return self._items
|
||||
|
||||
@items.setter
|
||||
def items(self, items):
|
||||
"""Sets the items of this V1ClusterRoleBindingList.
|
||||
|
||||
Items is a list of ClusterRoleBindings # noqa: E501
|
||||
|
||||
:param items: The items of this V1ClusterRoleBindingList. # noqa: E501
|
||||
:type: list[V1ClusterRoleBinding]
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501
|
||||
|
||||
self._items = items
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this V1ClusterRoleBindingList. # noqa: E501
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:return: The kind of this V1ClusterRoleBindingList. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets the kind of this V1ClusterRoleBindingList.
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:param kind: The kind of this V1ClusterRoleBindingList. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def metadata(self):
|
||||
"""Gets the metadata of this V1ClusterRoleBindingList. # noqa: E501
|
||||
|
||||
|
||||
:return: The metadata of this V1ClusterRoleBindingList. # noqa: E501
|
||||
:rtype: V1ListMeta
|
||||
"""
|
||||
return self._metadata
|
||||
|
||||
@metadata.setter
|
||||
def metadata(self, metadata):
|
||||
"""Sets the metadata of this V1ClusterRoleBindingList.
|
||||
|
||||
|
||||
:param metadata: The metadata of this V1ClusterRoleBindingList. # noqa: E501
|
||||
:type: V1ListMeta
|
||||
"""
|
||||
|
||||
self._metadata = metadata
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1ClusterRoleBindingList):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1ClusterRoleBindingList):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
205
kubernetes/client/models/v1_cluster_role_list.py
Normal file
205
kubernetes/client/models/v1_cluster_role_list.py
Normal file
|
@ -0,0 +1,205 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1ClusterRoleList(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'api_version': 'str',
|
||||
'items': 'list[V1ClusterRole]',
|
||||
'kind': 'str',
|
||||
'metadata': 'V1ListMeta'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'api_version': 'apiVersion',
|
||||
'items': 'items',
|
||||
'kind': 'kind',
|
||||
'metadata': 'metadata'
|
||||
}
|
||||
|
||||
def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1ClusterRoleList - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._api_version = None
|
||||
self._items = None
|
||||
self._kind = None
|
||||
self._metadata = None
|
||||
self.discriminator = None
|
||||
|
||||
if api_version is not None:
|
||||
self.api_version = api_version
|
||||
self.items = items
|
||||
if kind is not None:
|
||||
self.kind = kind
|
||||
if metadata is not None:
|
||||
self.metadata = metadata
|
||||
|
||||
@property
|
||||
def api_version(self):
|
||||
"""Gets the api_version of this V1ClusterRoleList. # noqa: E501
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:return: The api_version of this V1ClusterRoleList. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._api_version
|
||||
|
||||
@api_version.setter
|
||||
def api_version(self, api_version):
|
||||
"""Sets the api_version of this V1ClusterRoleList.
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:param api_version: The api_version of this V1ClusterRoleList. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._api_version = api_version
|
||||
|
||||
@property
|
||||
def items(self):
|
||||
"""Gets the items of this V1ClusterRoleList. # noqa: E501
|
||||
|
||||
Items is a list of ClusterRoles # noqa: E501
|
||||
|
||||
:return: The items of this V1ClusterRoleList. # noqa: E501
|
||||
:rtype: list[V1ClusterRole]
|
||||
"""
|
||||
return self._items
|
||||
|
||||
@items.setter
|
||||
def items(self, items):
|
||||
"""Sets the items of this V1ClusterRoleList.
|
||||
|
||||
Items is a list of ClusterRoles # noqa: E501
|
||||
|
||||
:param items: The items of this V1ClusterRoleList. # noqa: E501
|
||||
:type: list[V1ClusterRole]
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501
|
||||
|
||||
self._items = items
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this V1ClusterRoleList. # noqa: E501
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:return: The kind of this V1ClusterRoleList. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets the kind of this V1ClusterRoleList.
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:param kind: The kind of this V1ClusterRoleList. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def metadata(self):
|
||||
"""Gets the metadata of this V1ClusterRoleList. # noqa: E501
|
||||
|
||||
|
||||
:return: The metadata of this V1ClusterRoleList. # noqa: E501
|
||||
:rtype: V1ListMeta
|
||||
"""
|
||||
return self._metadata
|
||||
|
||||
@metadata.setter
|
||||
def metadata(self, metadata):
|
||||
"""Sets the metadata of this V1ClusterRoleList.
|
||||
|
||||
|
||||
:param metadata: The metadata of this V1ClusterRoleList. # noqa: E501
|
||||
:type: V1ListMeta
|
||||
"""
|
||||
|
||||
self._metadata = metadata
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1ClusterRoleList):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1ClusterRoleList):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
233
kubernetes/client/models/v1_cluster_trust_bundle_projection.py
Normal file
233
kubernetes/client/models/v1_cluster_trust_bundle_projection.py
Normal file
|
@ -0,0 +1,233 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1ClusterTrustBundleProjection(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'label_selector': 'V1LabelSelector',
|
||||
'name': 'str',
|
||||
'optional': 'bool',
|
||||
'path': 'str',
|
||||
'signer_name': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'label_selector': 'labelSelector',
|
||||
'name': 'name',
|
||||
'optional': 'optional',
|
||||
'path': 'path',
|
||||
'signer_name': 'signerName'
|
||||
}
|
||||
|
||||
def __init__(self, label_selector=None, name=None, optional=None, path=None, signer_name=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1ClusterTrustBundleProjection - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._label_selector = None
|
||||
self._name = None
|
||||
self._optional = None
|
||||
self._path = None
|
||||
self._signer_name = None
|
||||
self.discriminator = None
|
||||
|
||||
if label_selector is not None:
|
||||
self.label_selector = label_selector
|
||||
if name is not None:
|
||||
self.name = name
|
||||
if optional is not None:
|
||||
self.optional = optional
|
||||
self.path = path
|
||||
if signer_name is not None:
|
||||
self.signer_name = signer_name
|
||||
|
||||
@property
|
||||
def label_selector(self):
|
||||
"""Gets the label_selector of this V1ClusterTrustBundleProjection. # noqa: E501
|
||||
|
||||
|
||||
:return: The label_selector of this V1ClusterTrustBundleProjection. # noqa: E501
|
||||
:rtype: V1LabelSelector
|
||||
"""
|
||||
return self._label_selector
|
||||
|
||||
@label_selector.setter
|
||||
def label_selector(self, label_selector):
|
||||
"""Sets the label_selector of this V1ClusterTrustBundleProjection.
|
||||
|
||||
|
||||
:param label_selector: The label_selector of this V1ClusterTrustBundleProjection. # noqa: E501
|
||||
:type: V1LabelSelector
|
||||
"""
|
||||
|
||||
self._label_selector = label_selector
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""Gets the name of this V1ClusterTrustBundleProjection. # noqa: E501
|
||||
|
||||
Select a single ClusterTrustBundle by object name. Mutually-exclusive with signerName and labelSelector. # noqa: E501
|
||||
|
||||
:return: The name of this V1ClusterTrustBundleProjection. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._name
|
||||
|
||||
@name.setter
|
||||
def name(self, name):
|
||||
"""Sets the name of this V1ClusterTrustBundleProjection.
|
||||
|
||||
Select a single ClusterTrustBundle by object name. Mutually-exclusive with signerName and labelSelector. # noqa: E501
|
||||
|
||||
:param name: The name of this V1ClusterTrustBundleProjection. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._name = name
|
||||
|
||||
@property
|
||||
def optional(self):
|
||||
"""Gets the optional of this V1ClusterTrustBundleProjection. # noqa: E501
|
||||
|
||||
If true, don't block pod startup if the referenced ClusterTrustBundle(s) aren't available. If using name, then the named ClusterTrustBundle is allowed not to exist. If using signerName, then the combination of signerName and labelSelector is allowed to match zero ClusterTrustBundles. # noqa: E501
|
||||
|
||||
:return: The optional of this V1ClusterTrustBundleProjection. # noqa: E501
|
||||
:rtype: bool
|
||||
"""
|
||||
return self._optional
|
||||
|
||||
@optional.setter
|
||||
def optional(self, optional):
|
||||
"""Sets the optional of this V1ClusterTrustBundleProjection.
|
||||
|
||||
If true, don't block pod startup if the referenced ClusterTrustBundle(s) aren't available. If using name, then the named ClusterTrustBundle is allowed not to exist. If using signerName, then the combination of signerName and labelSelector is allowed to match zero ClusterTrustBundles. # noqa: E501
|
||||
|
||||
:param optional: The optional of this V1ClusterTrustBundleProjection. # noqa: E501
|
||||
:type: bool
|
||||
"""
|
||||
|
||||
self._optional = optional
|
||||
|
||||
@property
|
||||
def path(self):
|
||||
"""Gets the path of this V1ClusterTrustBundleProjection. # noqa: E501
|
||||
|
||||
Relative path from the volume root to write the bundle. # noqa: E501
|
||||
|
||||
:return: The path of this V1ClusterTrustBundleProjection. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._path
|
||||
|
||||
@path.setter
|
||||
def path(self, path):
|
||||
"""Sets the path of this V1ClusterTrustBundleProjection.
|
||||
|
||||
Relative path from the volume root to write the bundle. # noqa: E501
|
||||
|
||||
:param path: The path of this V1ClusterTrustBundleProjection. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and path is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501
|
||||
|
||||
self._path = path
|
||||
|
||||
@property
|
||||
def signer_name(self):
|
||||
"""Gets the signer_name of this V1ClusterTrustBundleProjection. # noqa: E501
|
||||
|
||||
Select all ClusterTrustBundles that match this signer name. Mutually-exclusive with name. The contents of all selected ClusterTrustBundles will be unified and deduplicated. # noqa: E501
|
||||
|
||||
:return: The signer_name of this V1ClusterTrustBundleProjection. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._signer_name
|
||||
|
||||
@signer_name.setter
|
||||
def signer_name(self, signer_name):
|
||||
"""Sets the signer_name of this V1ClusterTrustBundleProjection.
|
||||
|
||||
Select all ClusterTrustBundles that match this signer name. Mutually-exclusive with name. The contents of all selected ClusterTrustBundles will be unified and deduplicated. # noqa: E501
|
||||
|
||||
:param signer_name: The signer_name of this V1ClusterTrustBundleProjection. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._signer_name = signer_name
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1ClusterTrustBundleProjection):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1ClusterTrustBundleProjection):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
208
kubernetes/client/models/v1_component_condition.py
Normal file
208
kubernetes/client/models/v1_component_condition.py
Normal file
|
@ -0,0 +1,208 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1ComponentCondition(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'error': 'str',
|
||||
'message': 'str',
|
||||
'status': 'str',
|
||||
'type': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'error': 'error',
|
||||
'message': 'message',
|
||||
'status': 'status',
|
||||
'type': 'type'
|
||||
}
|
||||
|
||||
def __init__(self, error=None, message=None, status=None, type=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1ComponentCondition - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._error = None
|
||||
self._message = None
|
||||
self._status = None
|
||||
self._type = None
|
||||
self.discriminator = None
|
||||
|
||||
if error is not None:
|
||||
self.error = error
|
||||
if message is not None:
|
||||
self.message = message
|
||||
self.status = status
|
||||
self.type = type
|
||||
|
||||
@property
|
||||
def error(self):
|
||||
"""Gets the error of this V1ComponentCondition. # noqa: E501
|
||||
|
||||
Condition error code for a component. For example, a health check error code. # noqa: E501
|
||||
|
||||
:return: The error of this V1ComponentCondition. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._error
|
||||
|
||||
@error.setter
|
||||
def error(self, error):
|
||||
"""Sets the error of this V1ComponentCondition.
|
||||
|
||||
Condition error code for a component. For example, a health check error code. # noqa: E501
|
||||
|
||||
:param error: The error of this V1ComponentCondition. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._error = error
|
||||
|
||||
@property
|
||||
def message(self):
|
||||
"""Gets the message of this V1ComponentCondition. # noqa: E501
|
||||
|
||||
Message about the condition for a component. For example, information about a health check. # noqa: E501
|
||||
|
||||
:return: The message of this V1ComponentCondition. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._message
|
||||
|
||||
@message.setter
|
||||
def message(self, message):
|
||||
"""Sets the message of this V1ComponentCondition.
|
||||
|
||||
Message about the condition for a component. For example, information about a health check. # noqa: E501
|
||||
|
||||
:param message: The message of this V1ComponentCondition. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._message = message
|
||||
|
||||
@property
|
||||
def status(self):
|
||||
"""Gets the status of this V1ComponentCondition. # noqa: E501
|
||||
|
||||
Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\". # noqa: E501
|
||||
|
||||
:return: The status of this V1ComponentCondition. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._status
|
||||
|
||||
@status.setter
|
||||
def status(self, status):
|
||||
"""Sets the status of this V1ComponentCondition.
|
||||
|
||||
Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\". # noqa: E501
|
||||
|
||||
:param status: The status of this V1ComponentCondition. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501
|
||||
|
||||
self._status = status
|
||||
|
||||
@property
|
||||
def type(self):
|
||||
"""Gets the type of this V1ComponentCondition. # noqa: E501
|
||||
|
||||
Type of condition for a component. Valid value: \"Healthy\" # noqa: E501
|
||||
|
||||
:return: The type of this V1ComponentCondition. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._type
|
||||
|
||||
@type.setter
|
||||
def type(self, type):
|
||||
"""Sets the type of this V1ComponentCondition.
|
||||
|
||||
Type of condition for a component. Valid value: \"Healthy\" # noqa: E501
|
||||
|
||||
:param type: The type of this V1ComponentCondition. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501
|
||||
|
||||
self._type = type
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1ComponentCondition):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1ComponentCondition):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
204
kubernetes/client/models/v1_component_status.py
Normal file
204
kubernetes/client/models/v1_component_status.py
Normal file
|
@ -0,0 +1,204 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1ComponentStatus(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'api_version': 'str',
|
||||
'conditions': 'list[V1ComponentCondition]',
|
||||
'kind': 'str',
|
||||
'metadata': 'V1ObjectMeta'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'api_version': 'apiVersion',
|
||||
'conditions': 'conditions',
|
||||
'kind': 'kind',
|
||||
'metadata': 'metadata'
|
||||
}
|
||||
|
||||
def __init__(self, api_version=None, conditions=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1ComponentStatus - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._api_version = None
|
||||
self._conditions = None
|
||||
self._kind = None
|
||||
self._metadata = None
|
||||
self.discriminator = None
|
||||
|
||||
if api_version is not None:
|
||||
self.api_version = api_version
|
||||
if conditions is not None:
|
||||
self.conditions = conditions
|
||||
if kind is not None:
|
||||
self.kind = kind
|
||||
if metadata is not None:
|
||||
self.metadata = metadata
|
||||
|
||||
@property
|
||||
def api_version(self):
|
||||
"""Gets the api_version of this V1ComponentStatus. # noqa: E501
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:return: The api_version of this V1ComponentStatus. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._api_version
|
||||
|
||||
@api_version.setter
|
||||
def api_version(self, api_version):
|
||||
"""Sets 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/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:param api_version: The api_version of this V1ComponentStatus. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._api_version = api_version
|
||||
|
||||
@property
|
||||
def conditions(self):
|
||||
"""Gets the conditions of this V1ComponentStatus. # noqa: E501
|
||||
|
||||
List of component conditions observed # noqa: E501
|
||||
|
||||
:return: The conditions of this V1ComponentStatus. # noqa: E501
|
||||
:rtype: list[V1ComponentCondition]
|
||||
"""
|
||||
return self._conditions
|
||||
|
||||
@conditions.setter
|
||||
def conditions(self, conditions):
|
||||
"""Sets the conditions of this V1ComponentStatus.
|
||||
|
||||
List of component conditions observed # noqa: E501
|
||||
|
||||
:param conditions: The conditions of this V1ComponentStatus. # noqa: E501
|
||||
:type: list[V1ComponentCondition]
|
||||
"""
|
||||
|
||||
self._conditions = conditions
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this V1ComponentStatus. # noqa: E501
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:return: The kind of this V1ComponentStatus. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets 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/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:param kind: The kind of this V1ComponentStatus. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def metadata(self):
|
||||
"""Gets the metadata of this V1ComponentStatus. # noqa: E501
|
||||
|
||||
|
||||
:return: The metadata of this V1ComponentStatus. # noqa: E501
|
||||
:rtype: V1ObjectMeta
|
||||
"""
|
||||
return self._metadata
|
||||
|
||||
@metadata.setter
|
||||
def metadata(self, metadata):
|
||||
"""Sets the metadata of this V1ComponentStatus.
|
||||
|
||||
|
||||
:param metadata: The metadata of this V1ComponentStatus. # noqa: E501
|
||||
:type: V1ObjectMeta
|
||||
"""
|
||||
|
||||
self._metadata = metadata
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1ComponentStatus):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1ComponentStatus):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
205
kubernetes/client/models/v1_component_status_list.py
Normal file
205
kubernetes/client/models/v1_component_status_list.py
Normal file
|
@ -0,0 +1,205 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1ComponentStatusList(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'api_version': 'str',
|
||||
'items': 'list[V1ComponentStatus]',
|
||||
'kind': 'str',
|
||||
'metadata': 'V1ListMeta'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'api_version': 'apiVersion',
|
||||
'items': 'items',
|
||||
'kind': 'kind',
|
||||
'metadata': 'metadata'
|
||||
}
|
||||
|
||||
def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1ComponentStatusList - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._api_version = None
|
||||
self._items = None
|
||||
self._kind = None
|
||||
self._metadata = None
|
||||
self.discriminator = None
|
||||
|
||||
if api_version is not None:
|
||||
self.api_version = api_version
|
||||
self.items = items
|
||||
if kind is not None:
|
||||
self.kind = kind
|
||||
if metadata is not None:
|
||||
self.metadata = metadata
|
||||
|
||||
@property
|
||||
def api_version(self):
|
||||
"""Gets the api_version of this V1ComponentStatusList. # noqa: E501
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:return: The api_version of this V1ComponentStatusList. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._api_version
|
||||
|
||||
@api_version.setter
|
||||
def api_version(self, api_version):
|
||||
"""Sets 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/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:param api_version: The api_version of this V1ComponentStatusList. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._api_version = api_version
|
||||
|
||||
@property
|
||||
def items(self):
|
||||
"""Gets the items of this V1ComponentStatusList. # noqa: E501
|
||||
|
||||
List of ComponentStatus objects. # noqa: E501
|
||||
|
||||
:return: The items of this V1ComponentStatusList. # noqa: E501
|
||||
:rtype: list[V1ComponentStatus]
|
||||
"""
|
||||
return self._items
|
||||
|
||||
@items.setter
|
||||
def items(self, items):
|
||||
"""Sets the items of this V1ComponentStatusList.
|
||||
|
||||
List of ComponentStatus objects. # noqa: E501
|
||||
|
||||
:param items: The items of this V1ComponentStatusList. # noqa: E501
|
||||
:type: list[V1ComponentStatus]
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501
|
||||
|
||||
self._items = items
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this V1ComponentStatusList. # noqa: E501
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:return: The kind of this V1ComponentStatusList. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets 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/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:param kind: The kind of this V1ComponentStatusList. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def metadata(self):
|
||||
"""Gets the metadata of this V1ComponentStatusList. # noqa: E501
|
||||
|
||||
|
||||
:return: The metadata of this V1ComponentStatusList. # noqa: E501
|
||||
:rtype: V1ListMeta
|
||||
"""
|
||||
return self._metadata
|
||||
|
||||
@metadata.setter
|
||||
def metadata(self, metadata):
|
||||
"""Sets the metadata of this V1ComponentStatusList.
|
||||
|
||||
|
||||
:param metadata: The metadata of this V1ComponentStatusList. # noqa: E501
|
||||
:type: V1ListMeta
|
||||
"""
|
||||
|
||||
self._metadata = metadata
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1ComponentStatusList):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1ComponentStatusList):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
267
kubernetes/client/models/v1_condition.py
Normal file
267
kubernetes/client/models/v1_condition.py
Normal file
|
@ -0,0 +1,267 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1Condition(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'last_transition_time': 'datetime',
|
||||
'message': 'str',
|
||||
'observed_generation': 'int',
|
||||
'reason': 'str',
|
||||
'status': 'str',
|
||||
'type': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'last_transition_time': 'lastTransitionTime',
|
||||
'message': 'message',
|
||||
'observed_generation': 'observedGeneration',
|
||||
'reason': 'reason',
|
||||
'status': 'status',
|
||||
'type': 'type'
|
||||
}
|
||||
|
||||
def __init__(self, last_transition_time=None, message=None, observed_generation=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1Condition - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._last_transition_time = None
|
||||
self._message = None
|
||||
self._observed_generation = None
|
||||
self._reason = None
|
||||
self._status = None
|
||||
self._type = None
|
||||
self.discriminator = None
|
||||
|
||||
self.last_transition_time = last_transition_time
|
||||
self.message = message
|
||||
if observed_generation is not None:
|
||||
self.observed_generation = observed_generation
|
||||
self.reason = reason
|
||||
self.status = status
|
||||
self.type = type
|
||||
|
||||
@property
|
||||
def last_transition_time(self):
|
||||
"""Gets the last_transition_time of this V1Condition. # noqa: E501
|
||||
|
||||
lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. # noqa: E501
|
||||
|
||||
:return: The last_transition_time of this V1Condition. # noqa: E501
|
||||
:rtype: datetime
|
||||
"""
|
||||
return self._last_transition_time
|
||||
|
||||
@last_transition_time.setter
|
||||
def last_transition_time(self, last_transition_time):
|
||||
"""Sets the last_transition_time of this V1Condition.
|
||||
|
||||
lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. # noqa: E501
|
||||
|
||||
:param last_transition_time: The last_transition_time of this V1Condition. # noqa: E501
|
||||
:type: datetime
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and last_transition_time is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `last_transition_time`, must not be `None`") # noqa: E501
|
||||
|
||||
self._last_transition_time = last_transition_time
|
||||
|
||||
@property
|
||||
def message(self):
|
||||
"""Gets the message of this V1Condition. # noqa: E501
|
||||
|
||||
message is a human readable message indicating details about the transition. This may be an empty string. # noqa: E501
|
||||
|
||||
:return: The message of this V1Condition. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._message
|
||||
|
||||
@message.setter
|
||||
def message(self, message):
|
||||
"""Sets the message of this V1Condition.
|
||||
|
||||
message is a human readable message indicating details about the transition. This may be an empty string. # noqa: E501
|
||||
|
||||
:param message: The message of this V1Condition. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and message is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501
|
||||
|
||||
self._message = message
|
||||
|
||||
@property
|
||||
def observed_generation(self):
|
||||
"""Gets the observed_generation of this V1Condition. # noqa: E501
|
||||
|
||||
observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. # noqa: E501
|
||||
|
||||
:return: The observed_generation of this V1Condition. # noqa: E501
|
||||
:rtype: int
|
||||
"""
|
||||
return self._observed_generation
|
||||
|
||||
@observed_generation.setter
|
||||
def observed_generation(self, observed_generation):
|
||||
"""Sets the observed_generation of this V1Condition.
|
||||
|
||||
observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. # noqa: E501
|
||||
|
||||
:param observed_generation: The observed_generation of this V1Condition. # noqa: E501
|
||||
:type: int
|
||||
"""
|
||||
|
||||
self._observed_generation = observed_generation
|
||||
|
||||
@property
|
||||
def reason(self):
|
||||
"""Gets the reason of this V1Condition. # noqa: E501
|
||||
|
||||
reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty. # noqa: E501
|
||||
|
||||
:return: The reason of this V1Condition. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._reason
|
||||
|
||||
@reason.setter
|
||||
def reason(self, reason):
|
||||
"""Sets the reason of this V1Condition.
|
||||
|
||||
reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty. # noqa: E501
|
||||
|
||||
:param reason: The reason of this V1Condition. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and reason is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `reason`, must not be `None`") # noqa: E501
|
||||
|
||||
self._reason = reason
|
||||
|
||||
@property
|
||||
def status(self):
|
||||
"""Gets the status of this V1Condition. # noqa: E501
|
||||
|
||||
status of the condition, one of True, False, Unknown. # noqa: E501
|
||||
|
||||
:return: The status of this V1Condition. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._status
|
||||
|
||||
@status.setter
|
||||
def status(self, status):
|
||||
"""Sets the status of this V1Condition.
|
||||
|
||||
status of the condition, one of True, False, Unknown. # noqa: E501
|
||||
|
||||
:param status: The status of this V1Condition. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501
|
||||
|
||||
self._status = status
|
||||
|
||||
@property
|
||||
def type(self):
|
||||
"""Gets the type of this V1Condition. # noqa: E501
|
||||
|
||||
type of condition in CamelCase or in foo.example.com/CamelCase. # noqa: E501
|
||||
|
||||
:return: The type of this V1Condition. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._type
|
||||
|
||||
@type.setter
|
||||
def type(self, type):
|
||||
"""Sets the type of this V1Condition.
|
||||
|
||||
type of condition in CamelCase or in foo.example.com/CamelCase. # noqa: E501
|
||||
|
||||
:param type: The type of this V1Condition. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501
|
||||
|
||||
self._type = type
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1Condition):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1Condition):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
260
kubernetes/client/models/v1_config_map.py
Normal file
260
kubernetes/client/models/v1_config_map.py
Normal file
|
@ -0,0 +1,260 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1ConfigMap(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'api_version': 'str',
|
||||
'binary_data': 'dict(str, str)',
|
||||
'data': 'dict(str, str)',
|
||||
'immutable': 'bool',
|
||||
'kind': 'str',
|
||||
'metadata': 'V1ObjectMeta'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'api_version': 'apiVersion',
|
||||
'binary_data': 'binaryData',
|
||||
'data': 'data',
|
||||
'immutable': 'immutable',
|
||||
'kind': 'kind',
|
||||
'metadata': 'metadata'
|
||||
}
|
||||
|
||||
def __init__(self, api_version=None, binary_data=None, data=None, immutable=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1ConfigMap - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._api_version = None
|
||||
self._binary_data = None
|
||||
self._data = None
|
||||
self._immutable = None
|
||||
self._kind = None
|
||||
self._metadata = None
|
||||
self.discriminator = None
|
||||
|
||||
if api_version is not None:
|
||||
self.api_version = api_version
|
||||
if binary_data is not None:
|
||||
self.binary_data = binary_data
|
||||
if data is not None:
|
||||
self.data = data
|
||||
if immutable is not None:
|
||||
self.immutable = immutable
|
||||
if kind is not None:
|
||||
self.kind = kind
|
||||
if metadata is not None:
|
||||
self.metadata = metadata
|
||||
|
||||
@property
|
||||
def api_version(self):
|
||||
"""Gets the api_version of this V1ConfigMap. # noqa: E501
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:return: The api_version of this V1ConfigMap. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._api_version
|
||||
|
||||
@api_version.setter
|
||||
def api_version(self, api_version):
|
||||
"""Sets the api_version of this V1ConfigMap.
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:param api_version: The api_version of this V1ConfigMap. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._api_version = api_version
|
||||
|
||||
@property
|
||||
def binary_data(self):
|
||||
"""Gets the binary_data of this V1ConfigMap. # noqa: E501
|
||||
|
||||
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. # noqa: E501
|
||||
|
||||
:return: The binary_data of this V1ConfigMap. # noqa: E501
|
||||
:rtype: dict(str, str)
|
||||
"""
|
||||
return self._binary_data
|
||||
|
||||
@binary_data.setter
|
||||
def binary_data(self, binary_data):
|
||||
"""Sets 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. # noqa: E501
|
||||
|
||||
:param binary_data: The binary_data of this V1ConfigMap. # noqa: E501
|
||||
:type: dict(str, str)
|
||||
"""
|
||||
|
||||
self._binary_data = binary_data
|
||||
|
||||
@property
|
||||
def data(self):
|
||||
"""Gets the data of this V1ConfigMap. # noqa: E501
|
||||
|
||||
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. # noqa: E501
|
||||
|
||||
:return: The data of this V1ConfigMap. # noqa: E501
|
||||
:rtype: dict(str, str)
|
||||
"""
|
||||
return self._data
|
||||
|
||||
@data.setter
|
||||
def data(self, data):
|
||||
"""Sets 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. # noqa: E501
|
||||
|
||||
:param data: The data of this V1ConfigMap. # noqa: E501
|
||||
:type: dict(str, str)
|
||||
"""
|
||||
|
||||
self._data = data
|
||||
|
||||
@property
|
||||
def immutable(self):
|
||||
"""Gets the immutable of this V1ConfigMap. # noqa: E501
|
||||
|
||||
Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. # noqa: E501
|
||||
|
||||
:return: The immutable of this V1ConfigMap. # noqa: E501
|
||||
:rtype: bool
|
||||
"""
|
||||
return self._immutable
|
||||
|
||||
@immutable.setter
|
||||
def immutable(self, immutable):
|
||||
"""Sets the immutable of this V1ConfigMap.
|
||||
|
||||
Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. # noqa: E501
|
||||
|
||||
:param immutable: The immutable of this V1ConfigMap. # noqa: E501
|
||||
:type: bool
|
||||
"""
|
||||
|
||||
self._immutable = immutable
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this V1ConfigMap. # noqa: E501
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:return: The kind of this V1ConfigMap. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets the kind of this V1ConfigMap.
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:param kind: The kind of this V1ConfigMap. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def metadata(self):
|
||||
"""Gets the metadata of this V1ConfigMap. # noqa: E501
|
||||
|
||||
|
||||
:return: The metadata of this V1ConfigMap. # noqa: E501
|
||||
:rtype: V1ObjectMeta
|
||||
"""
|
||||
return self._metadata
|
||||
|
||||
@metadata.setter
|
||||
def metadata(self, metadata):
|
||||
"""Sets the metadata of this V1ConfigMap.
|
||||
|
||||
|
||||
:param metadata: The metadata of this V1ConfigMap. # noqa: E501
|
||||
:type: V1ObjectMeta
|
||||
"""
|
||||
|
||||
self._metadata = metadata
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1ConfigMap):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1ConfigMap):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
150
kubernetes/client/models/v1_config_map_env_source.py
Normal file
150
kubernetes/client/models/v1_config_map_env_source.py
Normal file
|
@ -0,0 +1,150 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1ConfigMapEnvSource(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'name': 'str',
|
||||
'optional': 'bool'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'name': 'name',
|
||||
'optional': 'optional'
|
||||
}
|
||||
|
||||
def __init__(self, name=None, optional=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1ConfigMapEnvSource - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._name = None
|
||||
self._optional = None
|
||||
self.discriminator = None
|
||||
|
||||
if name is not None:
|
||||
self.name = name
|
||||
if optional is not None:
|
||||
self.optional = optional
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""Gets the name of this V1ConfigMapEnvSource. # noqa: E501
|
||||
|
||||
Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501
|
||||
|
||||
:return: The name of this V1ConfigMapEnvSource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._name
|
||||
|
||||
@name.setter
|
||||
def name(self, name):
|
||||
"""Sets the name of this V1ConfigMapEnvSource.
|
||||
|
||||
Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501
|
||||
|
||||
:param name: The name of this V1ConfigMapEnvSource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._name = name
|
||||
|
||||
@property
|
||||
def optional(self):
|
||||
"""Gets the optional of this V1ConfigMapEnvSource. # noqa: E501
|
||||
|
||||
Specify whether the ConfigMap must be defined # noqa: E501
|
||||
|
||||
:return: The optional of this V1ConfigMapEnvSource. # noqa: E501
|
||||
:rtype: bool
|
||||
"""
|
||||
return self._optional
|
||||
|
||||
@optional.setter
|
||||
def optional(self, optional):
|
||||
"""Sets the optional of this V1ConfigMapEnvSource.
|
||||
|
||||
Specify whether the ConfigMap must be defined # noqa: E501
|
||||
|
||||
:param optional: The optional of this V1ConfigMapEnvSource. # noqa: E501
|
||||
:type: bool
|
||||
"""
|
||||
|
||||
self._optional = optional
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1ConfigMapEnvSource):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1ConfigMapEnvSource):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
179
kubernetes/client/models/v1_config_map_key_selector.py
Normal file
179
kubernetes/client/models/v1_config_map_key_selector.py
Normal file
|
@ -0,0 +1,179 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1ConfigMapKeySelector(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'key': 'str',
|
||||
'name': 'str',
|
||||
'optional': 'bool'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'key': 'key',
|
||||
'name': 'name',
|
||||
'optional': 'optional'
|
||||
}
|
||||
|
||||
def __init__(self, key=None, name=None, optional=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1ConfigMapKeySelector - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._key = None
|
||||
self._name = None
|
||||
self._optional = None
|
||||
self.discriminator = None
|
||||
|
||||
self.key = key
|
||||
if name is not None:
|
||||
self.name = name
|
||||
if optional is not None:
|
||||
self.optional = optional
|
||||
|
||||
@property
|
||||
def key(self):
|
||||
"""Gets the key of this V1ConfigMapKeySelector. # noqa: E501
|
||||
|
||||
The key to select. # noqa: E501
|
||||
|
||||
:return: The key of this V1ConfigMapKeySelector. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._key
|
||||
|
||||
@key.setter
|
||||
def key(self, key):
|
||||
"""Sets the key of this V1ConfigMapKeySelector.
|
||||
|
||||
The key to select. # noqa: E501
|
||||
|
||||
:param key: The key of this V1ConfigMapKeySelector. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and key is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501
|
||||
|
||||
self._key = key
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""Gets the name of this V1ConfigMapKeySelector. # noqa: E501
|
||||
|
||||
Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501
|
||||
|
||||
:return: The name of this V1ConfigMapKeySelector. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._name
|
||||
|
||||
@name.setter
|
||||
def name(self, name):
|
||||
"""Sets the name of this V1ConfigMapKeySelector.
|
||||
|
||||
Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501
|
||||
|
||||
:param name: The name of this V1ConfigMapKeySelector. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._name = name
|
||||
|
||||
@property
|
||||
def optional(self):
|
||||
"""Gets the optional of this V1ConfigMapKeySelector. # noqa: E501
|
||||
|
||||
Specify whether the ConfigMap or its key must be defined # noqa: E501
|
||||
|
||||
:return: The optional of this V1ConfigMapKeySelector. # noqa: E501
|
||||
:rtype: bool
|
||||
"""
|
||||
return self._optional
|
||||
|
||||
@optional.setter
|
||||
def optional(self, optional):
|
||||
"""Sets the optional of this V1ConfigMapKeySelector.
|
||||
|
||||
Specify whether the ConfigMap or its key must be defined # noqa: E501
|
||||
|
||||
:param optional: The optional of this V1ConfigMapKeySelector. # noqa: E501
|
||||
:type: bool
|
||||
"""
|
||||
|
||||
self._optional = optional
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1ConfigMapKeySelector):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1ConfigMapKeySelector):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
205
kubernetes/client/models/v1_config_map_list.py
Normal file
205
kubernetes/client/models/v1_config_map_list.py
Normal file
|
@ -0,0 +1,205 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1ConfigMapList(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'api_version': 'str',
|
||||
'items': 'list[V1ConfigMap]',
|
||||
'kind': 'str',
|
||||
'metadata': 'V1ListMeta'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'api_version': 'apiVersion',
|
||||
'items': 'items',
|
||||
'kind': 'kind',
|
||||
'metadata': 'metadata'
|
||||
}
|
||||
|
||||
def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1ConfigMapList - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._api_version = None
|
||||
self._items = None
|
||||
self._kind = None
|
||||
self._metadata = None
|
||||
self.discriminator = None
|
||||
|
||||
if api_version is not None:
|
||||
self.api_version = api_version
|
||||
self.items = items
|
||||
if kind is not None:
|
||||
self.kind = kind
|
||||
if metadata is not None:
|
||||
self.metadata = metadata
|
||||
|
||||
@property
|
||||
def api_version(self):
|
||||
"""Gets the api_version of this V1ConfigMapList. # noqa: E501
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:return: The api_version of this V1ConfigMapList. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._api_version
|
||||
|
||||
@api_version.setter
|
||||
def api_version(self, api_version):
|
||||
"""Sets the api_version of this V1ConfigMapList.
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:param api_version: The api_version of this V1ConfigMapList. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._api_version = api_version
|
||||
|
||||
@property
|
||||
def items(self):
|
||||
"""Gets the items of this V1ConfigMapList. # noqa: E501
|
||||
|
||||
Items is the list of ConfigMaps. # noqa: E501
|
||||
|
||||
:return: The items of this V1ConfigMapList. # noqa: E501
|
||||
:rtype: list[V1ConfigMap]
|
||||
"""
|
||||
return self._items
|
||||
|
||||
@items.setter
|
||||
def items(self, items):
|
||||
"""Sets the items of this V1ConfigMapList.
|
||||
|
||||
Items is the list of ConfigMaps. # noqa: E501
|
||||
|
||||
:param items: The items of this V1ConfigMapList. # noqa: E501
|
||||
:type: list[V1ConfigMap]
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501
|
||||
|
||||
self._items = items
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this V1ConfigMapList. # noqa: E501
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:return: The kind of this V1ConfigMapList. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets the kind of this V1ConfigMapList.
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:param kind: The kind of this V1ConfigMapList. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def metadata(self):
|
||||
"""Gets the metadata of this V1ConfigMapList. # noqa: E501
|
||||
|
||||
|
||||
:return: The metadata of this V1ConfigMapList. # noqa: E501
|
||||
:rtype: V1ListMeta
|
||||
"""
|
||||
return self._metadata
|
||||
|
||||
@metadata.setter
|
||||
def metadata(self, metadata):
|
||||
"""Sets the metadata of this V1ConfigMapList.
|
||||
|
||||
|
||||
:param metadata: The metadata of this V1ConfigMapList. # noqa: E501
|
||||
:type: V1ListMeta
|
||||
"""
|
||||
|
||||
self._metadata = metadata
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1ConfigMapList):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1ConfigMapList):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
237
kubernetes/client/models/v1_config_map_node_config_source.py
Normal file
237
kubernetes/client/models/v1_config_map_node_config_source.py
Normal file
|
@ -0,0 +1,237 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1ConfigMapNodeConfigSource(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'kubelet_config_key': 'str',
|
||||
'name': 'str',
|
||||
'namespace': 'str',
|
||||
'resource_version': 'str',
|
||||
'uid': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'kubelet_config_key': 'kubeletConfigKey',
|
||||
'name': 'name',
|
||||
'namespace': 'namespace',
|
||||
'resource_version': 'resourceVersion',
|
||||
'uid': 'uid'
|
||||
}
|
||||
|
||||
def __init__(self, kubelet_config_key=None, name=None, namespace=None, resource_version=None, uid=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1ConfigMapNodeConfigSource - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._kubelet_config_key = None
|
||||
self._name = None
|
||||
self._namespace = None
|
||||
self._resource_version = None
|
||||
self._uid = None
|
||||
self.discriminator = None
|
||||
|
||||
self.kubelet_config_key = kubelet_config_key
|
||||
self.name = name
|
||||
self.namespace = namespace
|
||||
if resource_version is not None:
|
||||
self.resource_version = resource_version
|
||||
if uid is not None:
|
||||
self.uid = uid
|
||||
|
||||
@property
|
||||
def kubelet_config_key(self):
|
||||
"""Gets the kubelet_config_key of this V1ConfigMapNodeConfigSource. # noqa: E501
|
||||
|
||||
KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases. # noqa: E501
|
||||
|
||||
:return: The kubelet_config_key of this V1ConfigMapNodeConfigSource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kubelet_config_key
|
||||
|
||||
@kubelet_config_key.setter
|
||||
def kubelet_config_key(self, kubelet_config_key):
|
||||
"""Sets the kubelet_config_key of this V1ConfigMapNodeConfigSource.
|
||||
|
||||
KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases. # noqa: E501
|
||||
|
||||
:param kubelet_config_key: The kubelet_config_key of this V1ConfigMapNodeConfigSource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and kubelet_config_key is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `kubelet_config_key`, must not be `None`") # noqa: E501
|
||||
|
||||
self._kubelet_config_key = kubelet_config_key
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""Gets the name of this V1ConfigMapNodeConfigSource. # noqa: E501
|
||||
|
||||
Name is the metadata.name of the referenced ConfigMap. This field is required in all cases. # noqa: E501
|
||||
|
||||
:return: The name of this V1ConfigMapNodeConfigSource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._name
|
||||
|
||||
@name.setter
|
||||
def name(self, name):
|
||||
"""Sets the name of this V1ConfigMapNodeConfigSource.
|
||||
|
||||
Name is the metadata.name of the referenced ConfigMap. This field is required in all cases. # noqa: E501
|
||||
|
||||
:param name: The name of this V1ConfigMapNodeConfigSource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
||||
|
||||
self._name = name
|
||||
|
||||
@property
|
||||
def namespace(self):
|
||||
"""Gets the namespace of this V1ConfigMapNodeConfigSource. # noqa: E501
|
||||
|
||||
Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases. # noqa: E501
|
||||
|
||||
:return: The namespace of this V1ConfigMapNodeConfigSource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._namespace
|
||||
|
||||
@namespace.setter
|
||||
def namespace(self, namespace):
|
||||
"""Sets the namespace of this V1ConfigMapNodeConfigSource.
|
||||
|
||||
Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases. # noqa: E501
|
||||
|
||||
:param namespace: The namespace of this V1ConfigMapNodeConfigSource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and namespace is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `namespace`, must not be `None`") # noqa: E501
|
||||
|
||||
self._namespace = namespace
|
||||
|
||||
@property
|
||||
def resource_version(self):
|
||||
"""Gets the resource_version of this V1ConfigMapNodeConfigSource. # noqa: E501
|
||||
|
||||
ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. # noqa: E501
|
||||
|
||||
:return: The resource_version of this V1ConfigMapNodeConfigSource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._resource_version
|
||||
|
||||
@resource_version.setter
|
||||
def resource_version(self, resource_version):
|
||||
"""Sets the resource_version of this V1ConfigMapNodeConfigSource.
|
||||
|
||||
ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. # noqa: E501
|
||||
|
||||
:param resource_version: The resource_version of this V1ConfigMapNodeConfigSource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._resource_version = resource_version
|
||||
|
||||
@property
|
||||
def uid(self):
|
||||
"""Gets the uid of this V1ConfigMapNodeConfigSource. # noqa: E501
|
||||
|
||||
UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. # noqa: E501
|
||||
|
||||
:return: The uid of this V1ConfigMapNodeConfigSource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._uid
|
||||
|
||||
@uid.setter
|
||||
def uid(self, uid):
|
||||
"""Sets the uid of this V1ConfigMapNodeConfigSource.
|
||||
|
||||
UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. # noqa: E501
|
||||
|
||||
:param uid: The uid of this V1ConfigMapNodeConfigSource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._uid = uid
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1ConfigMapNodeConfigSource):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1ConfigMapNodeConfigSource):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
178
kubernetes/client/models/v1_config_map_projection.py
Normal file
178
kubernetes/client/models/v1_config_map_projection.py
Normal file
|
@ -0,0 +1,178 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1ConfigMapProjection(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'items': 'list[V1KeyToPath]',
|
||||
'name': 'str',
|
||||
'optional': 'bool'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'items': 'items',
|
||||
'name': 'name',
|
||||
'optional': 'optional'
|
||||
}
|
||||
|
||||
def __init__(self, items=None, name=None, optional=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1ConfigMapProjection - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._items = None
|
||||
self._name = None
|
||||
self._optional = None
|
||||
self.discriminator = None
|
||||
|
||||
if items is not None:
|
||||
self.items = items
|
||||
if name is not None:
|
||||
self.name = name
|
||||
if optional is not None:
|
||||
self.optional = optional
|
||||
|
||||
@property
|
||||
def items(self):
|
||||
"""Gets the items of this V1ConfigMapProjection. # noqa: E501
|
||||
|
||||
items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. # noqa: E501
|
||||
|
||||
:return: The items of this V1ConfigMapProjection. # noqa: E501
|
||||
:rtype: list[V1KeyToPath]
|
||||
"""
|
||||
return self._items
|
||||
|
||||
@items.setter
|
||||
def items(self, items):
|
||||
"""Sets the items of this V1ConfigMapProjection.
|
||||
|
||||
items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. # noqa: E501
|
||||
|
||||
:param items: The items of this V1ConfigMapProjection. # noqa: E501
|
||||
:type: list[V1KeyToPath]
|
||||
"""
|
||||
|
||||
self._items = items
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""Gets the name of this V1ConfigMapProjection. # noqa: E501
|
||||
|
||||
Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501
|
||||
|
||||
:return: The name of this V1ConfigMapProjection. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._name
|
||||
|
||||
@name.setter
|
||||
def name(self, name):
|
||||
"""Sets the name of this V1ConfigMapProjection.
|
||||
|
||||
Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501
|
||||
|
||||
:param name: The name of this V1ConfigMapProjection. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._name = name
|
||||
|
||||
@property
|
||||
def optional(self):
|
||||
"""Gets the optional of this V1ConfigMapProjection. # noqa: E501
|
||||
|
||||
optional specify whether the ConfigMap or its keys must be defined # noqa: E501
|
||||
|
||||
:return: The optional of this V1ConfigMapProjection. # noqa: E501
|
||||
:rtype: bool
|
||||
"""
|
||||
return self._optional
|
||||
|
||||
@optional.setter
|
||||
def optional(self, optional):
|
||||
"""Sets the optional of this V1ConfigMapProjection.
|
||||
|
||||
optional specify whether the ConfigMap or its keys must be defined # noqa: E501
|
||||
|
||||
:param optional: The optional of this V1ConfigMapProjection. # noqa: E501
|
||||
:type: bool
|
||||
"""
|
||||
|
||||
self._optional = optional
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1ConfigMapProjection):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1ConfigMapProjection):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
206
kubernetes/client/models/v1_config_map_volume_source.py
Normal file
206
kubernetes/client/models/v1_config_map_volume_source.py
Normal file
|
@ -0,0 +1,206 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1ConfigMapVolumeSource(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'default_mode': 'int',
|
||||
'items': 'list[V1KeyToPath]',
|
||||
'name': 'str',
|
||||
'optional': 'bool'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'default_mode': 'defaultMode',
|
||||
'items': 'items',
|
||||
'name': 'name',
|
||||
'optional': 'optional'
|
||||
}
|
||||
|
||||
def __init__(self, default_mode=None, items=None, name=None, optional=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1ConfigMapVolumeSource - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._default_mode = None
|
||||
self._items = None
|
||||
self._name = None
|
||||
self._optional = None
|
||||
self.discriminator = None
|
||||
|
||||
if default_mode is not None:
|
||||
self.default_mode = default_mode
|
||||
if items is not None:
|
||||
self.items = items
|
||||
if name is not None:
|
||||
self.name = name
|
||||
if optional is not None:
|
||||
self.optional = optional
|
||||
|
||||
@property
|
||||
def default_mode(self):
|
||||
"""Gets the default_mode of this V1ConfigMapVolumeSource. # noqa: E501
|
||||
|
||||
defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. # noqa: E501
|
||||
|
||||
:return: The default_mode of this V1ConfigMapVolumeSource. # noqa: E501
|
||||
:rtype: int
|
||||
"""
|
||||
return self._default_mode
|
||||
|
||||
@default_mode.setter
|
||||
def default_mode(self, default_mode):
|
||||
"""Sets the default_mode of this V1ConfigMapVolumeSource.
|
||||
|
||||
defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. # noqa: E501
|
||||
|
||||
:param default_mode: The default_mode of this V1ConfigMapVolumeSource. # noqa: E501
|
||||
:type: int
|
||||
"""
|
||||
|
||||
self._default_mode = default_mode
|
||||
|
||||
@property
|
||||
def items(self):
|
||||
"""Gets the items of this V1ConfigMapVolumeSource. # noqa: E501
|
||||
|
||||
items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. # noqa: E501
|
||||
|
||||
:return: The items of this V1ConfigMapVolumeSource. # noqa: E501
|
||||
:rtype: list[V1KeyToPath]
|
||||
"""
|
||||
return self._items
|
||||
|
||||
@items.setter
|
||||
def items(self, items):
|
||||
"""Sets the items of this V1ConfigMapVolumeSource.
|
||||
|
||||
items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. # noqa: E501
|
||||
|
||||
:param items: The items of this V1ConfigMapVolumeSource. # noqa: E501
|
||||
:type: list[V1KeyToPath]
|
||||
"""
|
||||
|
||||
self._items = items
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""Gets the name of this V1ConfigMapVolumeSource. # noqa: E501
|
||||
|
||||
Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501
|
||||
|
||||
:return: The name of this V1ConfigMapVolumeSource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._name
|
||||
|
||||
@name.setter
|
||||
def name(self, name):
|
||||
"""Sets the name of this V1ConfigMapVolumeSource.
|
||||
|
||||
Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501
|
||||
|
||||
:param name: The name of this V1ConfigMapVolumeSource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._name = name
|
||||
|
||||
@property
|
||||
def optional(self):
|
||||
"""Gets the optional of this V1ConfigMapVolumeSource. # noqa: E501
|
||||
|
||||
optional specify whether the ConfigMap or its keys must be defined # noqa: E501
|
||||
|
||||
:return: The optional of this V1ConfigMapVolumeSource. # noqa: E501
|
||||
:rtype: bool
|
||||
"""
|
||||
return self._optional
|
||||
|
||||
@optional.setter
|
||||
def optional(self, optional):
|
||||
"""Sets the optional of this V1ConfigMapVolumeSource.
|
||||
|
||||
optional specify whether the ConfigMap or its keys must be defined # noqa: E501
|
||||
|
||||
:param optional: The optional of this V1ConfigMapVolumeSource. # noqa: E501
|
||||
:type: bool
|
||||
"""
|
||||
|
||||
self._optional = optional
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1ConfigMapVolumeSource):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1ConfigMapVolumeSource):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
755
kubernetes/client/models/v1_container.py
Normal file
755
kubernetes/client/models/v1_container.py
Normal file
|
@ -0,0 +1,755 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1Container(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'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',
|
||||
'resize_policy': 'list[V1ContainerResizePolicy]',
|
||||
'resources': 'V1ResourceRequirements',
|
||||
'restart_policy': 'str',
|
||||
'security_context': 'V1SecurityContext',
|
||||
'startup_probe': 'V1Probe',
|
||||
'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'
|
||||
}
|
||||
|
||||
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',
|
||||
'resize_policy': 'resizePolicy',
|
||||
'resources': 'resources',
|
||||
'restart_policy': 'restartPolicy',
|
||||
'security_context': 'securityContext',
|
||||
'startup_probe': 'startupProbe',
|
||||
'stdin': 'stdin',
|
||||
'stdin_once': 'stdinOnce',
|
||||
'termination_message_path': 'terminationMessagePath',
|
||||
'termination_message_policy': 'terminationMessagePolicy',
|
||||
'tty': 'tty',
|
||||
'volume_devices': 'volumeDevices',
|
||||
'volume_mounts': 'volumeMounts',
|
||||
'working_dir': 'workingDir'
|
||||
}
|
||||
|
||||
def __init__(self, args=None, command=None, env=None, env_from=None, image=None, image_pull_policy=None, lifecycle=None, liveness_probe=None, name=None, ports=None, readiness_probe=None, resize_policy=None, resources=None, restart_policy=None, security_context=None, startup_probe=None, stdin=None, stdin_once=None, termination_message_path=None, termination_message_policy=None, tty=None, volume_devices=None, volume_mounts=None, working_dir=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1Container - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._args = None
|
||||
self._command = None
|
||||
self._env = None
|
||||
self._env_from = None
|
||||
self._image = None
|
||||
self._image_pull_policy = None
|
||||
self._lifecycle = None
|
||||
self._liveness_probe = None
|
||||
self._name = None
|
||||
self._ports = None
|
||||
self._readiness_probe = None
|
||||
self._resize_policy = None
|
||||
self._resources = None
|
||||
self._restart_policy = None
|
||||
self._security_context = None
|
||||
self._startup_probe = None
|
||||
self._stdin = None
|
||||
self._stdin_once = None
|
||||
self._termination_message_path = None
|
||||
self._termination_message_policy = None
|
||||
self._tty = None
|
||||
self._volume_devices = None
|
||||
self._volume_mounts = None
|
||||
self._working_dir = None
|
||||
self.discriminator = None
|
||||
|
||||
if args is not None:
|
||||
self.args = args
|
||||
if command is not None:
|
||||
self.command = command
|
||||
if env is not None:
|
||||
self.env = env
|
||||
if env_from is not None:
|
||||
self.env_from = env_from
|
||||
if image is not None:
|
||||
self.image = image
|
||||
if image_pull_policy is not None:
|
||||
self.image_pull_policy = image_pull_policy
|
||||
if lifecycle is not None:
|
||||
self.lifecycle = lifecycle
|
||||
if liveness_probe is not None:
|
||||
self.liveness_probe = liveness_probe
|
||||
self.name = name
|
||||
if ports is not None:
|
||||
self.ports = ports
|
||||
if readiness_probe is not None:
|
||||
self.readiness_probe = readiness_probe
|
||||
if resize_policy is not None:
|
||||
self.resize_policy = resize_policy
|
||||
if resources is not None:
|
||||
self.resources = resources
|
||||
if restart_policy is not None:
|
||||
self.restart_policy = restart_policy
|
||||
if security_context is not None:
|
||||
self.security_context = security_context
|
||||
if startup_probe is not None:
|
||||
self.startup_probe = startup_probe
|
||||
if stdin is not None:
|
||||
self.stdin = stdin
|
||||
if stdin_once is not None:
|
||||
self.stdin_once = stdin_once
|
||||
if termination_message_path is not None:
|
||||
self.termination_message_path = termination_message_path
|
||||
if termination_message_policy is not None:
|
||||
self.termination_message_policy = termination_message_policy
|
||||
if tty is not None:
|
||||
self.tty = tty
|
||||
if volume_devices is not None:
|
||||
self.volume_devices = volume_devices
|
||||
if volume_mounts is not None:
|
||||
self.volume_mounts = volume_mounts
|
||||
if working_dir is not None:
|
||||
self.working_dir = working_dir
|
||||
|
||||
@property
|
||||
def args(self):
|
||||
"""Gets the args of this V1Container. # noqa: E501
|
||||
|
||||
Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell # noqa: E501
|
||||
|
||||
:return: The args of this V1Container. # noqa: E501
|
||||
:rtype: list[str]
|
||||
"""
|
||||
return self._args
|
||||
|
||||
@args.setter
|
||||
def args(self, args):
|
||||
"""Sets the args of this V1Container.
|
||||
|
||||
Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell # noqa: E501
|
||||
|
||||
:param args: The args of this V1Container. # noqa: E501
|
||||
:type: list[str]
|
||||
"""
|
||||
|
||||
self._args = args
|
||||
|
||||
@property
|
||||
def command(self):
|
||||
"""Gets the command of this V1Container. # noqa: E501
|
||||
|
||||
Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell # noqa: E501
|
||||
|
||||
:return: The command of this V1Container. # noqa: E501
|
||||
:rtype: list[str]
|
||||
"""
|
||||
return self._command
|
||||
|
||||
@command.setter
|
||||
def command(self, command):
|
||||
"""Sets the command of this V1Container.
|
||||
|
||||
Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell # noqa: E501
|
||||
|
||||
:param command: The command of this V1Container. # noqa: E501
|
||||
:type: list[str]
|
||||
"""
|
||||
|
||||
self._command = command
|
||||
|
||||
@property
|
||||
def env(self):
|
||||
"""Gets the env of this V1Container. # noqa: E501
|
||||
|
||||
List of environment variables to set in the container. Cannot be updated. # noqa: E501
|
||||
|
||||
:return: The env of this V1Container. # noqa: E501
|
||||
:rtype: list[V1EnvVar]
|
||||
"""
|
||||
return self._env
|
||||
|
||||
@env.setter
|
||||
def env(self, env):
|
||||
"""Sets the env of this V1Container.
|
||||
|
||||
List of environment variables to set in the container. Cannot be updated. # noqa: E501
|
||||
|
||||
:param env: The env of this V1Container. # noqa: E501
|
||||
:type: list[V1EnvVar]
|
||||
"""
|
||||
|
||||
self._env = env
|
||||
|
||||
@property
|
||||
def env_from(self):
|
||||
"""Gets the env_from of this V1Container. # noqa: E501
|
||||
|
||||
List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501
|
||||
|
||||
:return: The env_from of this V1Container. # noqa: E501
|
||||
:rtype: list[V1EnvFromSource]
|
||||
"""
|
||||
return self._env_from
|
||||
|
||||
@env_from.setter
|
||||
def env_from(self, env_from):
|
||||
"""Sets the env_from of this V1Container.
|
||||
|
||||
List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501
|
||||
|
||||
:param env_from: The env_from of this V1Container. # noqa: E501
|
||||
:type: list[V1EnvFromSource]
|
||||
"""
|
||||
|
||||
self._env_from = env_from
|
||||
|
||||
@property
|
||||
def image(self):
|
||||
"""Gets the image of this V1Container. # noqa: E501
|
||||
|
||||
Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. # noqa: E501
|
||||
|
||||
:return: The image of this V1Container. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._image
|
||||
|
||||
@image.setter
|
||||
def image(self, image):
|
||||
"""Sets the image of this V1Container.
|
||||
|
||||
Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. # noqa: E501
|
||||
|
||||
:param image: The image of this V1Container. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._image = image
|
||||
|
||||
@property
|
||||
def image_pull_policy(self):
|
||||
"""Gets the image_pull_policy of this V1Container. # noqa: E501
|
||||
|
||||
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 # noqa: E501
|
||||
|
||||
:return: The image_pull_policy of this V1Container. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._image_pull_policy
|
||||
|
||||
@image_pull_policy.setter
|
||||
def image_pull_policy(self, image_pull_policy):
|
||||
"""Sets the image_pull_policy of this V1Container.
|
||||
|
||||
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images # noqa: E501
|
||||
|
||||
:param image_pull_policy: The image_pull_policy of this V1Container. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._image_pull_policy = image_pull_policy
|
||||
|
||||
@property
|
||||
def lifecycle(self):
|
||||
"""Gets the lifecycle of this V1Container. # noqa: E501
|
||||
|
||||
|
||||
:return: The lifecycle of this V1Container. # noqa: E501
|
||||
:rtype: V1Lifecycle
|
||||
"""
|
||||
return self._lifecycle
|
||||
|
||||
@lifecycle.setter
|
||||
def lifecycle(self, lifecycle):
|
||||
"""Sets the lifecycle of this V1Container.
|
||||
|
||||
|
||||
:param lifecycle: The lifecycle of this V1Container. # noqa: E501
|
||||
:type: V1Lifecycle
|
||||
"""
|
||||
|
||||
self._lifecycle = lifecycle
|
||||
|
||||
@property
|
||||
def liveness_probe(self):
|
||||
"""Gets the liveness_probe of this V1Container. # noqa: E501
|
||||
|
||||
|
||||
:return: The liveness_probe of this V1Container. # noqa: E501
|
||||
:rtype: V1Probe
|
||||
"""
|
||||
return self._liveness_probe
|
||||
|
||||
@liveness_probe.setter
|
||||
def liveness_probe(self, liveness_probe):
|
||||
"""Sets the liveness_probe of this V1Container.
|
||||
|
||||
|
||||
:param liveness_probe: The liveness_probe of this V1Container. # noqa: E501
|
||||
:type: V1Probe
|
||||
"""
|
||||
|
||||
self._liveness_probe = liveness_probe
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""Gets the name of this V1Container. # noqa: E501
|
||||
|
||||
Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. # noqa: E501
|
||||
|
||||
:return: The name of this V1Container. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._name
|
||||
|
||||
@name.setter
|
||||
def name(self, name):
|
||||
"""Sets 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. # noqa: E501
|
||||
|
||||
:param name: The name of this V1Container. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
||||
|
||||
self._name = name
|
||||
|
||||
@property
|
||||
def ports(self):
|
||||
"""Gets the ports of this V1Container. # noqa: E501
|
||||
|
||||
List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. # noqa: E501
|
||||
|
||||
:return: The ports of this V1Container. # noqa: E501
|
||||
:rtype: list[V1ContainerPort]
|
||||
"""
|
||||
return self._ports
|
||||
|
||||
@ports.setter
|
||||
def ports(self, ports):
|
||||
"""Sets the ports of this V1Container.
|
||||
|
||||
List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. # noqa: E501
|
||||
|
||||
:param ports: The ports of this V1Container. # noqa: E501
|
||||
:type: list[V1ContainerPort]
|
||||
"""
|
||||
|
||||
self._ports = ports
|
||||
|
||||
@property
|
||||
def readiness_probe(self):
|
||||
"""Gets the readiness_probe of this V1Container. # noqa: E501
|
||||
|
||||
|
||||
:return: The readiness_probe of this V1Container. # noqa: E501
|
||||
:rtype: V1Probe
|
||||
"""
|
||||
return self._readiness_probe
|
||||
|
||||
@readiness_probe.setter
|
||||
def readiness_probe(self, readiness_probe):
|
||||
"""Sets the readiness_probe of this V1Container.
|
||||
|
||||
|
||||
:param readiness_probe: The readiness_probe of this V1Container. # noqa: E501
|
||||
:type: V1Probe
|
||||
"""
|
||||
|
||||
self._readiness_probe = readiness_probe
|
||||
|
||||
@property
|
||||
def resize_policy(self):
|
||||
"""Gets the resize_policy of this V1Container. # noqa: E501
|
||||
|
||||
Resources resize policy for the container. # noqa: E501
|
||||
|
||||
:return: The resize_policy of this V1Container. # noqa: E501
|
||||
:rtype: list[V1ContainerResizePolicy]
|
||||
"""
|
||||
return self._resize_policy
|
||||
|
||||
@resize_policy.setter
|
||||
def resize_policy(self, resize_policy):
|
||||
"""Sets the resize_policy of this V1Container.
|
||||
|
||||
Resources resize policy for the container. # noqa: E501
|
||||
|
||||
:param resize_policy: The resize_policy of this V1Container. # noqa: E501
|
||||
:type: list[V1ContainerResizePolicy]
|
||||
"""
|
||||
|
||||
self._resize_policy = resize_policy
|
||||
|
||||
@property
|
||||
def resources(self):
|
||||
"""Gets the resources of this V1Container. # noqa: E501
|
||||
|
||||
|
||||
:return: The resources of this V1Container. # noqa: E501
|
||||
:rtype: V1ResourceRequirements
|
||||
"""
|
||||
return self._resources
|
||||
|
||||
@resources.setter
|
||||
def resources(self, resources):
|
||||
"""Sets the resources of this V1Container.
|
||||
|
||||
|
||||
:param resources: The resources of this V1Container. # noqa: E501
|
||||
:type: V1ResourceRequirements
|
||||
"""
|
||||
|
||||
self._resources = resources
|
||||
|
||||
@property
|
||||
def restart_policy(self):
|
||||
"""Gets the restart_policy of this V1Container. # noqa: E501
|
||||
|
||||
RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is \"Always\". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as \"Always\" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy \"Always\" will be shut down. This lifecycle differs from normal init containers and is often referred to as a \"sidecar\" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. # noqa: E501
|
||||
|
||||
:return: The restart_policy of this V1Container. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._restart_policy
|
||||
|
||||
@restart_policy.setter
|
||||
def restart_policy(self, restart_policy):
|
||||
"""Sets the restart_policy of this V1Container.
|
||||
|
||||
RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is \"Always\". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as \"Always\" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy \"Always\" will be shut down. This lifecycle differs from normal init containers and is often referred to as a \"sidecar\" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. # noqa: E501
|
||||
|
||||
:param restart_policy: The restart_policy of this V1Container. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._restart_policy = restart_policy
|
||||
|
||||
@property
|
||||
def security_context(self):
|
||||
"""Gets the security_context of this V1Container. # noqa: E501
|
||||
|
||||
|
||||
:return: The security_context of this V1Container. # noqa: E501
|
||||
:rtype: V1SecurityContext
|
||||
"""
|
||||
return self._security_context
|
||||
|
||||
@security_context.setter
|
||||
def security_context(self, security_context):
|
||||
"""Sets the security_context of this V1Container.
|
||||
|
||||
|
||||
:param security_context: The security_context of this V1Container. # noqa: E501
|
||||
:type: V1SecurityContext
|
||||
"""
|
||||
|
||||
self._security_context = security_context
|
||||
|
||||
@property
|
||||
def startup_probe(self):
|
||||
"""Gets the startup_probe of this V1Container. # noqa: E501
|
||||
|
||||
|
||||
:return: The startup_probe of this V1Container. # noqa: E501
|
||||
:rtype: V1Probe
|
||||
"""
|
||||
return self._startup_probe
|
||||
|
||||
@startup_probe.setter
|
||||
def startup_probe(self, startup_probe):
|
||||
"""Sets the startup_probe of this V1Container.
|
||||
|
||||
|
||||
:param startup_probe: The startup_probe of this V1Container. # noqa: E501
|
||||
:type: V1Probe
|
||||
"""
|
||||
|
||||
self._startup_probe = startup_probe
|
||||
|
||||
@property
|
||||
def stdin(self):
|
||||
"""Gets the stdin of this V1Container. # noqa: E501
|
||||
|
||||
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. # noqa: E501
|
||||
|
||||
:return: The stdin of this V1Container. # noqa: E501
|
||||
:rtype: bool
|
||||
"""
|
||||
return self._stdin
|
||||
|
||||
@stdin.setter
|
||||
def stdin(self, stdin):
|
||||
"""Sets the stdin of this V1Container.
|
||||
|
||||
Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. # noqa: E501
|
||||
|
||||
:param stdin: The stdin of this V1Container. # noqa: E501
|
||||
:type: bool
|
||||
"""
|
||||
|
||||
self._stdin = stdin
|
||||
|
||||
@property
|
||||
def stdin_once(self):
|
||||
"""Gets the stdin_once of this V1Container. # noqa: E501
|
||||
|
||||
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 # noqa: E501
|
||||
|
||||
:return: The stdin_once of this V1Container. # noqa: E501
|
||||
:rtype: bool
|
||||
"""
|
||||
return self._stdin_once
|
||||
|
||||
@stdin_once.setter
|
||||
def stdin_once(self, stdin_once):
|
||||
"""Sets the stdin_once of this V1Container.
|
||||
|
||||
Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false # noqa: E501
|
||||
|
||||
:param stdin_once: The stdin_once of this V1Container. # noqa: E501
|
||||
:type: bool
|
||||
"""
|
||||
|
||||
self._stdin_once = stdin_once
|
||||
|
||||
@property
|
||||
def termination_message_path(self):
|
||||
"""Gets the termination_message_path of this V1Container. # noqa: E501
|
||||
|
||||
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. # noqa: E501
|
||||
|
||||
:return: The termination_message_path of this V1Container. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._termination_message_path
|
||||
|
||||
@termination_message_path.setter
|
||||
def termination_message_path(self, termination_message_path):
|
||||
"""Sets 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. # noqa: E501
|
||||
|
||||
:param termination_message_path: The termination_message_path of this V1Container. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._termination_message_path = termination_message_path
|
||||
|
||||
@property
|
||||
def termination_message_policy(self):
|
||||
"""Gets the termination_message_policy of this V1Container. # noqa: E501
|
||||
|
||||
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. # noqa: E501
|
||||
|
||||
:return: The termination_message_policy of this V1Container. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._termination_message_policy
|
||||
|
||||
@termination_message_policy.setter
|
||||
def termination_message_policy(self, termination_message_policy):
|
||||
"""Sets 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. # noqa: E501
|
||||
|
||||
:param termination_message_policy: The termination_message_policy of this V1Container. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._termination_message_policy = termination_message_policy
|
||||
|
||||
@property
|
||||
def tty(self):
|
||||
"""Gets the tty of this V1Container. # noqa: E501
|
||||
|
||||
Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. # noqa: E501
|
||||
|
||||
:return: The tty of this V1Container. # noqa: E501
|
||||
:rtype: bool
|
||||
"""
|
||||
return self._tty
|
||||
|
||||
@tty.setter
|
||||
def tty(self, tty):
|
||||
"""Sets the tty of this V1Container.
|
||||
|
||||
Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. # noqa: E501
|
||||
|
||||
:param tty: The tty of this V1Container. # noqa: E501
|
||||
:type: bool
|
||||
"""
|
||||
|
||||
self._tty = tty
|
||||
|
||||
@property
|
||||
def volume_devices(self):
|
||||
"""Gets the volume_devices of this V1Container. # noqa: E501
|
||||
|
||||
volumeDevices is the list of block devices to be used by the container. # noqa: E501
|
||||
|
||||
:return: The volume_devices of this V1Container. # noqa: E501
|
||||
:rtype: list[V1VolumeDevice]
|
||||
"""
|
||||
return self._volume_devices
|
||||
|
||||
@volume_devices.setter
|
||||
def volume_devices(self, volume_devices):
|
||||
"""Sets the volume_devices of this V1Container.
|
||||
|
||||
volumeDevices is the list of block devices to be used by the container. # noqa: E501
|
||||
|
||||
:param volume_devices: The volume_devices of this V1Container. # noqa: E501
|
||||
:type: list[V1VolumeDevice]
|
||||
"""
|
||||
|
||||
self._volume_devices = volume_devices
|
||||
|
||||
@property
|
||||
def volume_mounts(self):
|
||||
"""Gets the volume_mounts of this V1Container. # noqa: E501
|
||||
|
||||
Pod volumes to mount into the container's filesystem. Cannot be updated. # noqa: E501
|
||||
|
||||
:return: The volume_mounts of this V1Container. # noqa: E501
|
||||
:rtype: list[V1VolumeMount]
|
||||
"""
|
||||
return self._volume_mounts
|
||||
|
||||
@volume_mounts.setter
|
||||
def volume_mounts(self, volume_mounts):
|
||||
"""Sets the volume_mounts of this V1Container.
|
||||
|
||||
Pod volumes to mount into the container's filesystem. Cannot be updated. # noqa: E501
|
||||
|
||||
:param volume_mounts: The volume_mounts of this V1Container. # noqa: E501
|
||||
:type: list[V1VolumeMount]
|
||||
"""
|
||||
|
||||
self._volume_mounts = volume_mounts
|
||||
|
||||
@property
|
||||
def working_dir(self):
|
||||
"""Gets the working_dir of this V1Container. # noqa: E501
|
||||
|
||||
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. # noqa: E501
|
||||
|
||||
:return: The working_dir of this V1Container. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._working_dir
|
||||
|
||||
@working_dir.setter
|
||||
def working_dir(self, working_dir):
|
||||
"""Sets 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. # noqa: E501
|
||||
|
||||
:param working_dir: The working_dir of this V1Container. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._working_dir = working_dir
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1Container):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1Container):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
150
kubernetes/client/models/v1_container_image.py
Normal file
150
kubernetes/client/models/v1_container_image.py
Normal file
|
@ -0,0 +1,150 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1ContainerImage(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'names': 'list[str]',
|
||||
'size_bytes': 'int'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'names': 'names',
|
||||
'size_bytes': 'sizeBytes'
|
||||
}
|
||||
|
||||
def __init__(self, names=None, size_bytes=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1ContainerImage - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._names = None
|
||||
self._size_bytes = None
|
||||
self.discriminator = None
|
||||
|
||||
if names is not None:
|
||||
self.names = names
|
||||
if size_bytes is not None:
|
||||
self.size_bytes = size_bytes
|
||||
|
||||
@property
|
||||
def names(self):
|
||||
"""Gets the names of this V1ContainerImage. # noqa: E501
|
||||
|
||||
Names by which this image is known. e.g. [\"kubernetes.example/hyperkube:v1.0.7\", \"cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7\"] # noqa: E501
|
||||
|
||||
:return: The names of this V1ContainerImage. # noqa: E501
|
||||
:rtype: list[str]
|
||||
"""
|
||||
return self._names
|
||||
|
||||
@names.setter
|
||||
def names(self, names):
|
||||
"""Sets the names of this V1ContainerImage.
|
||||
|
||||
Names by which this image is known. e.g. [\"kubernetes.example/hyperkube:v1.0.7\", \"cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7\"] # noqa: E501
|
||||
|
||||
:param names: The names of this V1ContainerImage. # noqa: E501
|
||||
:type: list[str]
|
||||
"""
|
||||
|
||||
self._names = names
|
||||
|
||||
@property
|
||||
def size_bytes(self):
|
||||
"""Gets the size_bytes of this V1ContainerImage. # noqa: E501
|
||||
|
||||
The size of the image in bytes. # noqa: E501
|
||||
|
||||
:return: The size_bytes of this V1ContainerImage. # noqa: E501
|
||||
:rtype: int
|
||||
"""
|
||||
return self._size_bytes
|
||||
|
||||
@size_bytes.setter
|
||||
def size_bytes(self, size_bytes):
|
||||
"""Sets the size_bytes of this V1ContainerImage.
|
||||
|
||||
The size of the image in bytes. # noqa: E501
|
||||
|
||||
:param size_bytes: The size_bytes of this V1ContainerImage. # noqa: E501
|
||||
:type: int
|
||||
"""
|
||||
|
||||
self._size_bytes = size_bytes
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1ContainerImage):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1ContainerImage):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
235
kubernetes/client/models/v1_container_port.py
Normal file
235
kubernetes/client/models/v1_container_port.py
Normal file
|
@ -0,0 +1,235 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1ContainerPort(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'container_port': 'int',
|
||||
'host_ip': 'str',
|
||||
'host_port': 'int',
|
||||
'name': 'str',
|
||||
'protocol': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'container_port': 'containerPort',
|
||||
'host_ip': 'hostIP',
|
||||
'host_port': 'hostPort',
|
||||
'name': 'name',
|
||||
'protocol': 'protocol'
|
||||
}
|
||||
|
||||
def __init__(self, container_port=None, host_ip=None, host_port=None, name=None, protocol=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1ContainerPort - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._container_port = None
|
||||
self._host_ip = None
|
||||
self._host_port = None
|
||||
self._name = None
|
||||
self._protocol = None
|
||||
self.discriminator = None
|
||||
|
||||
self.container_port = container_port
|
||||
if host_ip is not None:
|
||||
self.host_ip = host_ip
|
||||
if host_port is not None:
|
||||
self.host_port = host_port
|
||||
if name is not None:
|
||||
self.name = name
|
||||
if protocol is not None:
|
||||
self.protocol = protocol
|
||||
|
||||
@property
|
||||
def container_port(self):
|
||||
"""Gets the container_port of this V1ContainerPort. # noqa: E501
|
||||
|
||||
Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. # noqa: E501
|
||||
|
||||
:return: The container_port of this V1ContainerPort. # noqa: E501
|
||||
:rtype: int
|
||||
"""
|
||||
return self._container_port
|
||||
|
||||
@container_port.setter
|
||||
def container_port(self, container_port):
|
||||
"""Sets 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. # noqa: E501
|
||||
|
||||
:param container_port: The container_port of this V1ContainerPort. # noqa: E501
|
||||
:type: int
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and container_port is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `container_port`, must not be `None`") # noqa: E501
|
||||
|
||||
self._container_port = container_port
|
||||
|
||||
@property
|
||||
def host_ip(self):
|
||||
"""Gets the host_ip of this V1ContainerPort. # noqa: E501
|
||||
|
||||
What host IP to bind the external port to. # noqa: E501
|
||||
|
||||
:return: The host_ip of this V1ContainerPort. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._host_ip
|
||||
|
||||
@host_ip.setter
|
||||
def host_ip(self, host_ip):
|
||||
"""Sets the host_ip of this V1ContainerPort.
|
||||
|
||||
What host IP to bind the external port to. # noqa: E501
|
||||
|
||||
:param host_ip: The host_ip of this V1ContainerPort. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._host_ip = host_ip
|
||||
|
||||
@property
|
||||
def host_port(self):
|
||||
"""Gets the host_port of this V1ContainerPort. # noqa: E501
|
||||
|
||||
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. # noqa: E501
|
||||
|
||||
:return: The host_port of this V1ContainerPort. # noqa: E501
|
||||
:rtype: int
|
||||
"""
|
||||
return self._host_port
|
||||
|
||||
@host_port.setter
|
||||
def host_port(self, host_port):
|
||||
"""Sets 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. # noqa: E501
|
||||
|
||||
:param host_port: The host_port of this V1ContainerPort. # noqa: E501
|
||||
:type: int
|
||||
"""
|
||||
|
||||
self._host_port = host_port
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""Gets the name of this V1ContainerPort. # noqa: E501
|
||||
|
||||
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. # noqa: E501
|
||||
|
||||
:return: The name of this V1ContainerPort. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._name
|
||||
|
||||
@name.setter
|
||||
def name(self, name):
|
||||
"""Sets 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. # noqa: E501
|
||||
|
||||
:param name: The name of this V1ContainerPort. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._name = name
|
||||
|
||||
@property
|
||||
def protocol(self):
|
||||
"""Gets the protocol of this V1ContainerPort. # noqa: E501
|
||||
|
||||
Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\". # noqa: E501
|
||||
|
||||
:return: The protocol of this V1ContainerPort. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._protocol
|
||||
|
||||
@protocol.setter
|
||||
def protocol(self, protocol):
|
||||
"""Sets the protocol of this V1ContainerPort.
|
||||
|
||||
Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\". # noqa: E501
|
||||
|
||||
:param protocol: The protocol of this V1ContainerPort. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._protocol = protocol
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1ContainerPort):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1ContainerPort):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
152
kubernetes/client/models/v1_container_resize_policy.py
Normal file
152
kubernetes/client/models/v1_container_resize_policy.py
Normal file
|
@ -0,0 +1,152 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1ContainerResizePolicy(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'resource_name': 'str',
|
||||
'restart_policy': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'resource_name': 'resourceName',
|
||||
'restart_policy': 'restartPolicy'
|
||||
}
|
||||
|
||||
def __init__(self, resource_name=None, restart_policy=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1ContainerResizePolicy - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._resource_name = None
|
||||
self._restart_policy = None
|
||||
self.discriminator = None
|
||||
|
||||
self.resource_name = resource_name
|
||||
self.restart_policy = restart_policy
|
||||
|
||||
@property
|
||||
def resource_name(self):
|
||||
"""Gets the resource_name of this V1ContainerResizePolicy. # noqa: E501
|
||||
|
||||
Name of the resource to which this resource resize policy applies. Supported values: cpu, memory. # noqa: E501
|
||||
|
||||
:return: The resource_name of this V1ContainerResizePolicy. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._resource_name
|
||||
|
||||
@resource_name.setter
|
||||
def resource_name(self, resource_name):
|
||||
"""Sets the resource_name of this V1ContainerResizePolicy.
|
||||
|
||||
Name of the resource to which this resource resize policy applies. Supported values: cpu, memory. # noqa: E501
|
||||
|
||||
:param resource_name: The resource_name of this V1ContainerResizePolicy. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and resource_name is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `resource_name`, must not be `None`") # noqa: E501
|
||||
|
||||
self._resource_name = resource_name
|
||||
|
||||
@property
|
||||
def restart_policy(self):
|
||||
"""Gets the restart_policy of this V1ContainerResizePolicy. # noqa: E501
|
||||
|
||||
Restart policy to apply when specified resource is resized. If not specified, it defaults to NotRequired. # noqa: E501
|
||||
|
||||
:return: The restart_policy of this V1ContainerResizePolicy. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._restart_policy
|
||||
|
||||
@restart_policy.setter
|
||||
def restart_policy(self, restart_policy):
|
||||
"""Sets the restart_policy of this V1ContainerResizePolicy.
|
||||
|
||||
Restart policy to apply when specified resource is resized. If not specified, it defaults to NotRequired. # noqa: E501
|
||||
|
||||
:param restart_policy: The restart_policy of this V1ContainerResizePolicy. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and restart_policy is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `restart_policy`, must not be `None`") # noqa: E501
|
||||
|
||||
self._restart_policy = restart_policy
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1ContainerResizePolicy):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1ContainerResizePolicy):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
172
kubernetes/client/models/v1_container_state.py
Normal file
172
kubernetes/client/models/v1_container_state.py
Normal file
|
@ -0,0 +1,172 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1ContainerState(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'running': 'V1ContainerStateRunning',
|
||||
'terminated': 'V1ContainerStateTerminated',
|
||||
'waiting': 'V1ContainerStateWaiting'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'running': 'running',
|
||||
'terminated': 'terminated',
|
||||
'waiting': 'waiting'
|
||||
}
|
||||
|
||||
def __init__(self, running=None, terminated=None, waiting=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1ContainerState - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._running = None
|
||||
self._terminated = None
|
||||
self._waiting = None
|
||||
self.discriminator = None
|
||||
|
||||
if running is not None:
|
||||
self.running = running
|
||||
if terminated is not None:
|
||||
self.terminated = terminated
|
||||
if waiting is not None:
|
||||
self.waiting = waiting
|
||||
|
||||
@property
|
||||
def running(self):
|
||||
"""Gets the running of this V1ContainerState. # noqa: E501
|
||||
|
||||
|
||||
:return: The running of this V1ContainerState. # noqa: E501
|
||||
:rtype: V1ContainerStateRunning
|
||||
"""
|
||||
return self._running
|
||||
|
||||
@running.setter
|
||||
def running(self, running):
|
||||
"""Sets the running of this V1ContainerState.
|
||||
|
||||
|
||||
:param running: The running of this V1ContainerState. # noqa: E501
|
||||
:type: V1ContainerStateRunning
|
||||
"""
|
||||
|
||||
self._running = running
|
||||
|
||||
@property
|
||||
def terminated(self):
|
||||
"""Gets the terminated of this V1ContainerState. # noqa: E501
|
||||
|
||||
|
||||
:return: The terminated of this V1ContainerState. # noqa: E501
|
||||
:rtype: V1ContainerStateTerminated
|
||||
"""
|
||||
return self._terminated
|
||||
|
||||
@terminated.setter
|
||||
def terminated(self, terminated):
|
||||
"""Sets the terminated of this V1ContainerState.
|
||||
|
||||
|
||||
:param terminated: The terminated of this V1ContainerState. # noqa: E501
|
||||
:type: V1ContainerStateTerminated
|
||||
"""
|
||||
|
||||
self._terminated = terminated
|
||||
|
||||
@property
|
||||
def waiting(self):
|
||||
"""Gets the waiting of this V1ContainerState. # noqa: E501
|
||||
|
||||
|
||||
:return: The waiting of this V1ContainerState. # noqa: E501
|
||||
:rtype: V1ContainerStateWaiting
|
||||
"""
|
||||
return self._waiting
|
||||
|
||||
@waiting.setter
|
||||
def waiting(self, waiting):
|
||||
"""Sets the waiting of this V1ContainerState.
|
||||
|
||||
|
||||
:param waiting: The waiting of this V1ContainerState. # noqa: E501
|
||||
:type: V1ContainerStateWaiting
|
||||
"""
|
||||
|
||||
self._waiting = waiting
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1ContainerState):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1ContainerState):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
122
kubernetes/client/models/v1_container_state_running.py
Normal file
122
kubernetes/client/models/v1_container_state_running.py
Normal file
|
@ -0,0 +1,122 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1ContainerStateRunning(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'started_at': 'datetime'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'started_at': 'startedAt'
|
||||
}
|
||||
|
||||
def __init__(self, started_at=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1ContainerStateRunning - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._started_at = None
|
||||
self.discriminator = None
|
||||
|
||||
if started_at is not None:
|
||||
self.started_at = started_at
|
||||
|
||||
@property
|
||||
def started_at(self):
|
||||
"""Gets the started_at of this V1ContainerStateRunning. # noqa: E501
|
||||
|
||||
Time at which the container was last (re-)started # noqa: E501
|
||||
|
||||
:return: The started_at of this V1ContainerStateRunning. # noqa: E501
|
||||
:rtype: datetime
|
||||
"""
|
||||
return self._started_at
|
||||
|
||||
@started_at.setter
|
||||
def started_at(self, started_at):
|
||||
"""Sets the started_at of this V1ContainerStateRunning.
|
||||
|
||||
Time at which the container was last (re-)started # noqa: E501
|
||||
|
||||
:param started_at: The started_at of this V1ContainerStateRunning. # noqa: E501
|
||||
:type: datetime
|
||||
"""
|
||||
|
||||
self._started_at = started_at
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1ContainerStateRunning):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1ContainerStateRunning):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
291
kubernetes/client/models/v1_container_state_terminated.py
Normal file
291
kubernetes/client/models/v1_container_state_terminated.py
Normal file
|
@ -0,0 +1,291 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1ContainerStateTerminated(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'container_id': 'str',
|
||||
'exit_code': 'int',
|
||||
'finished_at': 'datetime',
|
||||
'message': 'str',
|
||||
'reason': 'str',
|
||||
'signal': 'int',
|
||||
'started_at': 'datetime'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'container_id': 'containerID',
|
||||
'exit_code': 'exitCode',
|
||||
'finished_at': 'finishedAt',
|
||||
'message': 'message',
|
||||
'reason': 'reason',
|
||||
'signal': 'signal',
|
||||
'started_at': 'startedAt'
|
||||
}
|
||||
|
||||
def __init__(self, container_id=None, exit_code=None, finished_at=None, message=None, reason=None, signal=None, started_at=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1ContainerStateTerminated - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._container_id = None
|
||||
self._exit_code = None
|
||||
self._finished_at = None
|
||||
self._message = None
|
||||
self._reason = None
|
||||
self._signal = None
|
||||
self._started_at = None
|
||||
self.discriminator = None
|
||||
|
||||
if container_id is not None:
|
||||
self.container_id = container_id
|
||||
self.exit_code = exit_code
|
||||
if finished_at is not None:
|
||||
self.finished_at = finished_at
|
||||
if message is not None:
|
||||
self.message = message
|
||||
if reason is not None:
|
||||
self.reason = reason
|
||||
if signal is not None:
|
||||
self.signal = signal
|
||||
if started_at is not None:
|
||||
self.started_at = started_at
|
||||
|
||||
@property
|
||||
def container_id(self):
|
||||
"""Gets the container_id of this V1ContainerStateTerminated. # noqa: E501
|
||||
|
||||
Container's ID in the format '<type>://<container_id>' # noqa: E501
|
||||
|
||||
:return: The container_id of this V1ContainerStateTerminated. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._container_id
|
||||
|
||||
@container_id.setter
|
||||
def container_id(self, container_id):
|
||||
"""Sets the container_id of this V1ContainerStateTerminated.
|
||||
|
||||
Container's ID in the format '<type>://<container_id>' # noqa: E501
|
||||
|
||||
:param container_id: The container_id of this V1ContainerStateTerminated. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._container_id = container_id
|
||||
|
||||
@property
|
||||
def exit_code(self):
|
||||
"""Gets the exit_code of this V1ContainerStateTerminated. # noqa: E501
|
||||
|
||||
Exit status from the last termination of the container # noqa: E501
|
||||
|
||||
:return: The exit_code of this V1ContainerStateTerminated. # noqa: E501
|
||||
:rtype: int
|
||||
"""
|
||||
return self._exit_code
|
||||
|
||||
@exit_code.setter
|
||||
def exit_code(self, exit_code):
|
||||
"""Sets the exit_code of this V1ContainerStateTerminated.
|
||||
|
||||
Exit status from the last termination of the container # noqa: E501
|
||||
|
||||
:param exit_code: The exit_code of this V1ContainerStateTerminated. # noqa: E501
|
||||
:type: int
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and exit_code is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `exit_code`, must not be `None`") # noqa: E501
|
||||
|
||||
self._exit_code = exit_code
|
||||
|
||||
@property
|
||||
def finished_at(self):
|
||||
"""Gets the finished_at of this V1ContainerStateTerminated. # noqa: E501
|
||||
|
||||
Time at which the container last terminated # noqa: E501
|
||||
|
||||
:return: The finished_at of this V1ContainerStateTerminated. # noqa: E501
|
||||
:rtype: datetime
|
||||
"""
|
||||
return self._finished_at
|
||||
|
||||
@finished_at.setter
|
||||
def finished_at(self, finished_at):
|
||||
"""Sets the finished_at of this V1ContainerStateTerminated.
|
||||
|
||||
Time at which the container last terminated # noqa: E501
|
||||
|
||||
:param finished_at: The finished_at of this V1ContainerStateTerminated. # noqa: E501
|
||||
:type: datetime
|
||||
"""
|
||||
|
||||
self._finished_at = finished_at
|
||||
|
||||
@property
|
||||
def message(self):
|
||||
"""Gets the message of this V1ContainerStateTerminated. # noqa: E501
|
||||
|
||||
Message regarding the last termination of the container # noqa: E501
|
||||
|
||||
:return: The message of this V1ContainerStateTerminated. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._message
|
||||
|
||||
@message.setter
|
||||
def message(self, message):
|
||||
"""Sets the message of this V1ContainerStateTerminated.
|
||||
|
||||
Message regarding the last termination of the container # noqa: E501
|
||||
|
||||
:param message: The message of this V1ContainerStateTerminated. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._message = message
|
||||
|
||||
@property
|
||||
def reason(self):
|
||||
"""Gets the reason of this V1ContainerStateTerminated. # noqa: E501
|
||||
|
||||
(brief) reason from the last termination of the container # noqa: E501
|
||||
|
||||
:return: The reason of this V1ContainerStateTerminated. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._reason
|
||||
|
||||
@reason.setter
|
||||
def reason(self, reason):
|
||||
"""Sets the reason of this V1ContainerStateTerminated.
|
||||
|
||||
(brief) reason from the last termination of the container # noqa: E501
|
||||
|
||||
:param reason: The reason of this V1ContainerStateTerminated. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._reason = reason
|
||||
|
||||
@property
|
||||
def signal(self):
|
||||
"""Gets the signal of this V1ContainerStateTerminated. # noqa: E501
|
||||
|
||||
Signal from the last termination of the container # noqa: E501
|
||||
|
||||
:return: The signal of this V1ContainerStateTerminated. # noqa: E501
|
||||
:rtype: int
|
||||
"""
|
||||
return self._signal
|
||||
|
||||
@signal.setter
|
||||
def signal(self, signal):
|
||||
"""Sets the signal of this V1ContainerStateTerminated.
|
||||
|
||||
Signal from the last termination of the container # noqa: E501
|
||||
|
||||
:param signal: The signal of this V1ContainerStateTerminated. # noqa: E501
|
||||
:type: int
|
||||
"""
|
||||
|
||||
self._signal = signal
|
||||
|
||||
@property
|
||||
def started_at(self):
|
||||
"""Gets the started_at of this V1ContainerStateTerminated. # noqa: E501
|
||||
|
||||
Time at which previous execution of the container started # noqa: E501
|
||||
|
||||
:return: The started_at of this V1ContainerStateTerminated. # noqa: E501
|
||||
:rtype: datetime
|
||||
"""
|
||||
return self._started_at
|
||||
|
||||
@started_at.setter
|
||||
def started_at(self, started_at):
|
||||
"""Sets the started_at of this V1ContainerStateTerminated.
|
||||
|
||||
Time at which previous execution of the container started # noqa: E501
|
||||
|
||||
:param started_at: The started_at of this V1ContainerStateTerminated. # noqa: E501
|
||||
:type: datetime
|
||||
"""
|
||||
|
||||
self._started_at = started_at
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1ContainerStateTerminated):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1ContainerStateTerminated):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
150
kubernetes/client/models/v1_container_state_waiting.py
Normal file
150
kubernetes/client/models/v1_container_state_waiting.py
Normal file
|
@ -0,0 +1,150 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1ContainerStateWaiting(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'message': 'str',
|
||||
'reason': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'message': 'message',
|
||||
'reason': 'reason'
|
||||
}
|
||||
|
||||
def __init__(self, message=None, reason=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1ContainerStateWaiting - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._message = None
|
||||
self._reason = None
|
||||
self.discriminator = None
|
||||
|
||||
if message is not None:
|
||||
self.message = message
|
||||
if reason is not None:
|
||||
self.reason = reason
|
||||
|
||||
@property
|
||||
def message(self):
|
||||
"""Gets the message of this V1ContainerStateWaiting. # noqa: E501
|
||||
|
||||
Message regarding why the container is not yet running. # noqa: E501
|
||||
|
||||
:return: The message of this V1ContainerStateWaiting. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._message
|
||||
|
||||
@message.setter
|
||||
def message(self, message):
|
||||
"""Sets the message of this V1ContainerStateWaiting.
|
||||
|
||||
Message regarding why the container is not yet running. # noqa: E501
|
||||
|
||||
:param message: The message of this V1ContainerStateWaiting. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._message = message
|
||||
|
||||
@property
|
||||
def reason(self):
|
||||
"""Gets the reason of this V1ContainerStateWaiting. # noqa: E501
|
||||
|
||||
(brief) reason the container is not yet running. # noqa: E501
|
||||
|
||||
:return: The reason of this V1ContainerStateWaiting. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._reason
|
||||
|
||||
@reason.setter
|
||||
def reason(self, reason):
|
||||
"""Sets the reason of this V1ContainerStateWaiting.
|
||||
|
||||
(brief) reason the container is not yet running. # noqa: E501
|
||||
|
||||
:param reason: The reason of this V1ContainerStateWaiting. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._reason = reason
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1ContainerStateWaiting):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1ContainerStateWaiting):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
483
kubernetes/client/models/v1_container_status.py
Normal file
483
kubernetes/client/models/v1_container_status.py
Normal file
|
@ -0,0 +1,483 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1ContainerStatus(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'allocated_resources': 'dict(str, str)',
|
||||
'allocated_resources_status': 'list[V1ResourceStatus]',
|
||||
'container_id': 'str',
|
||||
'image': 'str',
|
||||
'image_id': 'str',
|
||||
'last_state': 'V1ContainerState',
|
||||
'name': 'str',
|
||||
'ready': 'bool',
|
||||
'resources': 'V1ResourceRequirements',
|
||||
'restart_count': 'int',
|
||||
'started': 'bool',
|
||||
'state': 'V1ContainerState',
|
||||
'user': 'V1ContainerUser',
|
||||
'volume_mounts': 'list[V1VolumeMountStatus]'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'allocated_resources': 'allocatedResources',
|
||||
'allocated_resources_status': 'allocatedResourcesStatus',
|
||||
'container_id': 'containerID',
|
||||
'image': 'image',
|
||||
'image_id': 'imageID',
|
||||
'last_state': 'lastState',
|
||||
'name': 'name',
|
||||
'ready': 'ready',
|
||||
'resources': 'resources',
|
||||
'restart_count': 'restartCount',
|
||||
'started': 'started',
|
||||
'state': 'state',
|
||||
'user': 'user',
|
||||
'volume_mounts': 'volumeMounts'
|
||||
}
|
||||
|
||||
def __init__(self, allocated_resources=None, allocated_resources_status=None, container_id=None, image=None, image_id=None, last_state=None, name=None, ready=None, resources=None, restart_count=None, started=None, state=None, user=None, volume_mounts=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1ContainerStatus - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._allocated_resources = None
|
||||
self._allocated_resources_status = None
|
||||
self._container_id = None
|
||||
self._image = None
|
||||
self._image_id = None
|
||||
self._last_state = None
|
||||
self._name = None
|
||||
self._ready = None
|
||||
self._resources = None
|
||||
self._restart_count = None
|
||||
self._started = None
|
||||
self._state = None
|
||||
self._user = None
|
||||
self._volume_mounts = None
|
||||
self.discriminator = None
|
||||
|
||||
if allocated_resources is not None:
|
||||
self.allocated_resources = allocated_resources
|
||||
if allocated_resources_status is not None:
|
||||
self.allocated_resources_status = allocated_resources_status
|
||||
if container_id is not None:
|
||||
self.container_id = container_id
|
||||
self.image = image
|
||||
self.image_id = image_id
|
||||
if last_state is not None:
|
||||
self.last_state = last_state
|
||||
self.name = name
|
||||
self.ready = ready
|
||||
if resources is not None:
|
||||
self.resources = resources
|
||||
self.restart_count = restart_count
|
||||
if started is not None:
|
||||
self.started = started
|
||||
if state is not None:
|
||||
self.state = state
|
||||
if user is not None:
|
||||
self.user = user
|
||||
if volume_mounts is not None:
|
||||
self.volume_mounts = volume_mounts
|
||||
|
||||
@property
|
||||
def allocated_resources(self):
|
||||
"""Gets the allocated_resources of this V1ContainerStatus. # noqa: E501
|
||||
|
||||
AllocatedResources represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize. # noqa: E501
|
||||
|
||||
:return: The allocated_resources of this V1ContainerStatus. # noqa: E501
|
||||
:rtype: dict(str, str)
|
||||
"""
|
||||
return self._allocated_resources
|
||||
|
||||
@allocated_resources.setter
|
||||
def allocated_resources(self, allocated_resources):
|
||||
"""Sets the allocated_resources of this V1ContainerStatus.
|
||||
|
||||
AllocatedResources represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize. # noqa: E501
|
||||
|
||||
:param allocated_resources: The allocated_resources of this V1ContainerStatus. # noqa: E501
|
||||
:type: dict(str, str)
|
||||
"""
|
||||
|
||||
self._allocated_resources = allocated_resources
|
||||
|
||||
@property
|
||||
def allocated_resources_status(self):
|
||||
"""Gets the allocated_resources_status of this V1ContainerStatus. # noqa: E501
|
||||
|
||||
AllocatedResourcesStatus represents the status of various resources allocated for this Pod. # noqa: E501
|
||||
|
||||
:return: The allocated_resources_status of this V1ContainerStatus. # noqa: E501
|
||||
:rtype: list[V1ResourceStatus]
|
||||
"""
|
||||
return self._allocated_resources_status
|
||||
|
||||
@allocated_resources_status.setter
|
||||
def allocated_resources_status(self, allocated_resources_status):
|
||||
"""Sets the allocated_resources_status of this V1ContainerStatus.
|
||||
|
||||
AllocatedResourcesStatus represents the status of various resources allocated for this Pod. # noqa: E501
|
||||
|
||||
:param allocated_resources_status: The allocated_resources_status of this V1ContainerStatus. # noqa: E501
|
||||
:type: list[V1ResourceStatus]
|
||||
"""
|
||||
|
||||
self._allocated_resources_status = allocated_resources_status
|
||||
|
||||
@property
|
||||
def container_id(self):
|
||||
"""Gets the container_id of this V1ContainerStatus. # noqa: E501
|
||||
|
||||
ContainerID is the ID of the container in the format '<type>://<container_id>'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \"containerd\"). # noqa: E501
|
||||
|
||||
:return: The container_id of this V1ContainerStatus. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._container_id
|
||||
|
||||
@container_id.setter
|
||||
def container_id(self, container_id):
|
||||
"""Sets the container_id of this V1ContainerStatus.
|
||||
|
||||
ContainerID is the ID of the container in the format '<type>://<container_id>'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \"containerd\"). # noqa: E501
|
||||
|
||||
:param container_id: The container_id of this V1ContainerStatus. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._container_id = container_id
|
||||
|
||||
@property
|
||||
def image(self):
|
||||
"""Gets the image of this V1ContainerStatus. # noqa: E501
|
||||
|
||||
Image is the name of container image that the container is running. The container image may not match the image used in the PodSpec, as it may have been resolved by the runtime. More info: https://kubernetes.io/docs/concepts/containers/images. # noqa: E501
|
||||
|
||||
:return: The image of this V1ContainerStatus. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._image
|
||||
|
||||
@image.setter
|
||||
def image(self, image):
|
||||
"""Sets the image of this V1ContainerStatus.
|
||||
|
||||
Image is the name of container image that the container is running. The container image may not match the image used in the PodSpec, as it may have been resolved by the runtime. More info: https://kubernetes.io/docs/concepts/containers/images. # noqa: E501
|
||||
|
||||
:param image: The image of this V1ContainerStatus. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and image is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `image`, must not be `None`") # noqa: E501
|
||||
|
||||
self._image = image
|
||||
|
||||
@property
|
||||
def image_id(self):
|
||||
"""Gets the image_id of this V1ContainerStatus. # noqa: E501
|
||||
|
||||
ImageID is the image ID of the container's image. The image ID may not match the image ID of the image used in the PodSpec, as it may have been resolved by the runtime. # noqa: E501
|
||||
|
||||
:return: The image_id of this V1ContainerStatus. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._image_id
|
||||
|
||||
@image_id.setter
|
||||
def image_id(self, image_id):
|
||||
"""Sets the image_id of this V1ContainerStatus.
|
||||
|
||||
ImageID is the image ID of the container's image. The image ID may not match the image ID of the image used in the PodSpec, as it may have been resolved by the runtime. # noqa: E501
|
||||
|
||||
:param image_id: The image_id of this V1ContainerStatus. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and image_id is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `image_id`, must not be `None`") # noqa: E501
|
||||
|
||||
self._image_id = image_id
|
||||
|
||||
@property
|
||||
def last_state(self):
|
||||
"""Gets the last_state of this V1ContainerStatus. # noqa: E501
|
||||
|
||||
|
||||
:return: The last_state of this V1ContainerStatus. # noqa: E501
|
||||
:rtype: V1ContainerState
|
||||
"""
|
||||
return self._last_state
|
||||
|
||||
@last_state.setter
|
||||
def last_state(self, last_state):
|
||||
"""Sets the last_state of this V1ContainerStatus.
|
||||
|
||||
|
||||
:param last_state: The last_state of this V1ContainerStatus. # noqa: E501
|
||||
:type: V1ContainerState
|
||||
"""
|
||||
|
||||
self._last_state = last_state
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""Gets the name of this V1ContainerStatus. # noqa: E501
|
||||
|
||||
Name is a DNS_LABEL representing the unique name of the container. Each container in a pod must have a unique name across all container types. Cannot be updated. # noqa: E501
|
||||
|
||||
:return: The name of this V1ContainerStatus. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._name
|
||||
|
||||
@name.setter
|
||||
def name(self, name):
|
||||
"""Sets the name of this V1ContainerStatus.
|
||||
|
||||
Name is a DNS_LABEL representing the unique name of the container. Each container in a pod must have a unique name across all container types. Cannot be updated. # noqa: E501
|
||||
|
||||
:param name: The name of this V1ContainerStatus. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
||||
|
||||
self._name = name
|
||||
|
||||
@property
|
||||
def ready(self):
|
||||
"""Gets the ready of this V1ContainerStatus. # noqa: E501
|
||||
|
||||
Ready specifies whether the container is currently passing its readiness check. The value will change as readiness probes keep executing. If no readiness probes are specified, this field defaults to true once the container is fully started (see Started field). The value is typically used to determine whether a container is ready to accept traffic. # noqa: E501
|
||||
|
||||
:return: The ready of this V1ContainerStatus. # noqa: E501
|
||||
:rtype: bool
|
||||
"""
|
||||
return self._ready
|
||||
|
||||
@ready.setter
|
||||
def ready(self, ready):
|
||||
"""Sets the ready of this V1ContainerStatus.
|
||||
|
||||
Ready specifies whether the container is currently passing its readiness check. The value will change as readiness probes keep executing. If no readiness probes are specified, this field defaults to true once the container is fully started (see Started field). The value is typically used to determine whether a container is ready to accept traffic. # noqa: E501
|
||||
|
||||
:param ready: The ready of this V1ContainerStatus. # noqa: E501
|
||||
:type: bool
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and ready is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `ready`, must not be `None`") # noqa: E501
|
||||
|
||||
self._ready = ready
|
||||
|
||||
@property
|
||||
def resources(self):
|
||||
"""Gets the resources of this V1ContainerStatus. # noqa: E501
|
||||
|
||||
|
||||
:return: The resources of this V1ContainerStatus. # noqa: E501
|
||||
:rtype: V1ResourceRequirements
|
||||
"""
|
||||
return self._resources
|
||||
|
||||
@resources.setter
|
||||
def resources(self, resources):
|
||||
"""Sets the resources of this V1ContainerStatus.
|
||||
|
||||
|
||||
:param resources: The resources of this V1ContainerStatus. # noqa: E501
|
||||
:type: V1ResourceRequirements
|
||||
"""
|
||||
|
||||
self._resources = resources
|
||||
|
||||
@property
|
||||
def restart_count(self):
|
||||
"""Gets the restart_count of this V1ContainerStatus. # noqa: E501
|
||||
|
||||
RestartCount holds the number of times the container has been restarted. Kubelet makes an effort to always increment the value, but there are cases when the state may be lost due to node restarts and then the value may be reset to 0. The value is never negative. # noqa: E501
|
||||
|
||||
:return: The restart_count of this V1ContainerStatus. # noqa: E501
|
||||
:rtype: int
|
||||
"""
|
||||
return self._restart_count
|
||||
|
||||
@restart_count.setter
|
||||
def restart_count(self, restart_count):
|
||||
"""Sets the restart_count of this V1ContainerStatus.
|
||||
|
||||
RestartCount holds the number of times the container has been restarted. Kubelet makes an effort to always increment the value, but there are cases when the state may be lost due to node restarts and then the value may be reset to 0. The value is never negative. # noqa: E501
|
||||
|
||||
:param restart_count: The restart_count of this V1ContainerStatus. # noqa: E501
|
||||
:type: int
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and restart_count is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `restart_count`, must not be `None`") # noqa: E501
|
||||
|
||||
self._restart_count = restart_count
|
||||
|
||||
@property
|
||||
def started(self):
|
||||
"""Gets the started of this V1ContainerStatus. # noqa: E501
|
||||
|
||||
Started indicates whether the container has finished its postStart lifecycle hook and passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. In both cases, startup probes will run again. Is always true when no startupProbe is defined and container is running and has passed the postStart lifecycle hook. The null value must be treated the same as false. # noqa: E501
|
||||
|
||||
:return: The started of this V1ContainerStatus. # noqa: E501
|
||||
:rtype: bool
|
||||
"""
|
||||
return self._started
|
||||
|
||||
@started.setter
|
||||
def started(self, started):
|
||||
"""Sets the started of this V1ContainerStatus.
|
||||
|
||||
Started indicates whether the container has finished its postStart lifecycle hook and passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. In both cases, startup probes will run again. Is always true when no startupProbe is defined and container is running and has passed the postStart lifecycle hook. The null value must be treated the same as false. # noqa: E501
|
||||
|
||||
:param started: The started of this V1ContainerStatus. # noqa: E501
|
||||
:type: bool
|
||||
"""
|
||||
|
||||
self._started = started
|
||||
|
||||
@property
|
||||
def state(self):
|
||||
"""Gets the state of this V1ContainerStatus. # noqa: E501
|
||||
|
||||
|
||||
:return: The state of this V1ContainerStatus. # noqa: E501
|
||||
:rtype: V1ContainerState
|
||||
"""
|
||||
return self._state
|
||||
|
||||
@state.setter
|
||||
def state(self, state):
|
||||
"""Sets the state of this V1ContainerStatus.
|
||||
|
||||
|
||||
:param state: The state of this V1ContainerStatus. # noqa: E501
|
||||
:type: V1ContainerState
|
||||
"""
|
||||
|
||||
self._state = state
|
||||
|
||||
@property
|
||||
def user(self):
|
||||
"""Gets the user of this V1ContainerStatus. # noqa: E501
|
||||
|
||||
|
||||
:return: The user of this V1ContainerStatus. # noqa: E501
|
||||
:rtype: V1ContainerUser
|
||||
"""
|
||||
return self._user
|
||||
|
||||
@user.setter
|
||||
def user(self, user):
|
||||
"""Sets the user of this V1ContainerStatus.
|
||||
|
||||
|
||||
:param user: The user of this V1ContainerStatus. # noqa: E501
|
||||
:type: V1ContainerUser
|
||||
"""
|
||||
|
||||
self._user = user
|
||||
|
||||
@property
|
||||
def volume_mounts(self):
|
||||
"""Gets the volume_mounts of this V1ContainerStatus. # noqa: E501
|
||||
|
||||
Status of volume mounts. # noqa: E501
|
||||
|
||||
:return: The volume_mounts of this V1ContainerStatus. # noqa: E501
|
||||
:rtype: list[V1VolumeMountStatus]
|
||||
"""
|
||||
return self._volume_mounts
|
||||
|
||||
@volume_mounts.setter
|
||||
def volume_mounts(self, volume_mounts):
|
||||
"""Sets the volume_mounts of this V1ContainerStatus.
|
||||
|
||||
Status of volume mounts. # noqa: E501
|
||||
|
||||
:param volume_mounts: The volume_mounts of this V1ContainerStatus. # noqa: E501
|
||||
:type: list[V1VolumeMountStatus]
|
||||
"""
|
||||
|
||||
self._volume_mounts = volume_mounts
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1ContainerStatus):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1ContainerStatus):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
120
kubernetes/client/models/v1_container_user.py
Normal file
120
kubernetes/client/models/v1_container_user.py
Normal file
|
@ -0,0 +1,120 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1ContainerUser(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'linux': 'V1LinuxContainerUser'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'linux': 'linux'
|
||||
}
|
||||
|
||||
def __init__(self, linux=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1ContainerUser - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._linux = None
|
||||
self.discriminator = None
|
||||
|
||||
if linux is not None:
|
||||
self.linux = linux
|
||||
|
||||
@property
|
||||
def linux(self):
|
||||
"""Gets the linux of this V1ContainerUser. # noqa: E501
|
||||
|
||||
|
||||
:return: The linux of this V1ContainerUser. # noqa: E501
|
||||
:rtype: V1LinuxContainerUser
|
||||
"""
|
||||
return self._linux
|
||||
|
||||
@linux.setter
|
||||
def linux(self, linux):
|
||||
"""Sets the linux of this V1ContainerUser.
|
||||
|
||||
|
||||
:param linux: The linux of this V1ContainerUser. # noqa: E501
|
||||
:type: V1LinuxContainerUser
|
||||
"""
|
||||
|
||||
self._linux = linux
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1ContainerUser):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1ContainerUser):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
233
kubernetes/client/models/v1_controller_revision.py
Normal file
233
kubernetes/client/models/v1_controller_revision.py
Normal file
|
@ -0,0 +1,233 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1ControllerRevision(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'api_version': 'str',
|
||||
'data': 'object',
|
||||
'kind': 'str',
|
||||
'metadata': 'V1ObjectMeta',
|
||||
'revision': 'int'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'api_version': 'apiVersion',
|
||||
'data': 'data',
|
||||
'kind': 'kind',
|
||||
'metadata': 'metadata',
|
||||
'revision': 'revision'
|
||||
}
|
||||
|
||||
def __init__(self, api_version=None, data=None, kind=None, metadata=None, revision=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1ControllerRevision - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._api_version = None
|
||||
self._data = None
|
||||
self._kind = None
|
||||
self._metadata = None
|
||||
self._revision = None
|
||||
self.discriminator = None
|
||||
|
||||
if api_version is not None:
|
||||
self.api_version = api_version
|
||||
if data is not None:
|
||||
self.data = data
|
||||
if kind is not None:
|
||||
self.kind = kind
|
||||
if metadata is not None:
|
||||
self.metadata = metadata
|
||||
self.revision = revision
|
||||
|
||||
@property
|
||||
def api_version(self):
|
||||
"""Gets the api_version of this V1ControllerRevision. # noqa: E501
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:return: The api_version of this V1ControllerRevision. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._api_version
|
||||
|
||||
@api_version.setter
|
||||
def api_version(self, api_version):
|
||||
"""Sets the api_version of this V1ControllerRevision.
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:param api_version: The api_version of this V1ControllerRevision. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._api_version = api_version
|
||||
|
||||
@property
|
||||
def data(self):
|
||||
"""Gets the data of this V1ControllerRevision. # noqa: E501
|
||||
|
||||
Data is the serialized representation of the state. # noqa: E501
|
||||
|
||||
:return: The data of this V1ControllerRevision. # noqa: E501
|
||||
:rtype: object
|
||||
"""
|
||||
return self._data
|
||||
|
||||
@data.setter
|
||||
def data(self, data):
|
||||
"""Sets the data of this V1ControllerRevision.
|
||||
|
||||
Data is the serialized representation of the state. # noqa: E501
|
||||
|
||||
:param data: The data of this V1ControllerRevision. # noqa: E501
|
||||
:type: object
|
||||
"""
|
||||
|
||||
self._data = data
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this V1ControllerRevision. # noqa: E501
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:return: The kind of this V1ControllerRevision. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets the kind of this V1ControllerRevision.
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:param kind: The kind of this V1ControllerRevision. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def metadata(self):
|
||||
"""Gets the metadata of this V1ControllerRevision. # noqa: E501
|
||||
|
||||
|
||||
:return: The metadata of this V1ControllerRevision. # noqa: E501
|
||||
:rtype: V1ObjectMeta
|
||||
"""
|
||||
return self._metadata
|
||||
|
||||
@metadata.setter
|
||||
def metadata(self, metadata):
|
||||
"""Sets the metadata of this V1ControllerRevision.
|
||||
|
||||
|
||||
:param metadata: The metadata of this V1ControllerRevision. # noqa: E501
|
||||
:type: V1ObjectMeta
|
||||
"""
|
||||
|
||||
self._metadata = metadata
|
||||
|
||||
@property
|
||||
def revision(self):
|
||||
"""Gets the revision of this V1ControllerRevision. # noqa: E501
|
||||
|
||||
Revision indicates the revision of the state represented by Data. # noqa: E501
|
||||
|
||||
:return: The revision of this V1ControllerRevision. # noqa: E501
|
||||
:rtype: int
|
||||
"""
|
||||
return self._revision
|
||||
|
||||
@revision.setter
|
||||
def revision(self, revision):
|
||||
"""Sets the revision of this V1ControllerRevision.
|
||||
|
||||
Revision indicates the revision of the state represented by Data. # noqa: E501
|
||||
|
||||
:param revision: The revision of this V1ControllerRevision. # noqa: E501
|
||||
:type: int
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and revision is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `revision`, must not be `None`") # noqa: E501
|
||||
|
||||
self._revision = revision
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1ControllerRevision):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1ControllerRevision):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
205
kubernetes/client/models/v1_controller_revision_list.py
Normal file
205
kubernetes/client/models/v1_controller_revision_list.py
Normal file
|
@ -0,0 +1,205 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1ControllerRevisionList(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'api_version': 'str',
|
||||
'items': 'list[V1ControllerRevision]',
|
||||
'kind': 'str',
|
||||
'metadata': 'V1ListMeta'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'api_version': 'apiVersion',
|
||||
'items': 'items',
|
||||
'kind': 'kind',
|
||||
'metadata': 'metadata'
|
||||
}
|
||||
|
||||
def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1ControllerRevisionList - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._api_version = None
|
||||
self._items = None
|
||||
self._kind = None
|
||||
self._metadata = None
|
||||
self.discriminator = None
|
||||
|
||||
if api_version is not None:
|
||||
self.api_version = api_version
|
||||
self.items = items
|
||||
if kind is not None:
|
||||
self.kind = kind
|
||||
if metadata is not None:
|
||||
self.metadata = metadata
|
||||
|
||||
@property
|
||||
def api_version(self):
|
||||
"""Gets the api_version of this V1ControllerRevisionList. # noqa: E501
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:return: The api_version of this V1ControllerRevisionList. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._api_version
|
||||
|
||||
@api_version.setter
|
||||
def api_version(self, api_version):
|
||||
"""Sets the api_version of this V1ControllerRevisionList.
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:param api_version: The api_version of this V1ControllerRevisionList. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._api_version = api_version
|
||||
|
||||
@property
|
||||
def items(self):
|
||||
"""Gets the items of this V1ControllerRevisionList. # noqa: E501
|
||||
|
||||
Items is the list of ControllerRevisions # noqa: E501
|
||||
|
||||
:return: The items of this V1ControllerRevisionList. # noqa: E501
|
||||
:rtype: list[V1ControllerRevision]
|
||||
"""
|
||||
return self._items
|
||||
|
||||
@items.setter
|
||||
def items(self, items):
|
||||
"""Sets the items of this V1ControllerRevisionList.
|
||||
|
||||
Items is the list of ControllerRevisions # noqa: E501
|
||||
|
||||
:param items: The items of this V1ControllerRevisionList. # noqa: E501
|
||||
:type: list[V1ControllerRevision]
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501
|
||||
|
||||
self._items = items
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this V1ControllerRevisionList. # noqa: E501
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:return: The kind of this V1ControllerRevisionList. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets the kind of this V1ControllerRevisionList.
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:param kind: The kind of this V1ControllerRevisionList. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def metadata(self):
|
||||
"""Gets the metadata of this V1ControllerRevisionList. # noqa: E501
|
||||
|
||||
|
||||
:return: The metadata of this V1ControllerRevisionList. # noqa: E501
|
||||
:rtype: V1ListMeta
|
||||
"""
|
||||
return self._metadata
|
||||
|
||||
@metadata.setter
|
||||
def metadata(self, metadata):
|
||||
"""Sets the metadata of this V1ControllerRevisionList.
|
||||
|
||||
|
||||
:param metadata: The metadata of this V1ControllerRevisionList. # noqa: E501
|
||||
:type: V1ListMeta
|
||||
"""
|
||||
|
||||
self._metadata = metadata
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1ControllerRevisionList):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1ControllerRevisionList):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
228
kubernetes/client/models/v1_cron_job.py
Normal file
228
kubernetes/client/models/v1_cron_job.py
Normal file
|
@ -0,0 +1,228 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1CronJob(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'api_version': 'str',
|
||||
'kind': 'str',
|
||||
'metadata': 'V1ObjectMeta',
|
||||
'spec': 'V1CronJobSpec',
|
||||
'status': 'V1CronJobStatus'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'api_version': 'apiVersion',
|
||||
'kind': 'kind',
|
||||
'metadata': 'metadata',
|
||||
'spec': 'spec',
|
||||
'status': 'status'
|
||||
}
|
||||
|
||||
def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1CronJob - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._api_version = None
|
||||
self._kind = None
|
||||
self._metadata = None
|
||||
self._spec = None
|
||||
self._status = None
|
||||
self.discriminator = None
|
||||
|
||||
if api_version is not None:
|
||||
self.api_version = api_version
|
||||
if kind is not None:
|
||||
self.kind = kind
|
||||
if metadata is not None:
|
||||
self.metadata = metadata
|
||||
if spec is not None:
|
||||
self.spec = spec
|
||||
if status is not None:
|
||||
self.status = status
|
||||
|
||||
@property
|
||||
def api_version(self):
|
||||
"""Gets the api_version of this V1CronJob. # noqa: E501
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:return: The api_version of this V1CronJob. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._api_version
|
||||
|
||||
@api_version.setter
|
||||
def api_version(self, api_version):
|
||||
"""Sets the api_version of this V1CronJob.
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:param api_version: The api_version of this V1CronJob. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._api_version = api_version
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this V1CronJob. # noqa: E501
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:return: The kind of this V1CronJob. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets the kind of this V1CronJob.
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:param kind: The kind of this V1CronJob. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def metadata(self):
|
||||
"""Gets the metadata of this V1CronJob. # noqa: E501
|
||||
|
||||
|
||||
:return: The metadata of this V1CronJob. # noqa: E501
|
||||
:rtype: V1ObjectMeta
|
||||
"""
|
||||
return self._metadata
|
||||
|
||||
@metadata.setter
|
||||
def metadata(self, metadata):
|
||||
"""Sets the metadata of this V1CronJob.
|
||||
|
||||
|
||||
:param metadata: The metadata of this V1CronJob. # noqa: E501
|
||||
:type: V1ObjectMeta
|
||||
"""
|
||||
|
||||
self._metadata = metadata
|
||||
|
||||
@property
|
||||
def spec(self):
|
||||
"""Gets the spec of this V1CronJob. # noqa: E501
|
||||
|
||||
|
||||
:return: The spec of this V1CronJob. # noqa: E501
|
||||
:rtype: V1CronJobSpec
|
||||
"""
|
||||
return self._spec
|
||||
|
||||
@spec.setter
|
||||
def spec(self, spec):
|
||||
"""Sets the spec of this V1CronJob.
|
||||
|
||||
|
||||
:param spec: The spec of this V1CronJob. # noqa: E501
|
||||
:type: V1CronJobSpec
|
||||
"""
|
||||
|
||||
self._spec = spec
|
||||
|
||||
@property
|
||||
def status(self):
|
||||
"""Gets the status of this V1CronJob. # noqa: E501
|
||||
|
||||
|
||||
:return: The status of this V1CronJob. # noqa: E501
|
||||
:rtype: V1CronJobStatus
|
||||
"""
|
||||
return self._status
|
||||
|
||||
@status.setter
|
||||
def status(self, status):
|
||||
"""Sets the status of this V1CronJob.
|
||||
|
||||
|
||||
:param status: The status of this V1CronJob. # noqa: E501
|
||||
:type: V1CronJobStatus
|
||||
"""
|
||||
|
||||
self._status = status
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1CronJob):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1CronJob):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
205
kubernetes/client/models/v1_cron_job_list.py
Normal file
205
kubernetes/client/models/v1_cron_job_list.py
Normal file
|
@ -0,0 +1,205 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1CronJobList(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'api_version': 'str',
|
||||
'items': 'list[V1CronJob]',
|
||||
'kind': 'str',
|
||||
'metadata': 'V1ListMeta'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'api_version': 'apiVersion',
|
||||
'items': 'items',
|
||||
'kind': 'kind',
|
||||
'metadata': 'metadata'
|
||||
}
|
||||
|
||||
def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1CronJobList - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._api_version = None
|
||||
self._items = None
|
||||
self._kind = None
|
||||
self._metadata = None
|
||||
self.discriminator = None
|
||||
|
||||
if api_version is not None:
|
||||
self.api_version = api_version
|
||||
self.items = items
|
||||
if kind is not None:
|
||||
self.kind = kind
|
||||
if metadata is not None:
|
||||
self.metadata = metadata
|
||||
|
||||
@property
|
||||
def api_version(self):
|
||||
"""Gets the api_version of this V1CronJobList. # noqa: E501
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:return: The api_version of this V1CronJobList. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._api_version
|
||||
|
||||
@api_version.setter
|
||||
def api_version(self, api_version):
|
||||
"""Sets the api_version of this V1CronJobList.
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:param api_version: The api_version of this V1CronJobList. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._api_version = api_version
|
||||
|
||||
@property
|
||||
def items(self):
|
||||
"""Gets the items of this V1CronJobList. # noqa: E501
|
||||
|
||||
items is the list of CronJobs. # noqa: E501
|
||||
|
||||
:return: The items of this V1CronJobList. # noqa: E501
|
||||
:rtype: list[V1CronJob]
|
||||
"""
|
||||
return self._items
|
||||
|
||||
@items.setter
|
||||
def items(self, items):
|
||||
"""Sets the items of this V1CronJobList.
|
||||
|
||||
items is the list of CronJobs. # noqa: E501
|
||||
|
||||
:param items: The items of this V1CronJobList. # noqa: E501
|
||||
:type: list[V1CronJob]
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501
|
||||
|
||||
self._items = items
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this V1CronJobList. # noqa: E501
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:return: The kind of this V1CronJobList. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets the kind of this V1CronJobList.
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:param kind: The kind of this V1CronJobList. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def metadata(self):
|
||||
"""Gets the metadata of this V1CronJobList. # noqa: E501
|
||||
|
||||
|
||||
:return: The metadata of this V1CronJobList. # noqa: E501
|
||||
:rtype: V1ListMeta
|
||||
"""
|
||||
return self._metadata
|
||||
|
||||
@metadata.setter
|
||||
def metadata(self, metadata):
|
||||
"""Sets the metadata of this V1CronJobList.
|
||||
|
||||
|
||||
:param metadata: The metadata of this V1CronJobList. # noqa: E501
|
||||
:type: V1ListMeta
|
||||
"""
|
||||
|
||||
self._metadata = metadata
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1CronJobList):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1CronJobList):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
318
kubernetes/client/models/v1_cron_job_spec.py
Normal file
318
kubernetes/client/models/v1_cron_job_spec.py
Normal file
|
@ -0,0 +1,318 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1CronJobSpec(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'concurrency_policy': 'str',
|
||||
'failed_jobs_history_limit': 'int',
|
||||
'job_template': 'V1JobTemplateSpec',
|
||||
'schedule': 'str',
|
||||
'starting_deadline_seconds': 'int',
|
||||
'successful_jobs_history_limit': 'int',
|
||||
'suspend': 'bool',
|
||||
'time_zone': 'str'
|
||||
}
|
||||
|
||||
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',
|
||||
'time_zone': 'timeZone'
|
||||
}
|
||||
|
||||
def __init__(self, concurrency_policy=None, failed_jobs_history_limit=None, job_template=None, schedule=None, starting_deadline_seconds=None, successful_jobs_history_limit=None, suspend=None, time_zone=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1CronJobSpec - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._concurrency_policy = None
|
||||
self._failed_jobs_history_limit = None
|
||||
self._job_template = None
|
||||
self._schedule = None
|
||||
self._starting_deadline_seconds = None
|
||||
self._successful_jobs_history_limit = None
|
||||
self._suspend = None
|
||||
self._time_zone = None
|
||||
self.discriminator = None
|
||||
|
||||
if concurrency_policy is not None:
|
||||
self.concurrency_policy = concurrency_policy
|
||||
if failed_jobs_history_limit is not None:
|
||||
self.failed_jobs_history_limit = failed_jobs_history_limit
|
||||
self.job_template = job_template
|
||||
self.schedule = schedule
|
||||
if starting_deadline_seconds is not None:
|
||||
self.starting_deadline_seconds = starting_deadline_seconds
|
||||
if successful_jobs_history_limit is not None:
|
||||
self.successful_jobs_history_limit = successful_jobs_history_limit
|
||||
if suspend is not None:
|
||||
self.suspend = suspend
|
||||
if time_zone is not None:
|
||||
self.time_zone = time_zone
|
||||
|
||||
@property
|
||||
def concurrency_policy(self):
|
||||
"""Gets the concurrency_policy of this V1CronJobSpec. # noqa: E501
|
||||
|
||||
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 # noqa: E501
|
||||
|
||||
:return: The concurrency_policy of this V1CronJobSpec. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._concurrency_policy
|
||||
|
||||
@concurrency_policy.setter
|
||||
def concurrency_policy(self, concurrency_policy):
|
||||
"""Sets the concurrency_policy of this V1CronJobSpec.
|
||||
|
||||
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 # noqa: E501
|
||||
|
||||
:param concurrency_policy: The concurrency_policy of this V1CronJobSpec. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._concurrency_policy = concurrency_policy
|
||||
|
||||
@property
|
||||
def failed_jobs_history_limit(self):
|
||||
"""Gets the failed_jobs_history_limit of this V1CronJobSpec. # noqa: E501
|
||||
|
||||
The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to 1. # noqa: E501
|
||||
|
||||
:return: The failed_jobs_history_limit of this V1CronJobSpec. # noqa: E501
|
||||
:rtype: int
|
||||
"""
|
||||
return self._failed_jobs_history_limit
|
||||
|
||||
@failed_jobs_history_limit.setter
|
||||
def failed_jobs_history_limit(self, failed_jobs_history_limit):
|
||||
"""Sets the failed_jobs_history_limit of this V1CronJobSpec.
|
||||
|
||||
The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to 1. # noqa: E501
|
||||
|
||||
:param failed_jobs_history_limit: The failed_jobs_history_limit of this V1CronJobSpec. # noqa: E501
|
||||
:type: int
|
||||
"""
|
||||
|
||||
self._failed_jobs_history_limit = failed_jobs_history_limit
|
||||
|
||||
@property
|
||||
def job_template(self):
|
||||
"""Gets the job_template of this V1CronJobSpec. # noqa: E501
|
||||
|
||||
|
||||
:return: The job_template of this V1CronJobSpec. # noqa: E501
|
||||
:rtype: V1JobTemplateSpec
|
||||
"""
|
||||
return self._job_template
|
||||
|
||||
@job_template.setter
|
||||
def job_template(self, job_template):
|
||||
"""Sets the job_template of this V1CronJobSpec.
|
||||
|
||||
|
||||
:param job_template: The job_template of this V1CronJobSpec. # noqa: E501
|
||||
:type: V1JobTemplateSpec
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and job_template is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `job_template`, must not be `None`") # noqa: E501
|
||||
|
||||
self._job_template = job_template
|
||||
|
||||
@property
|
||||
def schedule(self):
|
||||
"""Gets the schedule of this V1CronJobSpec. # noqa: E501
|
||||
|
||||
The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. # noqa: E501
|
||||
|
||||
:return: The schedule of this V1CronJobSpec. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._schedule
|
||||
|
||||
@schedule.setter
|
||||
def schedule(self, schedule):
|
||||
"""Sets the schedule of this V1CronJobSpec.
|
||||
|
||||
The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. # noqa: E501
|
||||
|
||||
:param schedule: The schedule of this V1CronJobSpec. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and schedule is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `schedule`, must not be `None`") # noqa: E501
|
||||
|
||||
self._schedule = schedule
|
||||
|
||||
@property
|
||||
def starting_deadline_seconds(self):
|
||||
"""Gets the starting_deadline_seconds of this V1CronJobSpec. # noqa: E501
|
||||
|
||||
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. # noqa: E501
|
||||
|
||||
:return: The starting_deadline_seconds of this V1CronJobSpec. # noqa: E501
|
||||
:rtype: int
|
||||
"""
|
||||
return self._starting_deadline_seconds
|
||||
|
||||
@starting_deadline_seconds.setter
|
||||
def starting_deadline_seconds(self, starting_deadline_seconds):
|
||||
"""Sets the starting_deadline_seconds of this V1CronJobSpec.
|
||||
|
||||
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. # noqa: E501
|
||||
|
||||
:param starting_deadline_seconds: The starting_deadline_seconds of this V1CronJobSpec. # noqa: E501
|
||||
:type: int
|
||||
"""
|
||||
|
||||
self._starting_deadline_seconds = starting_deadline_seconds
|
||||
|
||||
@property
|
||||
def successful_jobs_history_limit(self):
|
||||
"""Gets the successful_jobs_history_limit of this V1CronJobSpec. # noqa: E501
|
||||
|
||||
The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3. # noqa: E501
|
||||
|
||||
:return: The successful_jobs_history_limit of this V1CronJobSpec. # noqa: E501
|
||||
:rtype: int
|
||||
"""
|
||||
return self._successful_jobs_history_limit
|
||||
|
||||
@successful_jobs_history_limit.setter
|
||||
def successful_jobs_history_limit(self, successful_jobs_history_limit):
|
||||
"""Sets the successful_jobs_history_limit of this V1CronJobSpec.
|
||||
|
||||
The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3. # noqa: E501
|
||||
|
||||
:param successful_jobs_history_limit: The successful_jobs_history_limit of this V1CronJobSpec. # noqa: E501
|
||||
:type: int
|
||||
"""
|
||||
|
||||
self._successful_jobs_history_limit = successful_jobs_history_limit
|
||||
|
||||
@property
|
||||
def suspend(self):
|
||||
"""Gets the suspend of this V1CronJobSpec. # noqa: E501
|
||||
|
||||
This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. # noqa: E501
|
||||
|
||||
:return: The suspend of this V1CronJobSpec. # noqa: E501
|
||||
:rtype: bool
|
||||
"""
|
||||
return self._suspend
|
||||
|
||||
@suspend.setter
|
||||
def suspend(self, suspend):
|
||||
"""Sets the suspend of this V1CronJobSpec.
|
||||
|
||||
This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. # noqa: E501
|
||||
|
||||
:param suspend: The suspend of this V1CronJobSpec. # noqa: E501
|
||||
:type: bool
|
||||
"""
|
||||
|
||||
self._suspend = suspend
|
||||
|
||||
@property
|
||||
def time_zone(self):
|
||||
"""Gets the time_zone of this V1CronJobSpec. # noqa: E501
|
||||
|
||||
The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will default to the time zone of the kube-controller-manager process. The set of valid time zone names and the time zone offset is loaded from the system-wide time zone database by the API server during CronJob validation and the controller manager during execution. If no system-wide time zone database can be found a bundled version of the database is used instead. If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host configuration, the controller will stop creating new new Jobs and will create a system event with the reason UnknownTimeZone. More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones # noqa: E501
|
||||
|
||||
:return: The time_zone of this V1CronJobSpec. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._time_zone
|
||||
|
||||
@time_zone.setter
|
||||
def time_zone(self, time_zone):
|
||||
"""Sets the time_zone of this V1CronJobSpec.
|
||||
|
||||
The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will default to the time zone of the kube-controller-manager process. The set of valid time zone names and the time zone offset is loaded from the system-wide time zone database by the API server during CronJob validation and the controller manager during execution. If no system-wide time zone database can be found a bundled version of the database is used instead. If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host configuration, the controller will stop creating new new Jobs and will create a system event with the reason UnknownTimeZone. More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones # noqa: E501
|
||||
|
||||
:param time_zone: The time_zone of this V1CronJobSpec. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._time_zone = time_zone
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1CronJobSpec):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1CronJobSpec):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
178
kubernetes/client/models/v1_cron_job_status.py
Normal file
178
kubernetes/client/models/v1_cron_job_status.py
Normal file
|
@ -0,0 +1,178 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1CronJobStatus(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'active': 'list[V1ObjectReference]',
|
||||
'last_schedule_time': 'datetime',
|
||||
'last_successful_time': 'datetime'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'active': 'active',
|
||||
'last_schedule_time': 'lastScheduleTime',
|
||||
'last_successful_time': 'lastSuccessfulTime'
|
||||
}
|
||||
|
||||
def __init__(self, active=None, last_schedule_time=None, last_successful_time=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1CronJobStatus - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._active = None
|
||||
self._last_schedule_time = None
|
||||
self._last_successful_time = None
|
||||
self.discriminator = None
|
||||
|
||||
if active is not None:
|
||||
self.active = active
|
||||
if last_schedule_time is not None:
|
||||
self.last_schedule_time = last_schedule_time
|
||||
if last_successful_time is not None:
|
||||
self.last_successful_time = last_successful_time
|
||||
|
||||
@property
|
||||
def active(self):
|
||||
"""Gets the active of this V1CronJobStatus. # noqa: E501
|
||||
|
||||
A list of pointers to currently running jobs. # noqa: E501
|
||||
|
||||
:return: The active of this V1CronJobStatus. # noqa: E501
|
||||
:rtype: list[V1ObjectReference]
|
||||
"""
|
||||
return self._active
|
||||
|
||||
@active.setter
|
||||
def active(self, active):
|
||||
"""Sets the active of this V1CronJobStatus.
|
||||
|
||||
A list of pointers to currently running jobs. # noqa: E501
|
||||
|
||||
:param active: The active of this V1CronJobStatus. # noqa: E501
|
||||
:type: list[V1ObjectReference]
|
||||
"""
|
||||
|
||||
self._active = active
|
||||
|
||||
@property
|
||||
def last_schedule_time(self):
|
||||
"""Gets the last_schedule_time of this V1CronJobStatus. # noqa: E501
|
||||
|
||||
Information when was the last time the job was successfully scheduled. # noqa: E501
|
||||
|
||||
:return: The last_schedule_time of this V1CronJobStatus. # noqa: E501
|
||||
:rtype: datetime
|
||||
"""
|
||||
return self._last_schedule_time
|
||||
|
||||
@last_schedule_time.setter
|
||||
def last_schedule_time(self, last_schedule_time):
|
||||
"""Sets the last_schedule_time of this V1CronJobStatus.
|
||||
|
||||
Information when was the last time the job was successfully scheduled. # noqa: E501
|
||||
|
||||
:param last_schedule_time: The last_schedule_time of this V1CronJobStatus. # noqa: E501
|
||||
:type: datetime
|
||||
"""
|
||||
|
||||
self._last_schedule_time = last_schedule_time
|
||||
|
||||
@property
|
||||
def last_successful_time(self):
|
||||
"""Gets the last_successful_time of this V1CronJobStatus. # noqa: E501
|
||||
|
||||
Information when was the last time the job successfully completed. # noqa: E501
|
||||
|
||||
:return: The last_successful_time of this V1CronJobStatus. # noqa: E501
|
||||
:rtype: datetime
|
||||
"""
|
||||
return self._last_successful_time
|
||||
|
||||
@last_successful_time.setter
|
||||
def last_successful_time(self, last_successful_time):
|
||||
"""Sets the last_successful_time of this V1CronJobStatus.
|
||||
|
||||
Information when was the last time the job successfully completed. # noqa: E501
|
||||
|
||||
:param last_successful_time: The last_successful_time of this V1CronJobStatus. # noqa: E501
|
||||
:type: datetime
|
||||
"""
|
||||
|
||||
self._last_successful_time = last_successful_time
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1CronJobStatus):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1CronJobStatus):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
180
kubernetes/client/models/v1_cross_version_object_reference.py
Normal file
180
kubernetes/client/models/v1_cross_version_object_reference.py
Normal file
|
@ -0,0 +1,180 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1CrossVersionObjectReference(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'api_version': 'str',
|
||||
'kind': 'str',
|
||||
'name': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'api_version': 'apiVersion',
|
||||
'kind': 'kind',
|
||||
'name': 'name'
|
||||
}
|
||||
|
||||
def __init__(self, api_version=None, kind=None, name=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1CrossVersionObjectReference - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._api_version = None
|
||||
self._kind = None
|
||||
self._name = None
|
||||
self.discriminator = None
|
||||
|
||||
if api_version is not None:
|
||||
self.api_version = api_version
|
||||
self.kind = kind
|
||||
self.name = name
|
||||
|
||||
@property
|
||||
def api_version(self):
|
||||
"""Gets the api_version of this V1CrossVersionObjectReference. # noqa: E501
|
||||
|
||||
apiVersion is the API version of the referent # noqa: E501
|
||||
|
||||
:return: The api_version of this V1CrossVersionObjectReference. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._api_version
|
||||
|
||||
@api_version.setter
|
||||
def api_version(self, api_version):
|
||||
"""Sets the api_version of this V1CrossVersionObjectReference.
|
||||
|
||||
apiVersion is the API version of the referent # noqa: E501
|
||||
|
||||
:param api_version: The api_version of this V1CrossVersionObjectReference. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._api_version = api_version
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this V1CrossVersionObjectReference. # noqa: E501
|
||||
|
||||
kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:return: The kind of this V1CrossVersionObjectReference. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets the kind of this V1CrossVersionObjectReference.
|
||||
|
||||
kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:param kind: The kind of this V1CrossVersionObjectReference. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and kind is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""Gets the name of this V1CrossVersionObjectReference. # noqa: E501
|
||||
|
||||
name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501
|
||||
|
||||
:return: The name of this V1CrossVersionObjectReference. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._name
|
||||
|
||||
@name.setter
|
||||
def name(self, name):
|
||||
"""Sets the name of this V1CrossVersionObjectReference.
|
||||
|
||||
name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501
|
||||
|
||||
:param name: The name of this V1CrossVersionObjectReference. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
||||
|
||||
self._name = name
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1CrossVersionObjectReference):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1CrossVersionObjectReference):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
203
kubernetes/client/models/v1_csi_driver.py
Normal file
203
kubernetes/client/models/v1_csi_driver.py
Normal file
|
@ -0,0 +1,203 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1CSIDriver(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'api_version': 'str',
|
||||
'kind': 'str',
|
||||
'metadata': 'V1ObjectMeta',
|
||||
'spec': 'V1CSIDriverSpec'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'api_version': 'apiVersion',
|
||||
'kind': 'kind',
|
||||
'metadata': 'metadata',
|
||||
'spec': 'spec'
|
||||
}
|
||||
|
||||
def __init__(self, api_version=None, kind=None, metadata=None, spec=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1CSIDriver - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._api_version = None
|
||||
self._kind = None
|
||||
self._metadata = None
|
||||
self._spec = None
|
||||
self.discriminator = None
|
||||
|
||||
if api_version is not None:
|
||||
self.api_version = api_version
|
||||
if kind is not None:
|
||||
self.kind = kind
|
||||
if metadata is not None:
|
||||
self.metadata = metadata
|
||||
self.spec = spec
|
||||
|
||||
@property
|
||||
def api_version(self):
|
||||
"""Gets the api_version of this V1CSIDriver. # noqa: E501
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:return: The api_version of this V1CSIDriver. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._api_version
|
||||
|
||||
@api_version.setter
|
||||
def api_version(self, api_version):
|
||||
"""Sets the api_version of this V1CSIDriver.
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:param api_version: The api_version of this V1CSIDriver. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._api_version = api_version
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this V1CSIDriver. # noqa: E501
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:return: The kind of this V1CSIDriver. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets the kind of this V1CSIDriver.
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:param kind: The kind of this V1CSIDriver. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def metadata(self):
|
||||
"""Gets the metadata of this V1CSIDriver. # noqa: E501
|
||||
|
||||
|
||||
:return: The metadata of this V1CSIDriver. # noqa: E501
|
||||
:rtype: V1ObjectMeta
|
||||
"""
|
||||
return self._metadata
|
||||
|
||||
@metadata.setter
|
||||
def metadata(self, metadata):
|
||||
"""Sets the metadata of this V1CSIDriver.
|
||||
|
||||
|
||||
:param metadata: The metadata of this V1CSIDriver. # noqa: E501
|
||||
:type: V1ObjectMeta
|
||||
"""
|
||||
|
||||
self._metadata = metadata
|
||||
|
||||
@property
|
||||
def spec(self):
|
||||
"""Gets the spec of this V1CSIDriver. # noqa: E501
|
||||
|
||||
|
||||
:return: The spec of this V1CSIDriver. # noqa: E501
|
||||
:rtype: V1CSIDriverSpec
|
||||
"""
|
||||
return self._spec
|
||||
|
||||
@spec.setter
|
||||
def spec(self, spec):
|
||||
"""Sets the spec of this V1CSIDriver.
|
||||
|
||||
|
||||
:param spec: The spec of this V1CSIDriver. # noqa: E501
|
||||
:type: V1CSIDriverSpec
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501
|
||||
|
||||
self._spec = spec
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1CSIDriver):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1CSIDriver):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
205
kubernetes/client/models/v1_csi_driver_list.py
Normal file
205
kubernetes/client/models/v1_csi_driver_list.py
Normal file
|
@ -0,0 +1,205 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1CSIDriverList(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'api_version': 'str',
|
||||
'items': 'list[V1CSIDriver]',
|
||||
'kind': 'str',
|
||||
'metadata': 'V1ListMeta'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'api_version': 'apiVersion',
|
||||
'items': 'items',
|
||||
'kind': 'kind',
|
||||
'metadata': 'metadata'
|
||||
}
|
||||
|
||||
def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1CSIDriverList - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._api_version = None
|
||||
self._items = None
|
||||
self._kind = None
|
||||
self._metadata = None
|
||||
self.discriminator = None
|
||||
|
||||
if api_version is not None:
|
||||
self.api_version = api_version
|
||||
self.items = items
|
||||
if kind is not None:
|
||||
self.kind = kind
|
||||
if metadata is not None:
|
||||
self.metadata = metadata
|
||||
|
||||
@property
|
||||
def api_version(self):
|
||||
"""Gets the api_version of this V1CSIDriverList. # noqa: E501
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:return: The api_version of this V1CSIDriverList. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._api_version
|
||||
|
||||
@api_version.setter
|
||||
def api_version(self, api_version):
|
||||
"""Sets the api_version of this V1CSIDriverList.
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:param api_version: The api_version of this V1CSIDriverList. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._api_version = api_version
|
||||
|
||||
@property
|
||||
def items(self):
|
||||
"""Gets the items of this V1CSIDriverList. # noqa: E501
|
||||
|
||||
items is the list of CSIDriver # noqa: E501
|
||||
|
||||
:return: The items of this V1CSIDriverList. # noqa: E501
|
||||
:rtype: list[V1CSIDriver]
|
||||
"""
|
||||
return self._items
|
||||
|
||||
@items.setter
|
||||
def items(self, items):
|
||||
"""Sets the items of this V1CSIDriverList.
|
||||
|
||||
items is the list of CSIDriver # noqa: E501
|
||||
|
||||
:param items: The items of this V1CSIDriverList. # noqa: E501
|
||||
:type: list[V1CSIDriver]
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501
|
||||
|
||||
self._items = items
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this V1CSIDriverList. # noqa: E501
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:return: The kind of this V1CSIDriverList. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets the kind of this V1CSIDriverList.
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:param kind: The kind of this V1CSIDriverList. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def metadata(self):
|
||||
"""Gets the metadata of this V1CSIDriverList. # noqa: E501
|
||||
|
||||
|
||||
:return: The metadata of this V1CSIDriverList. # noqa: E501
|
||||
:rtype: V1ListMeta
|
||||
"""
|
||||
return self._metadata
|
||||
|
||||
@metadata.setter
|
||||
def metadata(self, metadata):
|
||||
"""Sets the metadata of this V1CSIDriverList.
|
||||
|
||||
|
||||
:param metadata: The metadata of this V1CSIDriverList. # noqa: E501
|
||||
:type: V1ListMeta
|
||||
"""
|
||||
|
||||
self._metadata = metadata
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1CSIDriverList):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1CSIDriverList):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
318
kubernetes/client/models/v1_csi_driver_spec.py
Normal file
318
kubernetes/client/models/v1_csi_driver_spec.py
Normal file
|
@ -0,0 +1,318 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1CSIDriverSpec(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'attach_required': 'bool',
|
||||
'fs_group_policy': 'str',
|
||||
'pod_info_on_mount': 'bool',
|
||||
'requires_republish': 'bool',
|
||||
'se_linux_mount': 'bool',
|
||||
'storage_capacity': 'bool',
|
||||
'token_requests': 'list[StorageV1TokenRequest]',
|
||||
'volume_lifecycle_modes': 'list[str]'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'attach_required': 'attachRequired',
|
||||
'fs_group_policy': 'fsGroupPolicy',
|
||||
'pod_info_on_mount': 'podInfoOnMount',
|
||||
'requires_republish': 'requiresRepublish',
|
||||
'se_linux_mount': 'seLinuxMount',
|
||||
'storage_capacity': 'storageCapacity',
|
||||
'token_requests': 'tokenRequests',
|
||||
'volume_lifecycle_modes': 'volumeLifecycleModes'
|
||||
}
|
||||
|
||||
def __init__(self, attach_required=None, fs_group_policy=None, pod_info_on_mount=None, requires_republish=None, se_linux_mount=None, storage_capacity=None, token_requests=None, volume_lifecycle_modes=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1CSIDriverSpec - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._attach_required = None
|
||||
self._fs_group_policy = None
|
||||
self._pod_info_on_mount = None
|
||||
self._requires_republish = None
|
||||
self._se_linux_mount = None
|
||||
self._storage_capacity = None
|
||||
self._token_requests = None
|
||||
self._volume_lifecycle_modes = None
|
||||
self.discriminator = None
|
||||
|
||||
if attach_required is not None:
|
||||
self.attach_required = attach_required
|
||||
if fs_group_policy is not None:
|
||||
self.fs_group_policy = fs_group_policy
|
||||
if pod_info_on_mount is not None:
|
||||
self.pod_info_on_mount = pod_info_on_mount
|
||||
if requires_republish is not None:
|
||||
self.requires_republish = requires_republish
|
||||
if se_linux_mount is not None:
|
||||
self.se_linux_mount = se_linux_mount
|
||||
if storage_capacity is not None:
|
||||
self.storage_capacity = storage_capacity
|
||||
if token_requests is not None:
|
||||
self.token_requests = token_requests
|
||||
if volume_lifecycle_modes is not None:
|
||||
self.volume_lifecycle_modes = volume_lifecycle_modes
|
||||
|
||||
@property
|
||||
def attach_required(self):
|
||||
"""Gets the attach_required of this V1CSIDriverSpec. # noqa: E501
|
||||
|
||||
attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. This field is immutable. # noqa: E501
|
||||
|
||||
:return: The attach_required of this V1CSIDriverSpec. # noqa: E501
|
||||
:rtype: bool
|
||||
"""
|
||||
return self._attach_required
|
||||
|
||||
@attach_required.setter
|
||||
def attach_required(self, attach_required):
|
||||
"""Sets the attach_required of this V1CSIDriverSpec.
|
||||
|
||||
attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. This field is immutable. # noqa: E501
|
||||
|
||||
:param attach_required: The attach_required of this V1CSIDriverSpec. # noqa: E501
|
||||
:type: bool
|
||||
"""
|
||||
|
||||
self._attach_required = attach_required
|
||||
|
||||
@property
|
||||
def fs_group_policy(self):
|
||||
"""Gets the fs_group_policy of this V1CSIDriverSpec. # noqa: E501
|
||||
|
||||
fsGroupPolicy defines if the underlying volume supports changing ownership and permission of the volume before being mounted. Refer to the specific FSGroupPolicy values for additional details. This field was immutable in Kubernetes < 1.29 and now is mutable. Defaults to ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce. # noqa: E501
|
||||
|
||||
:return: The fs_group_policy of this V1CSIDriverSpec. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._fs_group_policy
|
||||
|
||||
@fs_group_policy.setter
|
||||
def fs_group_policy(self, fs_group_policy):
|
||||
"""Sets the fs_group_policy of this V1CSIDriverSpec.
|
||||
|
||||
fsGroupPolicy defines if the underlying volume supports changing ownership and permission of the volume before being mounted. Refer to the specific FSGroupPolicy values for additional details. This field was immutable in Kubernetes < 1.29 and now is mutable. Defaults to ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce. # noqa: E501
|
||||
|
||||
:param fs_group_policy: The fs_group_policy of this V1CSIDriverSpec. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._fs_group_policy = fs_group_policy
|
||||
|
||||
@property
|
||||
def pod_info_on_mount(self):
|
||||
"""Gets the pod_info_on_mount of this V1CSIDriverSpec. # noqa: E501
|
||||
|
||||
podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations, if set to true. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeContext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. \"csi.storage.k8s.io/pod.name\": pod.Name \"csi.storage.k8s.io/pod.namespace\": pod.Namespace \"csi.storage.k8s.io/pod.uid\": string(pod.UID) \"csi.storage.k8s.io/ephemeral\": \"true\" if the volume is an ephemeral inline volume defined by a CSIVolumeSource, otherwise \"false\" \"csi.storage.k8s.io/ephemeral\" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the \"Persistent\" and \"Ephemeral\" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver. This field was immutable in Kubernetes < 1.29 and now is mutable. # noqa: E501
|
||||
|
||||
:return: The pod_info_on_mount of this V1CSIDriverSpec. # noqa: E501
|
||||
:rtype: bool
|
||||
"""
|
||||
return self._pod_info_on_mount
|
||||
|
||||
@pod_info_on_mount.setter
|
||||
def pod_info_on_mount(self, pod_info_on_mount):
|
||||
"""Sets the pod_info_on_mount of this V1CSIDriverSpec.
|
||||
|
||||
podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations, if set to true. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeContext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. \"csi.storage.k8s.io/pod.name\": pod.Name \"csi.storage.k8s.io/pod.namespace\": pod.Namespace \"csi.storage.k8s.io/pod.uid\": string(pod.UID) \"csi.storage.k8s.io/ephemeral\": \"true\" if the volume is an ephemeral inline volume defined by a CSIVolumeSource, otherwise \"false\" \"csi.storage.k8s.io/ephemeral\" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the \"Persistent\" and \"Ephemeral\" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver. This field was immutable in Kubernetes < 1.29 and now is mutable. # noqa: E501
|
||||
|
||||
:param pod_info_on_mount: The pod_info_on_mount of this V1CSIDriverSpec. # noqa: E501
|
||||
:type: bool
|
||||
"""
|
||||
|
||||
self._pod_info_on_mount = pod_info_on_mount
|
||||
|
||||
@property
|
||||
def requires_republish(self):
|
||||
"""Gets the requires_republish of this V1CSIDriverSpec. # noqa: E501
|
||||
|
||||
requiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false. Note: After a successful initial NodePublishVolume call, subsequent calls to NodePublishVolume should only update the contents of the volume. New mount points will not be seen by a running container. # noqa: E501
|
||||
|
||||
:return: The requires_republish of this V1CSIDriverSpec. # noqa: E501
|
||||
:rtype: bool
|
||||
"""
|
||||
return self._requires_republish
|
||||
|
||||
@requires_republish.setter
|
||||
def requires_republish(self, requires_republish):
|
||||
"""Sets the requires_republish of this V1CSIDriverSpec.
|
||||
|
||||
requiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false. Note: After a successful initial NodePublishVolume call, subsequent calls to NodePublishVolume should only update the contents of the volume. New mount points will not be seen by a running container. # noqa: E501
|
||||
|
||||
:param requires_republish: The requires_republish of this V1CSIDriverSpec. # noqa: E501
|
||||
:type: bool
|
||||
"""
|
||||
|
||||
self._requires_republish = requires_republish
|
||||
|
||||
@property
|
||||
def se_linux_mount(self):
|
||||
"""Gets the se_linux_mount of this V1CSIDriverSpec. # noqa: E501
|
||||
|
||||
seLinuxMount specifies if the CSI driver supports \"-o context\" mount option. When \"true\", the CSI driver must ensure that all volumes provided by this CSI driver can be mounted separately with different `-o context` options. This is typical for storage backends that provide volumes as filesystems on block devices or as independent shared volumes. Kubernetes will call NodeStage / NodePublish with \"-o context=xyz\" mount option when mounting a ReadWriteOncePod volume used in Pod that has explicitly set SELinux context. In the future, it may be expanded to other volume AccessModes. In any case, Kubernetes will ensure that the volume is mounted only with a single SELinux context. When \"false\", Kubernetes won't pass any special SELinux mount options to the driver. This is typical for volumes that represent subdirectories of a bigger shared filesystem. Default is \"false\". # noqa: E501
|
||||
|
||||
:return: The se_linux_mount of this V1CSIDriverSpec. # noqa: E501
|
||||
:rtype: bool
|
||||
"""
|
||||
return self._se_linux_mount
|
||||
|
||||
@se_linux_mount.setter
|
||||
def se_linux_mount(self, se_linux_mount):
|
||||
"""Sets the se_linux_mount of this V1CSIDriverSpec.
|
||||
|
||||
seLinuxMount specifies if the CSI driver supports \"-o context\" mount option. When \"true\", the CSI driver must ensure that all volumes provided by this CSI driver can be mounted separately with different `-o context` options. This is typical for storage backends that provide volumes as filesystems on block devices or as independent shared volumes. Kubernetes will call NodeStage / NodePublish with \"-o context=xyz\" mount option when mounting a ReadWriteOncePod volume used in Pod that has explicitly set SELinux context. In the future, it may be expanded to other volume AccessModes. In any case, Kubernetes will ensure that the volume is mounted only with a single SELinux context. When \"false\", Kubernetes won't pass any special SELinux mount options to the driver. This is typical for volumes that represent subdirectories of a bigger shared filesystem. Default is \"false\". # noqa: E501
|
||||
|
||||
:param se_linux_mount: The se_linux_mount of this V1CSIDriverSpec. # noqa: E501
|
||||
:type: bool
|
||||
"""
|
||||
|
||||
self._se_linux_mount = se_linux_mount
|
||||
|
||||
@property
|
||||
def storage_capacity(self):
|
||||
"""Gets the storage_capacity of this V1CSIDriverSpec. # noqa: E501
|
||||
|
||||
storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage capacity that the driver deployment will report by creating CSIStorageCapacity objects with capacity information, if set to true. The check can be enabled immediately when deploying a driver. In that case, provisioning new volumes with late binding will pause until the driver deployment has published some suitable CSIStorageCapacity object. Alternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published. This field was immutable in Kubernetes <= 1.22 and now is mutable. # noqa: E501
|
||||
|
||||
:return: The storage_capacity of this V1CSIDriverSpec. # noqa: E501
|
||||
:rtype: bool
|
||||
"""
|
||||
return self._storage_capacity
|
||||
|
||||
@storage_capacity.setter
|
||||
def storage_capacity(self, storage_capacity):
|
||||
"""Sets the storage_capacity of this V1CSIDriverSpec.
|
||||
|
||||
storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage capacity that the driver deployment will report by creating CSIStorageCapacity objects with capacity information, if set to true. The check can be enabled immediately when deploying a driver. In that case, provisioning new volumes with late binding will pause until the driver deployment has published some suitable CSIStorageCapacity object. Alternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published. This field was immutable in Kubernetes <= 1.22 and now is mutable. # noqa: E501
|
||||
|
||||
:param storage_capacity: The storage_capacity of this V1CSIDriverSpec. # noqa: E501
|
||||
:type: bool
|
||||
"""
|
||||
|
||||
self._storage_capacity = storage_capacity
|
||||
|
||||
@property
|
||||
def token_requests(self):
|
||||
"""Gets the token_requests of this V1CSIDriverSpec. # noqa: E501
|
||||
|
||||
tokenRequests indicates the CSI driver needs pods' service account tokens it is mounting volume for to do necessary authentication. Kubelet will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. The CSI driver should parse and validate the following VolumeContext: \"csi.storage.k8s.io/serviceAccount.tokens\": { \"<audience>\": { \"token\": <token>, \"expirationTimestamp\": <expiration timestamp in RFC3339>, }, ... } Note: Audience in each TokenRequest should be different and at most one token is empty string. To receive a new token after expiry, RequiresRepublish can be used to trigger NodePublishVolume periodically. # noqa: E501
|
||||
|
||||
:return: The token_requests of this V1CSIDriverSpec. # noqa: E501
|
||||
:rtype: list[StorageV1TokenRequest]
|
||||
"""
|
||||
return self._token_requests
|
||||
|
||||
@token_requests.setter
|
||||
def token_requests(self, token_requests):
|
||||
"""Sets the token_requests of this V1CSIDriverSpec.
|
||||
|
||||
tokenRequests indicates the CSI driver needs pods' service account tokens it is mounting volume for to do necessary authentication. Kubelet will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. The CSI driver should parse and validate the following VolumeContext: \"csi.storage.k8s.io/serviceAccount.tokens\": { \"<audience>\": { \"token\": <token>, \"expirationTimestamp\": <expiration timestamp in RFC3339>, }, ... } Note: Audience in each TokenRequest should be different and at most one token is empty string. To receive a new token after expiry, RequiresRepublish can be used to trigger NodePublishVolume periodically. # noqa: E501
|
||||
|
||||
:param token_requests: The token_requests of this V1CSIDriverSpec. # noqa: E501
|
||||
:type: list[StorageV1TokenRequest]
|
||||
"""
|
||||
|
||||
self._token_requests = token_requests
|
||||
|
||||
@property
|
||||
def volume_lifecycle_modes(self):
|
||||
"""Gets the volume_lifecycle_modes of this V1CSIDriverSpec. # noqa: E501
|
||||
|
||||
volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is \"Persistent\", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. The other mode is \"Ephemeral\". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future. This field is beta. This field is immutable. # noqa: E501
|
||||
|
||||
:return: The volume_lifecycle_modes of this V1CSIDriverSpec. # noqa: E501
|
||||
:rtype: list[str]
|
||||
"""
|
||||
return self._volume_lifecycle_modes
|
||||
|
||||
@volume_lifecycle_modes.setter
|
||||
def volume_lifecycle_modes(self, volume_lifecycle_modes):
|
||||
"""Sets the volume_lifecycle_modes of this V1CSIDriverSpec.
|
||||
|
||||
volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is \"Persistent\", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. The other mode is \"Ephemeral\". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future. This field is beta. This field is immutable. # noqa: E501
|
||||
|
||||
:param volume_lifecycle_modes: The volume_lifecycle_modes of this V1CSIDriverSpec. # noqa: E501
|
||||
:type: list[str]
|
||||
"""
|
||||
|
||||
self._volume_lifecycle_modes = volume_lifecycle_modes
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1CSIDriverSpec):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1CSIDriverSpec):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
203
kubernetes/client/models/v1_csi_node.py
Normal file
203
kubernetes/client/models/v1_csi_node.py
Normal file
|
@ -0,0 +1,203 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1CSINode(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'api_version': 'str',
|
||||
'kind': 'str',
|
||||
'metadata': 'V1ObjectMeta',
|
||||
'spec': 'V1CSINodeSpec'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'api_version': 'apiVersion',
|
||||
'kind': 'kind',
|
||||
'metadata': 'metadata',
|
||||
'spec': 'spec'
|
||||
}
|
||||
|
||||
def __init__(self, api_version=None, kind=None, metadata=None, spec=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1CSINode - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._api_version = None
|
||||
self._kind = None
|
||||
self._metadata = None
|
||||
self._spec = None
|
||||
self.discriminator = None
|
||||
|
||||
if api_version is not None:
|
||||
self.api_version = api_version
|
||||
if kind is not None:
|
||||
self.kind = kind
|
||||
if metadata is not None:
|
||||
self.metadata = metadata
|
||||
self.spec = spec
|
||||
|
||||
@property
|
||||
def api_version(self):
|
||||
"""Gets the api_version of this V1CSINode. # noqa: E501
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:return: The api_version of this V1CSINode. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._api_version
|
||||
|
||||
@api_version.setter
|
||||
def api_version(self, api_version):
|
||||
"""Sets the api_version of this V1CSINode.
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:param api_version: The api_version of this V1CSINode. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._api_version = api_version
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this V1CSINode. # noqa: E501
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:return: The kind of this V1CSINode. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets the kind of this V1CSINode.
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:param kind: The kind of this V1CSINode. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def metadata(self):
|
||||
"""Gets the metadata of this V1CSINode. # noqa: E501
|
||||
|
||||
|
||||
:return: The metadata of this V1CSINode. # noqa: E501
|
||||
:rtype: V1ObjectMeta
|
||||
"""
|
||||
return self._metadata
|
||||
|
||||
@metadata.setter
|
||||
def metadata(self, metadata):
|
||||
"""Sets the metadata of this V1CSINode.
|
||||
|
||||
|
||||
:param metadata: The metadata of this V1CSINode. # noqa: E501
|
||||
:type: V1ObjectMeta
|
||||
"""
|
||||
|
||||
self._metadata = metadata
|
||||
|
||||
@property
|
||||
def spec(self):
|
||||
"""Gets the spec of this V1CSINode. # noqa: E501
|
||||
|
||||
|
||||
:return: The spec of this V1CSINode. # noqa: E501
|
||||
:rtype: V1CSINodeSpec
|
||||
"""
|
||||
return self._spec
|
||||
|
||||
@spec.setter
|
||||
def spec(self, spec):
|
||||
"""Sets the spec of this V1CSINode.
|
||||
|
||||
|
||||
:param spec: The spec of this V1CSINode. # noqa: E501
|
||||
:type: V1CSINodeSpec
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501
|
||||
|
||||
self._spec = spec
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1CSINode):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1CSINode):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
206
kubernetes/client/models/v1_csi_node_driver.py
Normal file
206
kubernetes/client/models/v1_csi_node_driver.py
Normal file
|
@ -0,0 +1,206 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1CSINodeDriver(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'allocatable': 'V1VolumeNodeResources',
|
||||
'name': 'str',
|
||||
'node_id': 'str',
|
||||
'topology_keys': 'list[str]'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'allocatable': 'allocatable',
|
||||
'name': 'name',
|
||||
'node_id': 'nodeID',
|
||||
'topology_keys': 'topologyKeys'
|
||||
}
|
||||
|
||||
def __init__(self, allocatable=None, name=None, node_id=None, topology_keys=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1CSINodeDriver - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._allocatable = None
|
||||
self._name = None
|
||||
self._node_id = None
|
||||
self._topology_keys = None
|
||||
self.discriminator = None
|
||||
|
||||
if allocatable is not None:
|
||||
self.allocatable = allocatable
|
||||
self.name = name
|
||||
self.node_id = node_id
|
||||
if topology_keys is not None:
|
||||
self.topology_keys = topology_keys
|
||||
|
||||
@property
|
||||
def allocatable(self):
|
||||
"""Gets the allocatable of this V1CSINodeDriver. # noqa: E501
|
||||
|
||||
|
||||
:return: The allocatable of this V1CSINodeDriver. # noqa: E501
|
||||
:rtype: V1VolumeNodeResources
|
||||
"""
|
||||
return self._allocatable
|
||||
|
||||
@allocatable.setter
|
||||
def allocatable(self, allocatable):
|
||||
"""Sets the allocatable of this V1CSINodeDriver.
|
||||
|
||||
|
||||
:param allocatable: The allocatable of this V1CSINodeDriver. # noqa: E501
|
||||
:type: V1VolumeNodeResources
|
||||
"""
|
||||
|
||||
self._allocatable = allocatable
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""Gets the name of this V1CSINodeDriver. # noqa: E501
|
||||
|
||||
name represents the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver. # noqa: E501
|
||||
|
||||
:return: The name of this V1CSINodeDriver. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._name
|
||||
|
||||
@name.setter
|
||||
def name(self, name):
|
||||
"""Sets the name of this V1CSINodeDriver.
|
||||
|
||||
name represents the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver. # noqa: E501
|
||||
|
||||
:param name: The name of this V1CSINodeDriver. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
||||
|
||||
self._name = name
|
||||
|
||||
@property
|
||||
def node_id(self):
|
||||
"""Gets the node_id of this V1CSINodeDriver. # noqa: E501
|
||||
|
||||
nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as \"node1\", but the storage system may refer to the same node as \"nodeA\". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. \"nodeA\" instead of \"node1\". This field is required. # noqa: E501
|
||||
|
||||
:return: The node_id of this V1CSINodeDriver. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._node_id
|
||||
|
||||
@node_id.setter
|
||||
def node_id(self, node_id):
|
||||
"""Sets the node_id of this V1CSINodeDriver.
|
||||
|
||||
nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as \"node1\", but the storage system may refer to the same node as \"nodeA\". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. \"nodeA\" instead of \"node1\". This field is required. # noqa: E501
|
||||
|
||||
:param node_id: The node_id of this V1CSINodeDriver. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and node_id is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `node_id`, must not be `None`") # noqa: E501
|
||||
|
||||
self._node_id = node_id
|
||||
|
||||
@property
|
||||
def topology_keys(self):
|
||||
"""Gets the topology_keys of this V1CSINodeDriver. # noqa: E501
|
||||
|
||||
topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. \"company.com/zone\", \"company.com/region\"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology. # noqa: E501
|
||||
|
||||
:return: The topology_keys of this V1CSINodeDriver. # noqa: E501
|
||||
:rtype: list[str]
|
||||
"""
|
||||
return self._topology_keys
|
||||
|
||||
@topology_keys.setter
|
||||
def topology_keys(self, topology_keys):
|
||||
"""Sets the topology_keys of this V1CSINodeDriver.
|
||||
|
||||
topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. \"company.com/zone\", \"company.com/region\"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology. # noqa: E501
|
||||
|
||||
:param topology_keys: The topology_keys of this V1CSINodeDriver. # noqa: E501
|
||||
:type: list[str]
|
||||
"""
|
||||
|
||||
self._topology_keys = topology_keys
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1CSINodeDriver):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1CSINodeDriver):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
205
kubernetes/client/models/v1_csi_node_list.py
Normal file
205
kubernetes/client/models/v1_csi_node_list.py
Normal file
|
@ -0,0 +1,205 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1CSINodeList(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'api_version': 'str',
|
||||
'items': 'list[V1CSINode]',
|
||||
'kind': 'str',
|
||||
'metadata': 'V1ListMeta'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'api_version': 'apiVersion',
|
||||
'items': 'items',
|
||||
'kind': 'kind',
|
||||
'metadata': 'metadata'
|
||||
}
|
||||
|
||||
def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1CSINodeList - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._api_version = None
|
||||
self._items = None
|
||||
self._kind = None
|
||||
self._metadata = None
|
||||
self.discriminator = None
|
||||
|
||||
if api_version is not None:
|
||||
self.api_version = api_version
|
||||
self.items = items
|
||||
if kind is not None:
|
||||
self.kind = kind
|
||||
if metadata is not None:
|
||||
self.metadata = metadata
|
||||
|
||||
@property
|
||||
def api_version(self):
|
||||
"""Gets the api_version of this V1CSINodeList. # noqa: E501
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:return: The api_version of this V1CSINodeList. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._api_version
|
||||
|
||||
@api_version.setter
|
||||
def api_version(self, api_version):
|
||||
"""Sets the api_version of this V1CSINodeList.
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:param api_version: The api_version of this V1CSINodeList. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._api_version = api_version
|
||||
|
||||
@property
|
||||
def items(self):
|
||||
"""Gets the items of this V1CSINodeList. # noqa: E501
|
||||
|
||||
items is the list of CSINode # noqa: E501
|
||||
|
||||
:return: The items of this V1CSINodeList. # noqa: E501
|
||||
:rtype: list[V1CSINode]
|
||||
"""
|
||||
return self._items
|
||||
|
||||
@items.setter
|
||||
def items(self, items):
|
||||
"""Sets the items of this V1CSINodeList.
|
||||
|
||||
items is the list of CSINode # noqa: E501
|
||||
|
||||
:param items: The items of this V1CSINodeList. # noqa: E501
|
||||
:type: list[V1CSINode]
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501
|
||||
|
||||
self._items = items
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this V1CSINodeList. # noqa: E501
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:return: The kind of this V1CSINodeList. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets the kind of this V1CSINodeList.
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:param kind: The kind of this V1CSINodeList. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def metadata(self):
|
||||
"""Gets the metadata of this V1CSINodeList. # noqa: E501
|
||||
|
||||
|
||||
:return: The metadata of this V1CSINodeList. # noqa: E501
|
||||
:rtype: V1ListMeta
|
||||
"""
|
||||
return self._metadata
|
||||
|
||||
@metadata.setter
|
||||
def metadata(self, metadata):
|
||||
"""Sets the metadata of this V1CSINodeList.
|
||||
|
||||
|
||||
:param metadata: The metadata of this V1CSINodeList. # noqa: E501
|
||||
:type: V1ListMeta
|
||||
"""
|
||||
|
||||
self._metadata = metadata
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1CSINodeList):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1CSINodeList):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
123
kubernetes/client/models/v1_csi_node_spec.py
Normal file
123
kubernetes/client/models/v1_csi_node_spec.py
Normal file
|
@ -0,0 +1,123 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1CSINodeSpec(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'drivers': 'list[V1CSINodeDriver]'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'drivers': 'drivers'
|
||||
}
|
||||
|
||||
def __init__(self, drivers=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1CSINodeSpec - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._drivers = None
|
||||
self.discriminator = None
|
||||
|
||||
self.drivers = drivers
|
||||
|
||||
@property
|
||||
def drivers(self):
|
||||
"""Gets the drivers of this V1CSINodeSpec. # noqa: E501
|
||||
|
||||
drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty. # noqa: E501
|
||||
|
||||
:return: The drivers of this V1CSINodeSpec. # noqa: E501
|
||||
:rtype: list[V1CSINodeDriver]
|
||||
"""
|
||||
return self._drivers
|
||||
|
||||
@drivers.setter
|
||||
def drivers(self, drivers):
|
||||
"""Sets the drivers of this V1CSINodeSpec.
|
||||
|
||||
drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty. # noqa: E501
|
||||
|
||||
:param drivers: The drivers of this V1CSINodeSpec. # noqa: E501
|
||||
:type: list[V1CSINodeDriver]
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and drivers is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `drivers`, must not be `None`") # noqa: E501
|
||||
|
||||
self._drivers = drivers
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1CSINodeSpec):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1CSINodeSpec):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
366
kubernetes/client/models/v1_csi_persistent_volume_source.py
Normal file
366
kubernetes/client/models/v1_csi_persistent_volume_source.py
Normal file
|
@ -0,0 +1,366 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1CSIPersistentVolumeSource(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'controller_expand_secret_ref': 'V1SecretReference',
|
||||
'controller_publish_secret_ref': 'V1SecretReference',
|
||||
'driver': 'str',
|
||||
'fs_type': 'str',
|
||||
'node_expand_secret_ref': 'V1SecretReference',
|
||||
'node_publish_secret_ref': 'V1SecretReference',
|
||||
'node_stage_secret_ref': 'V1SecretReference',
|
||||
'read_only': 'bool',
|
||||
'volume_attributes': 'dict(str, str)',
|
||||
'volume_handle': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'controller_expand_secret_ref': 'controllerExpandSecretRef',
|
||||
'controller_publish_secret_ref': 'controllerPublishSecretRef',
|
||||
'driver': 'driver',
|
||||
'fs_type': 'fsType',
|
||||
'node_expand_secret_ref': 'nodeExpandSecretRef',
|
||||
'node_publish_secret_ref': 'nodePublishSecretRef',
|
||||
'node_stage_secret_ref': 'nodeStageSecretRef',
|
||||
'read_only': 'readOnly',
|
||||
'volume_attributes': 'volumeAttributes',
|
||||
'volume_handle': 'volumeHandle'
|
||||
}
|
||||
|
||||
def __init__(self, controller_expand_secret_ref=None, controller_publish_secret_ref=None, driver=None, fs_type=None, node_expand_secret_ref=None, node_publish_secret_ref=None, node_stage_secret_ref=None, read_only=None, volume_attributes=None, volume_handle=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1CSIPersistentVolumeSource - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._controller_expand_secret_ref = None
|
||||
self._controller_publish_secret_ref = None
|
||||
self._driver = None
|
||||
self._fs_type = None
|
||||
self._node_expand_secret_ref = None
|
||||
self._node_publish_secret_ref = None
|
||||
self._node_stage_secret_ref = None
|
||||
self._read_only = None
|
||||
self._volume_attributes = None
|
||||
self._volume_handle = None
|
||||
self.discriminator = None
|
||||
|
||||
if controller_expand_secret_ref is not None:
|
||||
self.controller_expand_secret_ref = controller_expand_secret_ref
|
||||
if controller_publish_secret_ref is not None:
|
||||
self.controller_publish_secret_ref = controller_publish_secret_ref
|
||||
self.driver = driver
|
||||
if fs_type is not None:
|
||||
self.fs_type = fs_type
|
||||
if node_expand_secret_ref is not None:
|
||||
self.node_expand_secret_ref = node_expand_secret_ref
|
||||
if node_publish_secret_ref is not None:
|
||||
self.node_publish_secret_ref = node_publish_secret_ref
|
||||
if node_stage_secret_ref is not None:
|
||||
self.node_stage_secret_ref = node_stage_secret_ref
|
||||
if read_only is not None:
|
||||
self.read_only = read_only
|
||||
if volume_attributes is not None:
|
||||
self.volume_attributes = volume_attributes
|
||||
self.volume_handle = volume_handle
|
||||
|
||||
@property
|
||||
def controller_expand_secret_ref(self):
|
||||
"""Gets the controller_expand_secret_ref of this V1CSIPersistentVolumeSource. # noqa: E501
|
||||
|
||||
|
||||
:return: The controller_expand_secret_ref of this V1CSIPersistentVolumeSource. # noqa: E501
|
||||
:rtype: V1SecretReference
|
||||
"""
|
||||
return self._controller_expand_secret_ref
|
||||
|
||||
@controller_expand_secret_ref.setter
|
||||
def controller_expand_secret_ref(self, controller_expand_secret_ref):
|
||||
"""Sets the controller_expand_secret_ref of this V1CSIPersistentVolumeSource.
|
||||
|
||||
|
||||
:param controller_expand_secret_ref: The controller_expand_secret_ref of this V1CSIPersistentVolumeSource. # noqa: E501
|
||||
:type: V1SecretReference
|
||||
"""
|
||||
|
||||
self._controller_expand_secret_ref = controller_expand_secret_ref
|
||||
|
||||
@property
|
||||
def controller_publish_secret_ref(self):
|
||||
"""Gets the controller_publish_secret_ref of this V1CSIPersistentVolumeSource. # noqa: E501
|
||||
|
||||
|
||||
:return: The controller_publish_secret_ref of this V1CSIPersistentVolumeSource. # noqa: E501
|
||||
:rtype: V1SecretReference
|
||||
"""
|
||||
return self._controller_publish_secret_ref
|
||||
|
||||
@controller_publish_secret_ref.setter
|
||||
def controller_publish_secret_ref(self, controller_publish_secret_ref):
|
||||
"""Sets the controller_publish_secret_ref of this V1CSIPersistentVolumeSource.
|
||||
|
||||
|
||||
:param controller_publish_secret_ref: The controller_publish_secret_ref of this V1CSIPersistentVolumeSource. # noqa: E501
|
||||
:type: V1SecretReference
|
||||
"""
|
||||
|
||||
self._controller_publish_secret_ref = controller_publish_secret_ref
|
||||
|
||||
@property
|
||||
def driver(self):
|
||||
"""Gets the driver of this V1CSIPersistentVolumeSource. # noqa: E501
|
||||
|
||||
driver is the name of the driver to use for this volume. Required. # noqa: E501
|
||||
|
||||
:return: The driver of this V1CSIPersistentVolumeSource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._driver
|
||||
|
||||
@driver.setter
|
||||
def driver(self, driver):
|
||||
"""Sets the driver of this V1CSIPersistentVolumeSource.
|
||||
|
||||
driver is the name of the driver to use for this volume. Required. # noqa: E501
|
||||
|
||||
:param driver: The driver of this V1CSIPersistentVolumeSource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and driver is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `driver`, must not be `None`") # noqa: E501
|
||||
|
||||
self._driver = driver
|
||||
|
||||
@property
|
||||
def fs_type(self):
|
||||
"""Gets the fs_type of this V1CSIPersistentVolumeSource. # noqa: E501
|
||||
|
||||
fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". # noqa: E501
|
||||
|
||||
:return: The fs_type of this V1CSIPersistentVolumeSource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._fs_type
|
||||
|
||||
@fs_type.setter
|
||||
def fs_type(self, fs_type):
|
||||
"""Sets the fs_type of this V1CSIPersistentVolumeSource.
|
||||
|
||||
fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". # noqa: E501
|
||||
|
||||
:param fs_type: The fs_type of this V1CSIPersistentVolumeSource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._fs_type = fs_type
|
||||
|
||||
@property
|
||||
def node_expand_secret_ref(self):
|
||||
"""Gets the node_expand_secret_ref of this V1CSIPersistentVolumeSource. # noqa: E501
|
||||
|
||||
|
||||
:return: The node_expand_secret_ref of this V1CSIPersistentVolumeSource. # noqa: E501
|
||||
:rtype: V1SecretReference
|
||||
"""
|
||||
return self._node_expand_secret_ref
|
||||
|
||||
@node_expand_secret_ref.setter
|
||||
def node_expand_secret_ref(self, node_expand_secret_ref):
|
||||
"""Sets the node_expand_secret_ref of this V1CSIPersistentVolumeSource.
|
||||
|
||||
|
||||
:param node_expand_secret_ref: The node_expand_secret_ref of this V1CSIPersistentVolumeSource. # noqa: E501
|
||||
:type: V1SecretReference
|
||||
"""
|
||||
|
||||
self._node_expand_secret_ref = node_expand_secret_ref
|
||||
|
||||
@property
|
||||
def node_publish_secret_ref(self):
|
||||
"""Gets the node_publish_secret_ref of this V1CSIPersistentVolumeSource. # noqa: E501
|
||||
|
||||
|
||||
:return: The node_publish_secret_ref of this V1CSIPersistentVolumeSource. # noqa: E501
|
||||
:rtype: V1SecretReference
|
||||
"""
|
||||
return self._node_publish_secret_ref
|
||||
|
||||
@node_publish_secret_ref.setter
|
||||
def node_publish_secret_ref(self, node_publish_secret_ref):
|
||||
"""Sets the node_publish_secret_ref of this V1CSIPersistentVolumeSource.
|
||||
|
||||
|
||||
:param node_publish_secret_ref: The node_publish_secret_ref of this V1CSIPersistentVolumeSource. # noqa: E501
|
||||
:type: V1SecretReference
|
||||
"""
|
||||
|
||||
self._node_publish_secret_ref = node_publish_secret_ref
|
||||
|
||||
@property
|
||||
def node_stage_secret_ref(self):
|
||||
"""Gets the node_stage_secret_ref of this V1CSIPersistentVolumeSource. # noqa: E501
|
||||
|
||||
|
||||
:return: The node_stage_secret_ref of this V1CSIPersistentVolumeSource. # noqa: E501
|
||||
:rtype: V1SecretReference
|
||||
"""
|
||||
return self._node_stage_secret_ref
|
||||
|
||||
@node_stage_secret_ref.setter
|
||||
def node_stage_secret_ref(self, node_stage_secret_ref):
|
||||
"""Sets the node_stage_secret_ref of this V1CSIPersistentVolumeSource.
|
||||
|
||||
|
||||
:param node_stage_secret_ref: The node_stage_secret_ref of this V1CSIPersistentVolumeSource. # noqa: E501
|
||||
:type: V1SecretReference
|
||||
"""
|
||||
|
||||
self._node_stage_secret_ref = node_stage_secret_ref
|
||||
|
||||
@property
|
||||
def read_only(self):
|
||||
"""Gets the read_only of this V1CSIPersistentVolumeSource. # noqa: E501
|
||||
|
||||
readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). # noqa: E501
|
||||
|
||||
:return: The read_only of this V1CSIPersistentVolumeSource. # noqa: E501
|
||||
:rtype: bool
|
||||
"""
|
||||
return self._read_only
|
||||
|
||||
@read_only.setter
|
||||
def read_only(self, read_only):
|
||||
"""Sets the read_only of this V1CSIPersistentVolumeSource.
|
||||
|
||||
readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). # noqa: E501
|
||||
|
||||
:param read_only: The read_only of this V1CSIPersistentVolumeSource. # noqa: E501
|
||||
:type: bool
|
||||
"""
|
||||
|
||||
self._read_only = read_only
|
||||
|
||||
@property
|
||||
def volume_attributes(self):
|
||||
"""Gets the volume_attributes of this V1CSIPersistentVolumeSource. # noqa: E501
|
||||
|
||||
volumeAttributes of the volume to publish. # noqa: E501
|
||||
|
||||
:return: The volume_attributes of this V1CSIPersistentVolumeSource. # noqa: E501
|
||||
:rtype: dict(str, str)
|
||||
"""
|
||||
return self._volume_attributes
|
||||
|
||||
@volume_attributes.setter
|
||||
def volume_attributes(self, volume_attributes):
|
||||
"""Sets the volume_attributes of this V1CSIPersistentVolumeSource.
|
||||
|
||||
volumeAttributes of the volume to publish. # noqa: E501
|
||||
|
||||
:param volume_attributes: The volume_attributes of this V1CSIPersistentVolumeSource. # noqa: E501
|
||||
:type: dict(str, str)
|
||||
"""
|
||||
|
||||
self._volume_attributes = volume_attributes
|
||||
|
||||
@property
|
||||
def volume_handle(self):
|
||||
"""Gets the volume_handle of this V1CSIPersistentVolumeSource. # noqa: E501
|
||||
|
||||
volumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. # noqa: E501
|
||||
|
||||
:return: The volume_handle of this V1CSIPersistentVolumeSource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._volume_handle
|
||||
|
||||
@volume_handle.setter
|
||||
def volume_handle(self, volume_handle):
|
||||
"""Sets the volume_handle of this V1CSIPersistentVolumeSource.
|
||||
|
||||
volumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. # noqa: E501
|
||||
|
||||
:param volume_handle: The volume_handle of this V1CSIPersistentVolumeSource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and volume_handle is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `volume_handle`, must not be `None`") # noqa: E501
|
||||
|
||||
self._volume_handle = volume_handle
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1CSIPersistentVolumeSource):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1CSIPersistentVolumeSource):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
287
kubernetes/client/models/v1_csi_storage_capacity.py
Normal file
287
kubernetes/client/models/v1_csi_storage_capacity.py
Normal file
|
@ -0,0 +1,287 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1CSIStorageCapacity(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'api_version': 'str',
|
||||
'capacity': 'str',
|
||||
'kind': 'str',
|
||||
'maximum_volume_size': 'str',
|
||||
'metadata': 'V1ObjectMeta',
|
||||
'node_topology': 'V1LabelSelector',
|
||||
'storage_class_name': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'api_version': 'apiVersion',
|
||||
'capacity': 'capacity',
|
||||
'kind': 'kind',
|
||||
'maximum_volume_size': 'maximumVolumeSize',
|
||||
'metadata': 'metadata',
|
||||
'node_topology': 'nodeTopology',
|
||||
'storage_class_name': 'storageClassName'
|
||||
}
|
||||
|
||||
def __init__(self, api_version=None, capacity=None, kind=None, maximum_volume_size=None, metadata=None, node_topology=None, storage_class_name=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1CSIStorageCapacity - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._api_version = None
|
||||
self._capacity = None
|
||||
self._kind = None
|
||||
self._maximum_volume_size = None
|
||||
self._metadata = None
|
||||
self._node_topology = None
|
||||
self._storage_class_name = None
|
||||
self.discriminator = None
|
||||
|
||||
if api_version is not None:
|
||||
self.api_version = api_version
|
||||
if capacity is not None:
|
||||
self.capacity = capacity
|
||||
if kind is not None:
|
||||
self.kind = kind
|
||||
if maximum_volume_size is not None:
|
||||
self.maximum_volume_size = maximum_volume_size
|
||||
if metadata is not None:
|
||||
self.metadata = metadata
|
||||
if node_topology is not None:
|
||||
self.node_topology = node_topology
|
||||
self.storage_class_name = storage_class_name
|
||||
|
||||
@property
|
||||
def api_version(self):
|
||||
"""Gets the api_version of this V1CSIStorageCapacity. # noqa: E501
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:return: The api_version of this V1CSIStorageCapacity. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._api_version
|
||||
|
||||
@api_version.setter
|
||||
def api_version(self, api_version):
|
||||
"""Sets the api_version of this V1CSIStorageCapacity.
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:param api_version: The api_version of this V1CSIStorageCapacity. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._api_version = api_version
|
||||
|
||||
@property
|
||||
def capacity(self):
|
||||
"""Gets the capacity of this V1CSIStorageCapacity. # noqa: E501
|
||||
|
||||
capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields. The semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable. # noqa: E501
|
||||
|
||||
:return: The capacity of this V1CSIStorageCapacity. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._capacity
|
||||
|
||||
@capacity.setter
|
||||
def capacity(self, capacity):
|
||||
"""Sets the capacity of this V1CSIStorageCapacity.
|
||||
|
||||
capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields. The semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable. # noqa: E501
|
||||
|
||||
:param capacity: The capacity of this V1CSIStorageCapacity. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._capacity = capacity
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this V1CSIStorageCapacity. # noqa: E501
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:return: The kind of this V1CSIStorageCapacity. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets the kind of this V1CSIStorageCapacity.
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:param kind: The kind of this V1CSIStorageCapacity. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def maximum_volume_size(self):
|
||||
"""Gets the maximum_volume_size of this V1CSIStorageCapacity. # noqa: E501
|
||||
|
||||
maximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields. This is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim. # noqa: E501
|
||||
|
||||
:return: The maximum_volume_size of this V1CSIStorageCapacity. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._maximum_volume_size
|
||||
|
||||
@maximum_volume_size.setter
|
||||
def maximum_volume_size(self, maximum_volume_size):
|
||||
"""Sets the maximum_volume_size of this V1CSIStorageCapacity.
|
||||
|
||||
maximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields. This is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim. # noqa: E501
|
||||
|
||||
:param maximum_volume_size: The maximum_volume_size of this V1CSIStorageCapacity. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._maximum_volume_size = maximum_volume_size
|
||||
|
||||
@property
|
||||
def metadata(self):
|
||||
"""Gets the metadata of this V1CSIStorageCapacity. # noqa: E501
|
||||
|
||||
|
||||
:return: The metadata of this V1CSIStorageCapacity. # noqa: E501
|
||||
:rtype: V1ObjectMeta
|
||||
"""
|
||||
return self._metadata
|
||||
|
||||
@metadata.setter
|
||||
def metadata(self, metadata):
|
||||
"""Sets the metadata of this V1CSIStorageCapacity.
|
||||
|
||||
|
||||
:param metadata: The metadata of this V1CSIStorageCapacity. # noqa: E501
|
||||
:type: V1ObjectMeta
|
||||
"""
|
||||
|
||||
self._metadata = metadata
|
||||
|
||||
@property
|
||||
def node_topology(self):
|
||||
"""Gets the node_topology of this V1CSIStorageCapacity. # noqa: E501
|
||||
|
||||
|
||||
:return: The node_topology of this V1CSIStorageCapacity. # noqa: E501
|
||||
:rtype: V1LabelSelector
|
||||
"""
|
||||
return self._node_topology
|
||||
|
||||
@node_topology.setter
|
||||
def node_topology(self, node_topology):
|
||||
"""Sets the node_topology of this V1CSIStorageCapacity.
|
||||
|
||||
|
||||
:param node_topology: The node_topology of this V1CSIStorageCapacity. # noqa: E501
|
||||
:type: V1LabelSelector
|
||||
"""
|
||||
|
||||
self._node_topology = node_topology
|
||||
|
||||
@property
|
||||
def storage_class_name(self):
|
||||
"""Gets the storage_class_name of this V1CSIStorageCapacity. # noqa: E501
|
||||
|
||||
storageClassName represents the name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable. # noqa: E501
|
||||
|
||||
:return: The storage_class_name of this V1CSIStorageCapacity. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._storage_class_name
|
||||
|
||||
@storage_class_name.setter
|
||||
def storage_class_name(self, storage_class_name):
|
||||
"""Sets the storage_class_name of this V1CSIStorageCapacity.
|
||||
|
||||
storageClassName represents the name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable. # noqa: E501
|
||||
|
||||
:param storage_class_name: The storage_class_name of this V1CSIStorageCapacity. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and storage_class_name is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `storage_class_name`, must not be `None`") # noqa: E501
|
||||
|
||||
self._storage_class_name = storage_class_name
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1CSIStorageCapacity):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1CSIStorageCapacity):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
205
kubernetes/client/models/v1_csi_storage_capacity_list.py
Normal file
205
kubernetes/client/models/v1_csi_storage_capacity_list.py
Normal file
|
@ -0,0 +1,205 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1CSIStorageCapacityList(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'api_version': 'str',
|
||||
'items': 'list[V1CSIStorageCapacity]',
|
||||
'kind': 'str',
|
||||
'metadata': 'V1ListMeta'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'api_version': 'apiVersion',
|
||||
'items': 'items',
|
||||
'kind': 'kind',
|
||||
'metadata': 'metadata'
|
||||
}
|
||||
|
||||
def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1CSIStorageCapacityList - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._api_version = None
|
||||
self._items = None
|
||||
self._kind = None
|
||||
self._metadata = None
|
||||
self.discriminator = None
|
||||
|
||||
if api_version is not None:
|
||||
self.api_version = api_version
|
||||
self.items = items
|
||||
if kind is not None:
|
||||
self.kind = kind
|
||||
if metadata is not None:
|
||||
self.metadata = metadata
|
||||
|
||||
@property
|
||||
def api_version(self):
|
||||
"""Gets the api_version of this V1CSIStorageCapacityList. # noqa: E501
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:return: The api_version of this V1CSIStorageCapacityList. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._api_version
|
||||
|
||||
@api_version.setter
|
||||
def api_version(self, api_version):
|
||||
"""Sets the api_version of this V1CSIStorageCapacityList.
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:param api_version: The api_version of this V1CSIStorageCapacityList. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._api_version = api_version
|
||||
|
||||
@property
|
||||
def items(self):
|
||||
"""Gets the items of this V1CSIStorageCapacityList. # noqa: E501
|
||||
|
||||
items is the list of CSIStorageCapacity objects. # noqa: E501
|
||||
|
||||
:return: The items of this V1CSIStorageCapacityList. # noqa: E501
|
||||
:rtype: list[V1CSIStorageCapacity]
|
||||
"""
|
||||
return self._items
|
||||
|
||||
@items.setter
|
||||
def items(self, items):
|
||||
"""Sets the items of this V1CSIStorageCapacityList.
|
||||
|
||||
items is the list of CSIStorageCapacity objects. # noqa: E501
|
||||
|
||||
:param items: The items of this V1CSIStorageCapacityList. # noqa: E501
|
||||
:type: list[V1CSIStorageCapacity]
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501
|
||||
|
||||
self._items = items
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this V1CSIStorageCapacityList. # noqa: E501
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:return: The kind of this V1CSIStorageCapacityList. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets the kind of this V1CSIStorageCapacityList.
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:param kind: The kind of this V1CSIStorageCapacityList. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def metadata(self):
|
||||
"""Gets the metadata of this V1CSIStorageCapacityList. # noqa: E501
|
||||
|
||||
|
||||
:return: The metadata of this V1CSIStorageCapacityList. # noqa: E501
|
||||
:rtype: V1ListMeta
|
||||
"""
|
||||
return self._metadata
|
||||
|
||||
@metadata.setter
|
||||
def metadata(self, metadata):
|
||||
"""Sets the metadata of this V1CSIStorageCapacityList.
|
||||
|
||||
|
||||
:param metadata: The metadata of this V1CSIStorageCapacityList. # noqa: E501
|
||||
:type: V1ListMeta
|
||||
"""
|
||||
|
||||
self._metadata = metadata
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1CSIStorageCapacityList):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1CSIStorageCapacityList):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
233
kubernetes/client/models/v1_csi_volume_source.py
Normal file
233
kubernetes/client/models/v1_csi_volume_source.py
Normal file
|
@ -0,0 +1,233 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1CSIVolumeSource(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'driver': 'str',
|
||||
'fs_type': 'str',
|
||||
'node_publish_secret_ref': 'V1LocalObjectReference',
|
||||
'read_only': 'bool',
|
||||
'volume_attributes': 'dict(str, str)'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'driver': 'driver',
|
||||
'fs_type': 'fsType',
|
||||
'node_publish_secret_ref': 'nodePublishSecretRef',
|
||||
'read_only': 'readOnly',
|
||||
'volume_attributes': 'volumeAttributes'
|
||||
}
|
||||
|
||||
def __init__(self, driver=None, fs_type=None, node_publish_secret_ref=None, read_only=None, volume_attributes=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1CSIVolumeSource - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._driver = None
|
||||
self._fs_type = None
|
||||
self._node_publish_secret_ref = None
|
||||
self._read_only = None
|
||||
self._volume_attributes = None
|
||||
self.discriminator = None
|
||||
|
||||
self.driver = driver
|
||||
if fs_type is not None:
|
||||
self.fs_type = fs_type
|
||||
if node_publish_secret_ref is not None:
|
||||
self.node_publish_secret_ref = node_publish_secret_ref
|
||||
if read_only is not None:
|
||||
self.read_only = read_only
|
||||
if volume_attributes is not None:
|
||||
self.volume_attributes = volume_attributes
|
||||
|
||||
@property
|
||||
def driver(self):
|
||||
"""Gets the driver of this V1CSIVolumeSource. # noqa: E501
|
||||
|
||||
driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. # noqa: E501
|
||||
|
||||
:return: The driver of this V1CSIVolumeSource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._driver
|
||||
|
||||
@driver.setter
|
||||
def driver(self, driver):
|
||||
"""Sets the driver of this V1CSIVolumeSource.
|
||||
|
||||
driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. # noqa: E501
|
||||
|
||||
:param driver: The driver of this V1CSIVolumeSource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and driver is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `driver`, must not be `None`") # noqa: E501
|
||||
|
||||
self._driver = driver
|
||||
|
||||
@property
|
||||
def fs_type(self):
|
||||
"""Gets the fs_type of this V1CSIVolumeSource. # noqa: E501
|
||||
|
||||
fsType to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. # noqa: E501
|
||||
|
||||
:return: The fs_type of this V1CSIVolumeSource. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._fs_type
|
||||
|
||||
@fs_type.setter
|
||||
def fs_type(self, fs_type):
|
||||
"""Sets the fs_type of this V1CSIVolumeSource.
|
||||
|
||||
fsType to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. # noqa: E501
|
||||
|
||||
:param fs_type: The fs_type of this V1CSIVolumeSource. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._fs_type = fs_type
|
||||
|
||||
@property
|
||||
def node_publish_secret_ref(self):
|
||||
"""Gets the node_publish_secret_ref of this V1CSIVolumeSource. # noqa: E501
|
||||
|
||||
|
||||
:return: The node_publish_secret_ref of this V1CSIVolumeSource. # noqa: E501
|
||||
:rtype: V1LocalObjectReference
|
||||
"""
|
||||
return self._node_publish_secret_ref
|
||||
|
||||
@node_publish_secret_ref.setter
|
||||
def node_publish_secret_ref(self, node_publish_secret_ref):
|
||||
"""Sets the node_publish_secret_ref of this V1CSIVolumeSource.
|
||||
|
||||
|
||||
:param node_publish_secret_ref: The node_publish_secret_ref of this V1CSIVolumeSource. # noqa: E501
|
||||
:type: V1LocalObjectReference
|
||||
"""
|
||||
|
||||
self._node_publish_secret_ref = node_publish_secret_ref
|
||||
|
||||
@property
|
||||
def read_only(self):
|
||||
"""Gets the read_only of this V1CSIVolumeSource. # noqa: E501
|
||||
|
||||
readOnly specifies a read-only configuration for the volume. Defaults to false (read/write). # noqa: E501
|
||||
|
||||
:return: The read_only of this V1CSIVolumeSource. # noqa: E501
|
||||
:rtype: bool
|
||||
"""
|
||||
return self._read_only
|
||||
|
||||
@read_only.setter
|
||||
def read_only(self, read_only):
|
||||
"""Sets the read_only of this V1CSIVolumeSource.
|
||||
|
||||
readOnly specifies a read-only configuration for the volume. Defaults to false (read/write). # noqa: E501
|
||||
|
||||
:param read_only: The read_only of this V1CSIVolumeSource. # noqa: E501
|
||||
:type: bool
|
||||
"""
|
||||
|
||||
self._read_only = read_only
|
||||
|
||||
@property
|
||||
def volume_attributes(self):
|
||||
"""Gets the volume_attributes of this V1CSIVolumeSource. # noqa: E501
|
||||
|
||||
volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. # noqa: E501
|
||||
|
||||
:return: The volume_attributes of this V1CSIVolumeSource. # noqa: E501
|
||||
:rtype: dict(str, str)
|
||||
"""
|
||||
return self._volume_attributes
|
||||
|
||||
@volume_attributes.setter
|
||||
def volume_attributes(self, volume_attributes):
|
||||
"""Sets the volume_attributes of this V1CSIVolumeSource.
|
||||
|
||||
volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. # noqa: E501
|
||||
|
||||
:param volume_attributes: The volume_attributes of this V1CSIVolumeSource. # noqa: E501
|
||||
:type: dict(str, str)
|
||||
"""
|
||||
|
||||
self._volume_attributes = volume_attributes
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1CSIVolumeSource):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1CSIVolumeSource):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
265
kubernetes/client/models/v1_custom_resource_column_definition.py
Normal file
265
kubernetes/client/models/v1_custom_resource_column_definition.py
Normal file
|
@ -0,0 +1,265 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1CustomResourceColumnDefinition(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'description': 'str',
|
||||
'format': 'str',
|
||||
'json_path': 'str',
|
||||
'name': 'str',
|
||||
'priority': 'int',
|
||||
'type': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'description': 'description',
|
||||
'format': 'format',
|
||||
'json_path': 'jsonPath',
|
||||
'name': 'name',
|
||||
'priority': 'priority',
|
||||
'type': 'type'
|
||||
}
|
||||
|
||||
def __init__(self, description=None, format=None, json_path=None, name=None, priority=None, type=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1CustomResourceColumnDefinition - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._description = None
|
||||
self._format = None
|
||||
self._json_path = None
|
||||
self._name = None
|
||||
self._priority = None
|
||||
self._type = None
|
||||
self.discriminator = None
|
||||
|
||||
if description is not None:
|
||||
self.description = description
|
||||
if format is not None:
|
||||
self.format = format
|
||||
self.json_path = json_path
|
||||
self.name = name
|
||||
if priority is not None:
|
||||
self.priority = priority
|
||||
self.type = type
|
||||
|
||||
@property
|
||||
def description(self):
|
||||
"""Gets the description of this V1CustomResourceColumnDefinition. # noqa: E501
|
||||
|
||||
description is a human readable description of this column. # noqa: E501
|
||||
|
||||
:return: The description of this V1CustomResourceColumnDefinition. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._description
|
||||
|
||||
@description.setter
|
||||
def description(self, description):
|
||||
"""Sets the description of this V1CustomResourceColumnDefinition.
|
||||
|
||||
description is a human readable description of this column. # noqa: E501
|
||||
|
||||
:param description: The description of this V1CustomResourceColumnDefinition. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._description = description
|
||||
|
||||
@property
|
||||
def format(self):
|
||||
"""Gets the format of this V1CustomResourceColumnDefinition. # noqa: E501
|
||||
|
||||
format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. # noqa: E501
|
||||
|
||||
:return: The format of this V1CustomResourceColumnDefinition. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._format
|
||||
|
||||
@format.setter
|
||||
def format(self, format):
|
||||
"""Sets the format of this V1CustomResourceColumnDefinition.
|
||||
|
||||
format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. # noqa: E501
|
||||
|
||||
:param format: The format of this V1CustomResourceColumnDefinition. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._format = format
|
||||
|
||||
@property
|
||||
def json_path(self):
|
||||
"""Gets the json_path of this V1CustomResourceColumnDefinition. # noqa: E501
|
||||
|
||||
jsonPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column. # noqa: E501
|
||||
|
||||
:return: The json_path of this V1CustomResourceColumnDefinition. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._json_path
|
||||
|
||||
@json_path.setter
|
||||
def json_path(self, json_path):
|
||||
"""Sets the json_path of this V1CustomResourceColumnDefinition.
|
||||
|
||||
jsonPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column. # noqa: E501
|
||||
|
||||
:param json_path: The json_path of this V1CustomResourceColumnDefinition. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and json_path is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `json_path`, must not be `None`") # noqa: E501
|
||||
|
||||
self._json_path = json_path
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""Gets the name of this V1CustomResourceColumnDefinition. # noqa: E501
|
||||
|
||||
name is a human readable name for the column. # noqa: E501
|
||||
|
||||
:return: The name of this V1CustomResourceColumnDefinition. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._name
|
||||
|
||||
@name.setter
|
||||
def name(self, name):
|
||||
"""Sets the name of this V1CustomResourceColumnDefinition.
|
||||
|
||||
name is a human readable name for the column. # noqa: E501
|
||||
|
||||
:param name: The name of this V1CustomResourceColumnDefinition. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
||||
|
||||
self._name = name
|
||||
|
||||
@property
|
||||
def priority(self):
|
||||
"""Gets the priority of this V1CustomResourceColumnDefinition. # noqa: E501
|
||||
|
||||
priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0. # noqa: E501
|
||||
|
||||
:return: The priority of this V1CustomResourceColumnDefinition. # noqa: E501
|
||||
:rtype: int
|
||||
"""
|
||||
return self._priority
|
||||
|
||||
@priority.setter
|
||||
def priority(self, priority):
|
||||
"""Sets the priority of this V1CustomResourceColumnDefinition.
|
||||
|
||||
priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0. # noqa: E501
|
||||
|
||||
:param priority: The priority of this V1CustomResourceColumnDefinition. # noqa: E501
|
||||
:type: int
|
||||
"""
|
||||
|
||||
self._priority = priority
|
||||
|
||||
@property
|
||||
def type(self):
|
||||
"""Gets the type of this V1CustomResourceColumnDefinition. # noqa: E501
|
||||
|
||||
type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. # noqa: E501
|
||||
|
||||
:return: The type of this V1CustomResourceColumnDefinition. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._type
|
||||
|
||||
@type.setter
|
||||
def type(self, type):
|
||||
"""Sets the type of this V1CustomResourceColumnDefinition.
|
||||
|
||||
type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. # noqa: E501
|
||||
|
||||
:param type: The type of this V1CustomResourceColumnDefinition. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501
|
||||
|
||||
self._type = type
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1CustomResourceColumnDefinition):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1CustomResourceColumnDefinition):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
149
kubernetes/client/models/v1_custom_resource_conversion.py
Normal file
149
kubernetes/client/models/v1_custom_resource_conversion.py
Normal file
|
@ -0,0 +1,149 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1CustomResourceConversion(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'strategy': 'str',
|
||||
'webhook': 'V1WebhookConversion'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'strategy': 'strategy',
|
||||
'webhook': 'webhook'
|
||||
}
|
||||
|
||||
def __init__(self, strategy=None, webhook=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1CustomResourceConversion - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._strategy = None
|
||||
self._webhook = None
|
||||
self.discriminator = None
|
||||
|
||||
self.strategy = strategy
|
||||
if webhook is not None:
|
||||
self.webhook = webhook
|
||||
|
||||
@property
|
||||
def strategy(self):
|
||||
"""Gets the strategy of this V1CustomResourceConversion. # noqa: E501
|
||||
|
||||
strategy specifies how custom resources are converted between versions. Allowed values are: - `\"None\"`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `\"Webhook\"`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set. # noqa: E501
|
||||
|
||||
:return: The strategy of this V1CustomResourceConversion. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._strategy
|
||||
|
||||
@strategy.setter
|
||||
def strategy(self, strategy):
|
||||
"""Sets the strategy of this V1CustomResourceConversion.
|
||||
|
||||
strategy specifies how custom resources are converted between versions. Allowed values are: - `\"None\"`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `\"Webhook\"`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set. # noqa: E501
|
||||
|
||||
:param strategy: The strategy of this V1CustomResourceConversion. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and strategy is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `strategy`, must not be `None`") # noqa: E501
|
||||
|
||||
self._strategy = strategy
|
||||
|
||||
@property
|
||||
def webhook(self):
|
||||
"""Gets the webhook of this V1CustomResourceConversion. # noqa: E501
|
||||
|
||||
|
||||
:return: The webhook of this V1CustomResourceConversion. # noqa: E501
|
||||
:rtype: V1WebhookConversion
|
||||
"""
|
||||
return self._webhook
|
||||
|
||||
@webhook.setter
|
||||
def webhook(self, webhook):
|
||||
"""Sets the webhook of this V1CustomResourceConversion.
|
||||
|
||||
|
||||
:param webhook: The webhook of this V1CustomResourceConversion. # noqa: E501
|
||||
:type: V1WebhookConversion
|
||||
"""
|
||||
|
||||
self._webhook = webhook
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1CustomResourceConversion):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1CustomResourceConversion):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
229
kubernetes/client/models/v1_custom_resource_definition.py
Normal file
229
kubernetes/client/models/v1_custom_resource_definition.py
Normal file
|
@ -0,0 +1,229 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1CustomResourceDefinition(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'api_version': 'str',
|
||||
'kind': 'str',
|
||||
'metadata': 'V1ObjectMeta',
|
||||
'spec': 'V1CustomResourceDefinitionSpec',
|
||||
'status': 'V1CustomResourceDefinitionStatus'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'api_version': 'apiVersion',
|
||||
'kind': 'kind',
|
||||
'metadata': 'metadata',
|
||||
'spec': 'spec',
|
||||
'status': 'status'
|
||||
}
|
||||
|
||||
def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1CustomResourceDefinition - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._api_version = None
|
||||
self._kind = None
|
||||
self._metadata = None
|
||||
self._spec = None
|
||||
self._status = None
|
||||
self.discriminator = None
|
||||
|
||||
if api_version is not None:
|
||||
self.api_version = api_version
|
||||
if kind is not None:
|
||||
self.kind = kind
|
||||
if metadata is not None:
|
||||
self.metadata = metadata
|
||||
self.spec = spec
|
||||
if status is not None:
|
||||
self.status = status
|
||||
|
||||
@property
|
||||
def api_version(self):
|
||||
"""Gets the api_version of this V1CustomResourceDefinition. # noqa: E501
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:return: The api_version of this V1CustomResourceDefinition. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._api_version
|
||||
|
||||
@api_version.setter
|
||||
def api_version(self, api_version):
|
||||
"""Sets the api_version of this V1CustomResourceDefinition.
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:param api_version: The api_version of this V1CustomResourceDefinition. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._api_version = api_version
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this V1CustomResourceDefinition. # noqa: E501
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:return: The kind of this V1CustomResourceDefinition. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets the kind of this V1CustomResourceDefinition.
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:param kind: The kind of this V1CustomResourceDefinition. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def metadata(self):
|
||||
"""Gets the metadata of this V1CustomResourceDefinition. # noqa: E501
|
||||
|
||||
|
||||
:return: The metadata of this V1CustomResourceDefinition. # noqa: E501
|
||||
:rtype: V1ObjectMeta
|
||||
"""
|
||||
return self._metadata
|
||||
|
||||
@metadata.setter
|
||||
def metadata(self, metadata):
|
||||
"""Sets the metadata of this V1CustomResourceDefinition.
|
||||
|
||||
|
||||
:param metadata: The metadata of this V1CustomResourceDefinition. # noqa: E501
|
||||
:type: V1ObjectMeta
|
||||
"""
|
||||
|
||||
self._metadata = metadata
|
||||
|
||||
@property
|
||||
def spec(self):
|
||||
"""Gets the spec of this V1CustomResourceDefinition. # noqa: E501
|
||||
|
||||
|
||||
:return: The spec of this V1CustomResourceDefinition. # noqa: E501
|
||||
:rtype: V1CustomResourceDefinitionSpec
|
||||
"""
|
||||
return self._spec
|
||||
|
||||
@spec.setter
|
||||
def spec(self, spec):
|
||||
"""Sets the spec of this V1CustomResourceDefinition.
|
||||
|
||||
|
||||
:param spec: The spec of this V1CustomResourceDefinition. # noqa: E501
|
||||
:type: V1CustomResourceDefinitionSpec
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501
|
||||
|
||||
self._spec = spec
|
||||
|
||||
@property
|
||||
def status(self):
|
||||
"""Gets the status of this V1CustomResourceDefinition. # noqa: E501
|
||||
|
||||
|
||||
:return: The status of this V1CustomResourceDefinition. # noqa: E501
|
||||
:rtype: V1CustomResourceDefinitionStatus
|
||||
"""
|
||||
return self._status
|
||||
|
||||
@status.setter
|
||||
def status(self, status):
|
||||
"""Sets the status of this V1CustomResourceDefinition.
|
||||
|
||||
|
||||
:param status: The status of this V1CustomResourceDefinition. # noqa: E501
|
||||
:type: V1CustomResourceDefinitionStatus
|
||||
"""
|
||||
|
||||
self._status = status
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1CustomResourceDefinition):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1CustomResourceDefinition):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
|
@ -0,0 +1,236 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1CustomResourceDefinitionCondition(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'last_transition_time': 'datetime',
|
||||
'message': 'str',
|
||||
'reason': 'str',
|
||||
'status': 'str',
|
||||
'type': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'last_transition_time': 'lastTransitionTime',
|
||||
'message': 'message',
|
||||
'reason': 'reason',
|
||||
'status': 'status',
|
||||
'type': 'type'
|
||||
}
|
||||
|
||||
def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1CustomResourceDefinitionCondition - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._last_transition_time = None
|
||||
self._message = None
|
||||
self._reason = None
|
||||
self._status = None
|
||||
self._type = None
|
||||
self.discriminator = None
|
||||
|
||||
if last_transition_time is not None:
|
||||
self.last_transition_time = last_transition_time
|
||||
if message is not None:
|
||||
self.message = message
|
||||
if reason is not None:
|
||||
self.reason = reason
|
||||
self.status = status
|
||||
self.type = type
|
||||
|
||||
@property
|
||||
def last_transition_time(self):
|
||||
"""Gets the last_transition_time of this V1CustomResourceDefinitionCondition. # noqa: E501
|
||||
|
||||
lastTransitionTime last time the condition transitioned from one status to another. # noqa: E501
|
||||
|
||||
:return: The last_transition_time of this V1CustomResourceDefinitionCondition. # noqa: E501
|
||||
:rtype: datetime
|
||||
"""
|
||||
return self._last_transition_time
|
||||
|
||||
@last_transition_time.setter
|
||||
def last_transition_time(self, last_transition_time):
|
||||
"""Sets the last_transition_time of this V1CustomResourceDefinitionCondition.
|
||||
|
||||
lastTransitionTime last time the condition transitioned from one status to another. # noqa: E501
|
||||
|
||||
:param last_transition_time: The last_transition_time of this V1CustomResourceDefinitionCondition. # noqa: E501
|
||||
:type: datetime
|
||||
"""
|
||||
|
||||
self._last_transition_time = last_transition_time
|
||||
|
||||
@property
|
||||
def message(self):
|
||||
"""Gets the message of this V1CustomResourceDefinitionCondition. # noqa: E501
|
||||
|
||||
message is a human-readable message indicating details about last transition. # noqa: E501
|
||||
|
||||
:return: The message of this V1CustomResourceDefinitionCondition. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._message
|
||||
|
||||
@message.setter
|
||||
def message(self, message):
|
||||
"""Sets the message of this V1CustomResourceDefinitionCondition.
|
||||
|
||||
message is a human-readable message indicating details about last transition. # noqa: E501
|
||||
|
||||
:param message: The message of this V1CustomResourceDefinitionCondition. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._message = message
|
||||
|
||||
@property
|
||||
def reason(self):
|
||||
"""Gets the reason of this V1CustomResourceDefinitionCondition. # noqa: E501
|
||||
|
||||
reason is a unique, one-word, CamelCase reason for the condition's last transition. # noqa: E501
|
||||
|
||||
:return: The reason of this V1CustomResourceDefinitionCondition. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._reason
|
||||
|
||||
@reason.setter
|
||||
def reason(self, reason):
|
||||
"""Sets the reason of this V1CustomResourceDefinitionCondition.
|
||||
|
||||
reason is a unique, one-word, CamelCase reason for the condition's last transition. # noqa: E501
|
||||
|
||||
:param reason: The reason of this V1CustomResourceDefinitionCondition. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._reason = reason
|
||||
|
||||
@property
|
||||
def status(self):
|
||||
"""Gets the status of this V1CustomResourceDefinitionCondition. # noqa: E501
|
||||
|
||||
status is the status of the condition. Can be True, False, Unknown. # noqa: E501
|
||||
|
||||
:return: The status of this V1CustomResourceDefinitionCondition. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._status
|
||||
|
||||
@status.setter
|
||||
def status(self, status):
|
||||
"""Sets the status of this V1CustomResourceDefinitionCondition.
|
||||
|
||||
status is the status of the condition. Can be True, False, Unknown. # noqa: E501
|
||||
|
||||
:param status: The status of this V1CustomResourceDefinitionCondition. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501
|
||||
|
||||
self._status = status
|
||||
|
||||
@property
|
||||
def type(self):
|
||||
"""Gets the type of this V1CustomResourceDefinitionCondition. # noqa: E501
|
||||
|
||||
type is the type of the condition. Types include Established, NamesAccepted and Terminating. # noqa: E501
|
||||
|
||||
:return: The type of this V1CustomResourceDefinitionCondition. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._type
|
||||
|
||||
@type.setter
|
||||
def type(self, type):
|
||||
"""Sets the type of this V1CustomResourceDefinitionCondition.
|
||||
|
||||
type is the type of the condition. Types include Established, NamesAccepted and Terminating. # noqa: E501
|
||||
|
||||
:param type: The type of this V1CustomResourceDefinitionCondition. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501
|
||||
|
||||
self._type = type
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1CustomResourceDefinitionCondition):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1CustomResourceDefinitionCondition):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
205
kubernetes/client/models/v1_custom_resource_definition_list.py
Normal file
205
kubernetes/client/models/v1_custom_resource_definition_list.py
Normal file
|
@ -0,0 +1,205 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1CustomResourceDefinitionList(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'api_version': 'str',
|
||||
'items': 'list[V1CustomResourceDefinition]',
|
||||
'kind': 'str',
|
||||
'metadata': 'V1ListMeta'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'api_version': 'apiVersion',
|
||||
'items': 'items',
|
||||
'kind': 'kind',
|
||||
'metadata': 'metadata'
|
||||
}
|
||||
|
||||
def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1CustomResourceDefinitionList - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._api_version = None
|
||||
self._items = None
|
||||
self._kind = None
|
||||
self._metadata = None
|
||||
self.discriminator = None
|
||||
|
||||
if api_version is not None:
|
||||
self.api_version = api_version
|
||||
self.items = items
|
||||
if kind is not None:
|
||||
self.kind = kind
|
||||
if metadata is not None:
|
||||
self.metadata = metadata
|
||||
|
||||
@property
|
||||
def api_version(self):
|
||||
"""Gets the api_version of this V1CustomResourceDefinitionList. # noqa: E501
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:return: The api_version of this V1CustomResourceDefinitionList. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._api_version
|
||||
|
||||
@api_version.setter
|
||||
def api_version(self, api_version):
|
||||
"""Sets the api_version of this V1CustomResourceDefinitionList.
|
||||
|
||||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
|
||||
|
||||
:param api_version: The api_version of this V1CustomResourceDefinitionList. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._api_version = api_version
|
||||
|
||||
@property
|
||||
def items(self):
|
||||
"""Gets the items of this V1CustomResourceDefinitionList. # noqa: E501
|
||||
|
||||
items list individual CustomResourceDefinition objects # noqa: E501
|
||||
|
||||
:return: The items of this V1CustomResourceDefinitionList. # noqa: E501
|
||||
:rtype: list[V1CustomResourceDefinition]
|
||||
"""
|
||||
return self._items
|
||||
|
||||
@items.setter
|
||||
def items(self, items):
|
||||
"""Sets the items of this V1CustomResourceDefinitionList.
|
||||
|
||||
items list individual CustomResourceDefinition objects # noqa: E501
|
||||
|
||||
:param items: The items of this V1CustomResourceDefinitionList. # noqa: E501
|
||||
:type: list[V1CustomResourceDefinition]
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501
|
||||
|
||||
self._items = items
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this V1CustomResourceDefinitionList. # noqa: E501
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:return: The kind of this V1CustomResourceDefinitionList. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets the kind of this V1CustomResourceDefinitionList.
|
||||
|
||||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
|
||||
|
||||
:param kind: The kind of this V1CustomResourceDefinitionList. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def metadata(self):
|
||||
"""Gets the metadata of this V1CustomResourceDefinitionList. # noqa: E501
|
||||
|
||||
|
||||
:return: The metadata of this V1CustomResourceDefinitionList. # noqa: E501
|
||||
:rtype: V1ListMeta
|
||||
"""
|
||||
return self._metadata
|
||||
|
||||
@metadata.setter
|
||||
def metadata(self, metadata):
|
||||
"""Sets the metadata of this V1CustomResourceDefinitionList.
|
||||
|
||||
|
||||
:param metadata: The metadata of this V1CustomResourceDefinitionList. # noqa: E501
|
||||
:type: V1ListMeta
|
||||
"""
|
||||
|
||||
self._metadata = metadata
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1CustomResourceDefinitionList):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1CustomResourceDefinitionList):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
264
kubernetes/client/models/v1_custom_resource_definition_names.py
Normal file
264
kubernetes/client/models/v1_custom_resource_definition_names.py
Normal file
|
@ -0,0 +1,264 @@
|
|||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Kubernetes
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: release-1.32
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import pprint
|
||||
import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
|
||||
|
||||
class V1CustomResourceDefinitionNames(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
openapi_types = {
|
||||
'categories': 'list[str]',
|
||||
'kind': 'str',
|
||||
'list_kind': 'str',
|
||||
'plural': 'str',
|
||||
'short_names': 'list[str]',
|
||||
'singular': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'categories': 'categories',
|
||||
'kind': 'kind',
|
||||
'list_kind': 'listKind',
|
||||
'plural': 'plural',
|
||||
'short_names': 'shortNames',
|
||||
'singular': 'singular'
|
||||
}
|
||||
|
||||
def __init__(self, categories=None, kind=None, list_kind=None, plural=None, short_names=None, singular=None, local_vars_configuration=None): # noqa: E501
|
||||
"""V1CustomResourceDefinitionNames - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._categories = None
|
||||
self._kind = None
|
||||
self._list_kind = None
|
||||
self._plural = None
|
||||
self._short_names = None
|
||||
self._singular = None
|
||||
self.discriminator = None
|
||||
|
||||
if categories is not None:
|
||||
self.categories = categories
|
||||
self.kind = kind
|
||||
if list_kind is not None:
|
||||
self.list_kind = list_kind
|
||||
self.plural = plural
|
||||
if short_names is not None:
|
||||
self.short_names = short_names
|
||||
if singular is not None:
|
||||
self.singular = singular
|
||||
|
||||
@property
|
||||
def categories(self):
|
||||
"""Gets the categories of this V1CustomResourceDefinitionNames. # noqa: E501
|
||||
|
||||
categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`. # noqa: E501
|
||||
|
||||
:return: The categories of this V1CustomResourceDefinitionNames. # noqa: E501
|
||||
:rtype: list[str]
|
||||
"""
|
||||
return self._categories
|
||||
|
||||
@categories.setter
|
||||
def categories(self, categories):
|
||||
"""Sets the categories of this V1CustomResourceDefinitionNames.
|
||||
|
||||
categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`. # noqa: E501
|
||||
|
||||
:param categories: The categories of this V1CustomResourceDefinitionNames. # noqa: E501
|
||||
:type: list[str]
|
||||
"""
|
||||
|
||||
self._categories = categories
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""Gets the kind of this V1CustomResourceDefinitionNames. # noqa: E501
|
||||
|
||||
kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls. # noqa: E501
|
||||
|
||||
:return: The kind of this V1CustomResourceDefinitionNames. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kind
|
||||
|
||||
@kind.setter
|
||||
def kind(self, kind):
|
||||
"""Sets the kind of this V1CustomResourceDefinitionNames.
|
||||
|
||||
kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls. # noqa: E501
|
||||
|
||||
:param kind: The kind of this V1CustomResourceDefinitionNames. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and kind is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501
|
||||
|
||||
self._kind = kind
|
||||
|
||||
@property
|
||||
def list_kind(self):
|
||||
"""Gets the list_kind of this V1CustomResourceDefinitionNames. # noqa: E501
|
||||
|
||||
listKind is the serialized kind of the list for this resource. Defaults to \"`kind`List\". # noqa: E501
|
||||
|
||||
:return: The list_kind of this V1CustomResourceDefinitionNames. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._list_kind
|
||||
|
||||
@list_kind.setter
|
||||
def list_kind(self, list_kind):
|
||||
"""Sets the list_kind of this V1CustomResourceDefinitionNames.
|
||||
|
||||
listKind is the serialized kind of the list for this resource. Defaults to \"`kind`List\". # noqa: E501
|
||||
|
||||
:param list_kind: The list_kind of this V1CustomResourceDefinitionNames. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._list_kind = list_kind
|
||||
|
||||
@property
|
||||
def plural(self):
|
||||
"""Gets the plural of this V1CustomResourceDefinitionNames. # noqa: E501
|
||||
|
||||
plural is the plural name of the resource to serve. The custom resources are served under `/apis/<group>/<version>/.../<plural>`. Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`). Must be all lowercase. # noqa: E501
|
||||
|
||||
:return: The plural of this V1CustomResourceDefinitionNames. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._plural
|
||||
|
||||
@plural.setter
|
||||
def plural(self, plural):
|
||||
"""Sets the plural of this V1CustomResourceDefinitionNames.
|
||||
|
||||
plural is the plural name of the resource to serve. The custom resources are served under `/apis/<group>/<version>/.../<plural>`. Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`). Must be all lowercase. # noqa: E501
|
||||
|
||||
:param plural: The plural of this V1CustomResourceDefinitionNames. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if self.local_vars_configuration.client_side_validation and plural is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `plural`, must not be `None`") # noqa: E501
|
||||
|
||||
self._plural = plural
|
||||
|
||||
@property
|
||||
def short_names(self):
|
||||
"""Gets the short_names of this V1CustomResourceDefinitionNames. # noqa: E501
|
||||
|
||||
shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get <shortname>`. It must be all lowercase. # noqa: E501
|
||||
|
||||
:return: The short_names of this V1CustomResourceDefinitionNames. # noqa: E501
|
||||
:rtype: list[str]
|
||||
"""
|
||||
return self._short_names
|
||||
|
||||
@short_names.setter
|
||||
def short_names(self, short_names):
|
||||
"""Sets the short_names of this V1CustomResourceDefinitionNames.
|
||||
|
||||
shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get <shortname>`. It must be all lowercase. # noqa: E501
|
||||
|
||||
:param short_names: The short_names of this V1CustomResourceDefinitionNames. # noqa: E501
|
||||
:type: list[str]
|
||||
"""
|
||||
|
||||
self._short_names = short_names
|
||||
|
||||
@property
|
||||
def singular(self):
|
||||
"""Gets the singular of this V1CustomResourceDefinitionNames. # noqa: E501
|
||||
|
||||
singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`. # noqa: E501
|
||||
|
||||
:return: The singular of this V1CustomResourceDefinitionNames. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._singular
|
||||
|
||||
@singular.setter
|
||||
def singular(self, singular):
|
||||
"""Sets the singular of this V1CustomResourceDefinitionNames.
|
||||
|
||||
singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`. # noqa: E501
|
||||
|
||||
:param singular: The singular of this V1CustomResourceDefinitionNames. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._singular = singular
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.openapi_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, V1CustomResourceDefinitionNames):
|
||||
return False
|
||||
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
if not isinstance(other, V1CustomResourceDefinitionNames):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
Some files were not shown because too many files have changed in this diff Show more
Reference in a new issue