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
717
kubernetes/client/__init__.py
Normal file
717
kubernetes/client/__init__.py
Normal file
|
@ -0,0 +1,717 @@
|
|||
# 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
|
||||
|
||||
__version__ = "32.0.0+snapshot"
|
||||
|
||||
# import apis into sdk package
|
||||
from kubernetes.client.api.well_known_api import WellKnownApi
|
||||
from kubernetes.client.api.admissionregistration_api import AdmissionregistrationApi
|
||||
from kubernetes.client.api.admissionregistration_v1_api import AdmissionregistrationV1Api
|
||||
from kubernetes.client.api.admissionregistration_v1alpha1_api import AdmissionregistrationV1alpha1Api
|
||||
from kubernetes.client.api.admissionregistration_v1beta1_api import AdmissionregistrationV1beta1Api
|
||||
from kubernetes.client.api.apiextensions_api import ApiextensionsApi
|
||||
from kubernetes.client.api.apiextensions_v1_api import ApiextensionsV1Api
|
||||
from kubernetes.client.api.apiregistration_api import ApiregistrationApi
|
||||
from kubernetes.client.api.apiregistration_v1_api import ApiregistrationV1Api
|
||||
from kubernetes.client.api.apis_api import ApisApi
|
||||
from kubernetes.client.api.apps_api import AppsApi
|
||||
from kubernetes.client.api.apps_v1_api import AppsV1Api
|
||||
from kubernetes.client.api.authentication_api import AuthenticationApi
|
||||
from kubernetes.client.api.authentication_v1_api import AuthenticationV1Api
|
||||
from kubernetes.client.api.authentication_v1beta1_api import AuthenticationV1beta1Api
|
||||
from kubernetes.client.api.authorization_api import AuthorizationApi
|
||||
from kubernetes.client.api.authorization_v1_api import AuthorizationV1Api
|
||||
from kubernetes.client.api.autoscaling_api import AutoscalingApi
|
||||
from kubernetes.client.api.autoscaling_v1_api import AutoscalingV1Api
|
||||
from kubernetes.client.api.autoscaling_v2_api import AutoscalingV2Api
|
||||
from kubernetes.client.api.batch_api import BatchApi
|
||||
from kubernetes.client.api.batch_v1_api import BatchV1Api
|
||||
from kubernetes.client.api.certificates_api import CertificatesApi
|
||||
from kubernetes.client.api.certificates_v1_api import CertificatesV1Api
|
||||
from kubernetes.client.api.certificates_v1alpha1_api import CertificatesV1alpha1Api
|
||||
from kubernetes.client.api.coordination_api import CoordinationApi
|
||||
from kubernetes.client.api.coordination_v1_api import CoordinationV1Api
|
||||
from kubernetes.client.api.coordination_v1alpha2_api import CoordinationV1alpha2Api
|
||||
from kubernetes.client.api.core_api import CoreApi
|
||||
from kubernetes.client.api.core_v1_api import CoreV1Api
|
||||
from kubernetes.client.api.custom_objects_api import CustomObjectsApi
|
||||
from kubernetes.client.api.discovery_api import DiscoveryApi
|
||||
from kubernetes.client.api.discovery_v1_api import DiscoveryV1Api
|
||||
from kubernetes.client.api.events_api import EventsApi
|
||||
from kubernetes.client.api.events_v1_api import EventsV1Api
|
||||
from kubernetes.client.api.flowcontrol_apiserver_api import FlowcontrolApiserverApi
|
||||
from kubernetes.client.api.flowcontrol_apiserver_v1_api import FlowcontrolApiserverV1Api
|
||||
from kubernetes.client.api.internal_apiserver_api import InternalApiserverApi
|
||||
from kubernetes.client.api.internal_apiserver_v1alpha1_api import InternalApiserverV1alpha1Api
|
||||
from kubernetes.client.api.logs_api import LogsApi
|
||||
from kubernetes.client.api.networking_api import NetworkingApi
|
||||
from kubernetes.client.api.networking_v1_api import NetworkingV1Api
|
||||
from kubernetes.client.api.networking_v1beta1_api import NetworkingV1beta1Api
|
||||
from kubernetes.client.api.node_api import NodeApi
|
||||
from kubernetes.client.api.node_v1_api import NodeV1Api
|
||||
from kubernetes.client.api.openid_api import OpenidApi
|
||||
from kubernetes.client.api.policy_api import PolicyApi
|
||||
from kubernetes.client.api.policy_v1_api import PolicyV1Api
|
||||
from kubernetes.client.api.rbac_authorization_api import RbacAuthorizationApi
|
||||
from kubernetes.client.api.rbac_authorization_v1_api import RbacAuthorizationV1Api
|
||||
from kubernetes.client.api.resource_api import ResourceApi
|
||||
from kubernetes.client.api.resource_v1alpha3_api import ResourceV1alpha3Api
|
||||
from kubernetes.client.api.resource_v1beta1_api import ResourceV1beta1Api
|
||||
from kubernetes.client.api.scheduling_api import SchedulingApi
|
||||
from kubernetes.client.api.scheduling_v1_api import SchedulingV1Api
|
||||
from kubernetes.client.api.storage_api import StorageApi
|
||||
from kubernetes.client.api.storage_v1_api import StorageV1Api
|
||||
from kubernetes.client.api.storage_v1alpha1_api import StorageV1alpha1Api
|
||||
from kubernetes.client.api.storage_v1beta1_api import StorageV1beta1Api
|
||||
from kubernetes.client.api.storagemigration_api import StoragemigrationApi
|
||||
from kubernetes.client.api.storagemigration_v1alpha1_api import StoragemigrationV1alpha1Api
|
||||
from kubernetes.client.api.version_api import VersionApi
|
||||
|
||||
# import ApiClient
|
||||
from kubernetes.client.api_client import ApiClient
|
||||
from kubernetes.client.configuration import Configuration
|
||||
from kubernetes.client.exceptions import OpenApiException
|
||||
from kubernetes.client.exceptions import ApiTypeError
|
||||
from kubernetes.client.exceptions import ApiValueError
|
||||
from kubernetes.client.exceptions import ApiKeyError
|
||||
from kubernetes.client.exceptions import ApiException
|
||||
# import models into sdk 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
|
||||
|
67
kubernetes/client/api/__init__.py
Normal file
67
kubernetes/client/api/__init__.py
Normal file
|
@ -0,0 +1,67 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
# flake8: noqa
|
||||
|
||||
# import apis into api package
|
||||
from kubernetes.client.api.well_known_api import WellKnownApi
|
||||
from kubernetes.client.api.admissionregistration_api import AdmissionregistrationApi
|
||||
from kubernetes.client.api.admissionregistration_v1_api import AdmissionregistrationV1Api
|
||||
from kubernetes.client.api.admissionregistration_v1alpha1_api import AdmissionregistrationV1alpha1Api
|
||||
from kubernetes.client.api.admissionregistration_v1beta1_api import AdmissionregistrationV1beta1Api
|
||||
from kubernetes.client.api.apiextensions_api import ApiextensionsApi
|
||||
from kubernetes.client.api.apiextensions_v1_api import ApiextensionsV1Api
|
||||
from kubernetes.client.api.apiregistration_api import ApiregistrationApi
|
||||
from kubernetes.client.api.apiregistration_v1_api import ApiregistrationV1Api
|
||||
from kubernetes.client.api.apis_api import ApisApi
|
||||
from kubernetes.client.api.apps_api import AppsApi
|
||||
from kubernetes.client.api.apps_v1_api import AppsV1Api
|
||||
from kubernetes.client.api.authentication_api import AuthenticationApi
|
||||
from kubernetes.client.api.authentication_v1_api import AuthenticationV1Api
|
||||
from kubernetes.client.api.authentication_v1beta1_api import AuthenticationV1beta1Api
|
||||
from kubernetes.client.api.authorization_api import AuthorizationApi
|
||||
from kubernetes.client.api.authorization_v1_api import AuthorizationV1Api
|
||||
from kubernetes.client.api.autoscaling_api import AutoscalingApi
|
||||
from kubernetes.client.api.autoscaling_v1_api import AutoscalingV1Api
|
||||
from kubernetes.client.api.autoscaling_v2_api import AutoscalingV2Api
|
||||
from kubernetes.client.api.batch_api import BatchApi
|
||||
from kubernetes.client.api.batch_v1_api import BatchV1Api
|
||||
from kubernetes.client.api.certificates_api import CertificatesApi
|
||||
from kubernetes.client.api.certificates_v1_api import CertificatesV1Api
|
||||
from kubernetes.client.api.certificates_v1alpha1_api import CertificatesV1alpha1Api
|
||||
from kubernetes.client.api.coordination_api import CoordinationApi
|
||||
from kubernetes.client.api.coordination_v1_api import CoordinationV1Api
|
||||
from kubernetes.client.api.coordination_v1alpha2_api import CoordinationV1alpha2Api
|
||||
from kubernetes.client.api.core_api import CoreApi
|
||||
from kubernetes.client.api.core_v1_api import CoreV1Api
|
||||
from kubernetes.client.api.custom_objects_api import CustomObjectsApi
|
||||
from kubernetes.client.api.discovery_api import DiscoveryApi
|
||||
from kubernetes.client.api.discovery_v1_api import DiscoveryV1Api
|
||||
from kubernetes.client.api.events_api import EventsApi
|
||||
from kubernetes.client.api.events_v1_api import EventsV1Api
|
||||
from kubernetes.client.api.flowcontrol_apiserver_api import FlowcontrolApiserverApi
|
||||
from kubernetes.client.api.flowcontrol_apiserver_v1_api import FlowcontrolApiserverV1Api
|
||||
from kubernetes.client.api.internal_apiserver_api import InternalApiserverApi
|
||||
from kubernetes.client.api.internal_apiserver_v1alpha1_api import InternalApiserverV1alpha1Api
|
||||
from kubernetes.client.api.logs_api import LogsApi
|
||||
from kubernetes.client.api.networking_api import NetworkingApi
|
||||
from kubernetes.client.api.networking_v1_api import NetworkingV1Api
|
||||
from kubernetes.client.api.networking_v1beta1_api import NetworkingV1beta1Api
|
||||
from kubernetes.client.api.node_api import NodeApi
|
||||
from kubernetes.client.api.node_v1_api import NodeV1Api
|
||||
from kubernetes.client.api.openid_api import OpenidApi
|
||||
from kubernetes.client.api.policy_api import PolicyApi
|
||||
from kubernetes.client.api.policy_v1_api import PolicyV1Api
|
||||
from kubernetes.client.api.rbac_authorization_api import RbacAuthorizationApi
|
||||
from kubernetes.client.api.rbac_authorization_v1_api import RbacAuthorizationV1Api
|
||||
from kubernetes.client.api.resource_api import ResourceApi
|
||||
from kubernetes.client.api.resource_v1alpha3_api import ResourceV1alpha3Api
|
||||
from kubernetes.client.api.resource_v1beta1_api import ResourceV1beta1Api
|
||||
from kubernetes.client.api.scheduling_api import SchedulingApi
|
||||
from kubernetes.client.api.scheduling_v1_api import SchedulingV1Api
|
||||
from kubernetes.client.api.storage_api import StorageApi
|
||||
from kubernetes.client.api.storage_v1_api import StorageV1Api
|
||||
from kubernetes.client.api.storage_v1alpha1_api import StorageV1alpha1Api
|
||||
from kubernetes.client.api.storage_v1beta1_api import StorageV1beta1Api
|
||||
from kubernetes.client.api.storagemigration_api import StoragemigrationApi
|
||||
from kubernetes.client.api.storagemigration_v1alpha1_api import StoragemigrationV1alpha1Api
|
||||
from kubernetes.client.api.version_api import VersionApi
|
142
kubernetes/client/api/admissionregistration_api.py
Normal file
142
kubernetes/client/api/admissionregistration_api.py
Normal file
|
@ -0,0 +1,142 @@
|
|||
# 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
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import re # noqa: F401
|
||||
|
||||
# python 2 and python 3 compatibility library
|
||||
import six
|
||||
|
||||
from kubernetes.client.api_client import ApiClient
|
||||
from kubernetes.client.exceptions import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ApiValueError
|
||||
)
|
||||
|
||||
|
||||
class AdmissionregistrationApi(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
def __init__(self, api_client=None):
|
||||
if api_client is None:
|
||||
api_client = ApiClient()
|
||||
self.api_client = api_client
|
||||
|
||||
def get_api_group(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: V1APIGroup
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.get_api_group_with_http_info(**kwargs) # noqa: E501
|
||||
|
||||
def get_api_group_with_http_info(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method get_api_group" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
|
||||
query_params = []
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/apis/admissionregistration.k8s.io/', 'GET',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='V1APIGroup', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
4704
kubernetes/client/api/admissionregistration_v1_api.py
Normal file
4704
kubernetes/client/api/admissionregistration_v1_api.py
Normal file
File diff suppressed because it is too large
Load diff
2216
kubernetes/client/api/admissionregistration_v1alpha1_api.py
Normal file
2216
kubernetes/client/api/admissionregistration_v1alpha1_api.py
Normal file
File diff suppressed because it is too large
Load diff
2630
kubernetes/client/api/admissionregistration_v1beta1_api.py
Normal file
2630
kubernetes/client/api/admissionregistration_v1beta1_api.py
Normal file
File diff suppressed because it is too large
Load diff
142
kubernetes/client/api/apiextensions_api.py
Normal file
142
kubernetes/client/api/apiextensions_api.py
Normal file
|
@ -0,0 +1,142 @@
|
|||
# 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
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import re # noqa: F401
|
||||
|
||||
# python 2 and python 3 compatibility library
|
||||
import six
|
||||
|
||||
from kubernetes.client.api_client import ApiClient
|
||||
from kubernetes.client.exceptions import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ApiValueError
|
||||
)
|
||||
|
||||
|
||||
class ApiextensionsApi(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
def __init__(self, api_client=None):
|
||||
if api_client is None:
|
||||
api_client = ApiClient()
|
||||
self.api_client = api_client
|
||||
|
||||
def get_api_group(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: V1APIGroup
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.get_api_group_with_http_info(**kwargs) # noqa: E501
|
||||
|
||||
def get_api_group_with_http_info(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method get_api_group" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
|
||||
query_params = []
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/apis/apiextensions.k8s.io/', 'GET',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='V1APIGroup', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
1593
kubernetes/client/api/apiextensions_v1_api.py
Normal file
1593
kubernetes/client/api/apiextensions_v1_api.py
Normal file
File diff suppressed because it is too large
Load diff
142
kubernetes/client/api/apiregistration_api.py
Normal file
142
kubernetes/client/api/apiregistration_api.py
Normal file
|
@ -0,0 +1,142 @@
|
|||
# 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
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import re # noqa: F401
|
||||
|
||||
# python 2 and python 3 compatibility library
|
||||
import six
|
||||
|
||||
from kubernetes.client.api_client import ApiClient
|
||||
from kubernetes.client.exceptions import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ApiValueError
|
||||
)
|
||||
|
||||
|
||||
class ApiregistrationApi(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
def __init__(self, api_client=None):
|
||||
if api_client is None:
|
||||
api_client = ApiClient()
|
||||
self.api_client = api_client
|
||||
|
||||
def get_api_group(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: V1APIGroup
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.get_api_group_with_http_info(**kwargs) # noqa: E501
|
||||
|
||||
def get_api_group_with_http_info(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method get_api_group" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
|
||||
query_params = []
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/apis/apiregistration.k8s.io/', 'GET',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='V1APIGroup', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
1593
kubernetes/client/api/apiregistration_v1_api.py
Normal file
1593
kubernetes/client/api/apiregistration_v1_api.py
Normal file
File diff suppressed because it is too large
Load diff
142
kubernetes/client/api/apis_api.py
Normal file
142
kubernetes/client/api/apis_api.py
Normal file
|
@ -0,0 +1,142 @@
|
|||
# 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
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import re # noqa: F401
|
||||
|
||||
# python 2 and python 3 compatibility library
|
||||
import six
|
||||
|
||||
from kubernetes.client.api_client import ApiClient
|
||||
from kubernetes.client.exceptions import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ApiValueError
|
||||
)
|
||||
|
||||
|
||||
class ApisApi(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
def __init__(self, api_client=None):
|
||||
if api_client is None:
|
||||
api_client = ApiClient()
|
||||
self.api_client = api_client
|
||||
|
||||
def get_api_versions(self, **kwargs): # noqa: E501
|
||||
"""get_api_versions # noqa: E501
|
||||
|
||||
get available API versions # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_versions(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: V1APIGroupList
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.get_api_versions_with_http_info(**kwargs) # noqa: E501
|
||||
|
||||
def get_api_versions_with_http_info(self, **kwargs): # noqa: E501
|
||||
"""get_api_versions # noqa: E501
|
||||
|
||||
get available API versions # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_versions_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: tuple(V1APIGroupList, status_code(int), headers(HTTPHeaderDict))
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method get_api_versions" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
|
||||
query_params = []
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/apis/', 'GET',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='V1APIGroupList', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
142
kubernetes/client/api/apps_api.py
Normal file
142
kubernetes/client/api/apps_api.py
Normal file
|
@ -0,0 +1,142 @@
|
|||
# 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
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import re # noqa: F401
|
||||
|
||||
# python 2 and python 3 compatibility library
|
||||
import six
|
||||
|
||||
from kubernetes.client.api_client import ApiClient
|
||||
from kubernetes.client.exceptions import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ApiValueError
|
||||
)
|
||||
|
||||
|
||||
class AppsApi(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
def __init__(self, api_client=None):
|
||||
if api_client is None:
|
||||
api_client = ApiClient()
|
||||
self.api_client = api_client
|
||||
|
||||
def get_api_group(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: V1APIGroup
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.get_api_group_with_http_info(**kwargs) # noqa: E501
|
||||
|
||||
def get_api_group_with_http_info(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method get_api_group" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
|
||||
query_params = []
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/apis/apps/', 'GET',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='V1APIGroup', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
9529
kubernetes/client/api/apps_v1_api.py
Normal file
9529
kubernetes/client/api/apps_v1_api.py
Normal file
File diff suppressed because it is too large
Load diff
142
kubernetes/client/api/authentication_api.py
Normal file
142
kubernetes/client/api/authentication_api.py
Normal file
|
@ -0,0 +1,142 @@
|
|||
# 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
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import re # noqa: F401
|
||||
|
||||
# python 2 and python 3 compatibility library
|
||||
import six
|
||||
|
||||
from kubernetes.client.api_client import ApiClient
|
||||
from kubernetes.client.exceptions import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ApiValueError
|
||||
)
|
||||
|
||||
|
||||
class AuthenticationApi(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
def __init__(self, api_client=None):
|
||||
if api_client is None:
|
||||
api_client = ApiClient()
|
||||
self.api_client = api_client
|
||||
|
||||
def get_api_group(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: V1APIGroup
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.get_api_group_with_http_info(**kwargs) # noqa: E501
|
||||
|
||||
def get_api_group_with_http_info(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method get_api_group" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
|
||||
query_params = []
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/apis/authentication.k8s.io/', 'GET',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='V1APIGroup', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
410
kubernetes/client/api/authentication_v1_api.py
Normal file
410
kubernetes/client/api/authentication_v1_api.py
Normal file
|
@ -0,0 +1,410 @@
|
|||
# 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
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import re # noqa: F401
|
||||
|
||||
# python 2 and python 3 compatibility library
|
||||
import six
|
||||
|
||||
from kubernetes.client.api_client import ApiClient
|
||||
from kubernetes.client.exceptions import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ApiValueError
|
||||
)
|
||||
|
||||
|
||||
class AuthenticationV1Api(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
def __init__(self, api_client=None):
|
||||
if api_client is None:
|
||||
api_client = ApiClient()
|
||||
self.api_client = api_client
|
||||
|
||||
def create_self_subject_review(self, body, **kwargs): # noqa: E501
|
||||
"""create_self_subject_review # noqa: E501
|
||||
|
||||
create a SelfSubjectReview # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.create_self_subject_review(body, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param V1SelfSubjectReview body: (required)
|
||||
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
|
||||
:param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
|
||||
:param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
|
||||
:param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: V1SelfSubjectReview
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.create_self_subject_review_with_http_info(body, **kwargs) # noqa: E501
|
||||
|
||||
def create_self_subject_review_with_http_info(self, body, **kwargs): # noqa: E501
|
||||
"""create_self_subject_review # noqa: E501
|
||||
|
||||
create a SelfSubjectReview # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.create_self_subject_review_with_http_info(body, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param V1SelfSubjectReview body: (required)
|
||||
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
|
||||
:param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
|
||||
:param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
|
||||
:param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: tuple(V1SelfSubjectReview, status_code(int), headers(HTTPHeaderDict))
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
'body',
|
||||
'dry_run',
|
||||
'field_manager',
|
||||
'field_validation',
|
||||
'pretty'
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method create_self_subject_review" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
# verify the required parameter 'body' is set
|
||||
if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
|
||||
local_var_params['body'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `body` when calling `create_self_subject_review`") # noqa: E501
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
|
||||
query_params = []
|
||||
if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
|
||||
query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
|
||||
if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
|
||||
query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
|
||||
if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
|
||||
query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
|
||||
if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
|
||||
query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
if 'body' in local_var_params:
|
||||
body_params = local_var_params['body']
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/apis/authentication.k8s.io/v1/selfsubjectreviews', 'POST',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='V1SelfSubjectReview', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
||||
|
||||
def create_token_review(self, body, **kwargs): # noqa: E501
|
||||
"""create_token_review # noqa: E501
|
||||
|
||||
create a TokenReview # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.create_token_review(body, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param V1TokenReview body: (required)
|
||||
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
|
||||
:param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
|
||||
:param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
|
||||
:param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: V1TokenReview
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.create_token_review_with_http_info(body, **kwargs) # noqa: E501
|
||||
|
||||
def create_token_review_with_http_info(self, body, **kwargs): # noqa: E501
|
||||
"""create_token_review # noqa: E501
|
||||
|
||||
create a TokenReview # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.create_token_review_with_http_info(body, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param V1TokenReview body: (required)
|
||||
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
|
||||
:param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
|
||||
:param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
|
||||
:param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: tuple(V1TokenReview, status_code(int), headers(HTTPHeaderDict))
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
'body',
|
||||
'dry_run',
|
||||
'field_manager',
|
||||
'field_validation',
|
||||
'pretty'
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method create_token_review" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
# verify the required parameter 'body' is set
|
||||
if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
|
||||
local_var_params['body'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `body` when calling `create_token_review`") # noqa: E501
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
|
||||
query_params = []
|
||||
if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
|
||||
query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
|
||||
if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
|
||||
query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
|
||||
if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
|
||||
query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
|
||||
if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
|
||||
query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
if 'body' in local_var_params:
|
||||
body_params = local_var_params['body']
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/apis/authentication.k8s.io/v1/tokenreviews', 'POST',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='V1TokenReview', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
||||
|
||||
def get_api_resources(self, **kwargs): # noqa: E501
|
||||
"""get_api_resources # noqa: E501
|
||||
|
||||
get available resources # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_resources(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: V1APIResourceList
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.get_api_resources_with_http_info(**kwargs) # noqa: E501
|
||||
|
||||
def get_api_resources_with_http_info(self, **kwargs): # noqa: E501
|
||||
"""get_api_resources # noqa: E501
|
||||
|
||||
get available resources # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_resources_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict))
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method get_api_resources" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
|
||||
query_params = []
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/apis/authentication.k8s.io/v1/', 'GET',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='V1APIResourceList', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
276
kubernetes/client/api/authentication_v1beta1_api.py
Normal file
276
kubernetes/client/api/authentication_v1beta1_api.py
Normal file
|
@ -0,0 +1,276 @@
|
|||
# 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
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import re # noqa: F401
|
||||
|
||||
# python 2 and python 3 compatibility library
|
||||
import six
|
||||
|
||||
from kubernetes.client.api_client import ApiClient
|
||||
from kubernetes.client.exceptions import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ApiValueError
|
||||
)
|
||||
|
||||
|
||||
class AuthenticationV1beta1Api(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
def __init__(self, api_client=None):
|
||||
if api_client is None:
|
||||
api_client = ApiClient()
|
||||
self.api_client = api_client
|
||||
|
||||
def create_self_subject_review(self, body, **kwargs): # noqa: E501
|
||||
"""create_self_subject_review # noqa: E501
|
||||
|
||||
create a SelfSubjectReview # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.create_self_subject_review(body, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param V1beta1SelfSubjectReview body: (required)
|
||||
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
|
||||
:param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
|
||||
:param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
|
||||
:param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: V1beta1SelfSubjectReview
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.create_self_subject_review_with_http_info(body, **kwargs) # noqa: E501
|
||||
|
||||
def create_self_subject_review_with_http_info(self, body, **kwargs): # noqa: E501
|
||||
"""create_self_subject_review # noqa: E501
|
||||
|
||||
create a SelfSubjectReview # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.create_self_subject_review_with_http_info(body, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param V1beta1SelfSubjectReview body: (required)
|
||||
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
|
||||
:param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
|
||||
:param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
|
||||
:param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: tuple(V1beta1SelfSubjectReview, status_code(int), headers(HTTPHeaderDict))
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
'body',
|
||||
'dry_run',
|
||||
'field_manager',
|
||||
'field_validation',
|
||||
'pretty'
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method create_self_subject_review" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
# verify the required parameter 'body' is set
|
||||
if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
|
||||
local_var_params['body'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `body` when calling `create_self_subject_review`") # noqa: E501
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
|
||||
query_params = []
|
||||
if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
|
||||
query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
|
||||
if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
|
||||
query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
|
||||
if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
|
||||
query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
|
||||
if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
|
||||
query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
if 'body' in local_var_params:
|
||||
body_params = local_var_params['body']
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/apis/authentication.k8s.io/v1beta1/selfsubjectreviews', 'POST',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='V1beta1SelfSubjectReview', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
||||
|
||||
def get_api_resources(self, **kwargs): # noqa: E501
|
||||
"""get_api_resources # noqa: E501
|
||||
|
||||
get available resources # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_resources(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: V1APIResourceList
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.get_api_resources_with_http_info(**kwargs) # noqa: E501
|
||||
|
||||
def get_api_resources_with_http_info(self, **kwargs): # noqa: E501
|
||||
"""get_api_resources # noqa: E501
|
||||
|
||||
get available resources # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_resources_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict))
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method get_api_resources" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
|
||||
query_params = []
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/apis/authentication.k8s.io/v1beta1/', 'GET',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='V1APIResourceList', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
142
kubernetes/client/api/authorization_api.py
Normal file
142
kubernetes/client/api/authorization_api.py
Normal file
|
@ -0,0 +1,142 @@
|
|||
# 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
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import re # noqa: F401
|
||||
|
||||
# python 2 and python 3 compatibility library
|
||||
import six
|
||||
|
||||
from kubernetes.client.api_client import ApiClient
|
||||
from kubernetes.client.exceptions import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ApiValueError
|
||||
)
|
||||
|
||||
|
||||
class AuthorizationApi(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
def __init__(self, api_client=None):
|
||||
if api_client is None:
|
||||
api_client = ApiClient()
|
||||
self.api_client = api_client
|
||||
|
||||
def get_api_group(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: V1APIGroup
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.get_api_group_with_http_info(**kwargs) # noqa: E501
|
||||
|
||||
def get_api_group_with_http_info(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method get_api_group" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
|
||||
query_params = []
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/apis/authorization.k8s.io/', 'GET',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='V1APIGroup', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
687
kubernetes/client/api/authorization_v1_api.py
Normal file
687
kubernetes/client/api/authorization_v1_api.py
Normal file
|
@ -0,0 +1,687 @@
|
|||
# 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
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import re # noqa: F401
|
||||
|
||||
# python 2 and python 3 compatibility library
|
||||
import six
|
||||
|
||||
from kubernetes.client.api_client import ApiClient
|
||||
from kubernetes.client.exceptions import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ApiValueError
|
||||
)
|
||||
|
||||
|
||||
class AuthorizationV1Api(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
def __init__(self, api_client=None):
|
||||
if api_client is None:
|
||||
api_client = ApiClient()
|
||||
self.api_client = api_client
|
||||
|
||||
def create_namespaced_local_subject_access_review(self, namespace, body, **kwargs): # noqa: E501
|
||||
"""create_namespaced_local_subject_access_review # noqa: E501
|
||||
|
||||
create a LocalSubjectAccessReview # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.create_namespaced_local_subject_access_review(namespace, body, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param str namespace: object name and auth scope, such as for teams and projects (required)
|
||||
:param V1LocalSubjectAccessReview body: (required)
|
||||
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
|
||||
:param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
|
||||
:param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
|
||||
:param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: V1LocalSubjectAccessReview
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.create_namespaced_local_subject_access_review_with_http_info(namespace, body, **kwargs) # noqa: E501
|
||||
|
||||
def create_namespaced_local_subject_access_review_with_http_info(self, namespace, body, **kwargs): # noqa: E501
|
||||
"""create_namespaced_local_subject_access_review # noqa: E501
|
||||
|
||||
create a LocalSubjectAccessReview # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.create_namespaced_local_subject_access_review_with_http_info(namespace, body, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param str namespace: object name and auth scope, such as for teams and projects (required)
|
||||
:param V1LocalSubjectAccessReview body: (required)
|
||||
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
|
||||
:param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
|
||||
:param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
|
||||
:param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: tuple(V1LocalSubjectAccessReview, status_code(int), headers(HTTPHeaderDict))
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
'namespace',
|
||||
'body',
|
||||
'dry_run',
|
||||
'field_manager',
|
||||
'field_validation',
|
||||
'pretty'
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method create_namespaced_local_subject_access_review" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
# verify the required parameter 'namespace' is set
|
||||
if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
|
||||
local_var_params['namespace'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_local_subject_access_review`") # noqa: E501
|
||||
# verify the required parameter 'body' is set
|
||||
if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
|
||||
local_var_params['body'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_local_subject_access_review`") # noqa: E501
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
if 'namespace' in local_var_params:
|
||||
path_params['namespace'] = local_var_params['namespace'] # noqa: E501
|
||||
|
||||
query_params = []
|
||||
if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
|
||||
query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
|
||||
if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
|
||||
query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
|
||||
if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
|
||||
query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
|
||||
if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
|
||||
query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
if 'body' in local_var_params:
|
||||
body_params = local_var_params['body']
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews', 'POST',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='V1LocalSubjectAccessReview', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
||||
|
||||
def create_self_subject_access_review(self, body, **kwargs): # noqa: E501
|
||||
"""create_self_subject_access_review # noqa: E501
|
||||
|
||||
create a SelfSubjectAccessReview # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.create_self_subject_access_review(body, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param V1SelfSubjectAccessReview body: (required)
|
||||
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
|
||||
:param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
|
||||
:param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
|
||||
:param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: V1SelfSubjectAccessReview
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.create_self_subject_access_review_with_http_info(body, **kwargs) # noqa: E501
|
||||
|
||||
def create_self_subject_access_review_with_http_info(self, body, **kwargs): # noqa: E501
|
||||
"""create_self_subject_access_review # noqa: E501
|
||||
|
||||
create a SelfSubjectAccessReview # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.create_self_subject_access_review_with_http_info(body, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param V1SelfSubjectAccessReview body: (required)
|
||||
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
|
||||
:param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
|
||||
:param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
|
||||
:param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: tuple(V1SelfSubjectAccessReview, status_code(int), headers(HTTPHeaderDict))
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
'body',
|
||||
'dry_run',
|
||||
'field_manager',
|
||||
'field_validation',
|
||||
'pretty'
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method create_self_subject_access_review" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
# verify the required parameter 'body' is set
|
||||
if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
|
||||
local_var_params['body'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `body` when calling `create_self_subject_access_review`") # noqa: E501
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
|
||||
query_params = []
|
||||
if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
|
||||
query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
|
||||
if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
|
||||
query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
|
||||
if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
|
||||
query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
|
||||
if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
|
||||
query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
if 'body' in local_var_params:
|
||||
body_params = local_var_params['body']
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/apis/authorization.k8s.io/v1/selfsubjectaccessreviews', 'POST',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='V1SelfSubjectAccessReview', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
||||
|
||||
def create_self_subject_rules_review(self, body, **kwargs): # noqa: E501
|
||||
"""create_self_subject_rules_review # noqa: E501
|
||||
|
||||
create a SelfSubjectRulesReview # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.create_self_subject_rules_review(body, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param V1SelfSubjectRulesReview body: (required)
|
||||
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
|
||||
:param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
|
||||
:param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
|
||||
:param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: V1SelfSubjectRulesReview
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.create_self_subject_rules_review_with_http_info(body, **kwargs) # noqa: E501
|
||||
|
||||
def create_self_subject_rules_review_with_http_info(self, body, **kwargs): # noqa: E501
|
||||
"""create_self_subject_rules_review # noqa: E501
|
||||
|
||||
create a SelfSubjectRulesReview # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.create_self_subject_rules_review_with_http_info(body, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param V1SelfSubjectRulesReview body: (required)
|
||||
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
|
||||
:param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
|
||||
:param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
|
||||
:param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: tuple(V1SelfSubjectRulesReview, status_code(int), headers(HTTPHeaderDict))
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
'body',
|
||||
'dry_run',
|
||||
'field_manager',
|
||||
'field_validation',
|
||||
'pretty'
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method create_self_subject_rules_review" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
# verify the required parameter 'body' is set
|
||||
if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
|
||||
local_var_params['body'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `body` when calling `create_self_subject_rules_review`") # noqa: E501
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
|
||||
query_params = []
|
||||
if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
|
||||
query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
|
||||
if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
|
||||
query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
|
||||
if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
|
||||
query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
|
||||
if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
|
||||
query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
if 'body' in local_var_params:
|
||||
body_params = local_var_params['body']
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/apis/authorization.k8s.io/v1/selfsubjectrulesreviews', 'POST',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='V1SelfSubjectRulesReview', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
||||
|
||||
def create_subject_access_review(self, body, **kwargs): # noqa: E501
|
||||
"""create_subject_access_review # noqa: E501
|
||||
|
||||
create a SubjectAccessReview # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.create_subject_access_review(body, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param V1SubjectAccessReview body: (required)
|
||||
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
|
||||
:param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
|
||||
:param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
|
||||
:param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: V1SubjectAccessReview
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.create_subject_access_review_with_http_info(body, **kwargs) # noqa: E501
|
||||
|
||||
def create_subject_access_review_with_http_info(self, body, **kwargs): # noqa: E501
|
||||
"""create_subject_access_review # noqa: E501
|
||||
|
||||
create a SubjectAccessReview # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.create_subject_access_review_with_http_info(body, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param V1SubjectAccessReview body: (required)
|
||||
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
|
||||
:param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
|
||||
:param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
|
||||
:param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: tuple(V1SubjectAccessReview, status_code(int), headers(HTTPHeaderDict))
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
'body',
|
||||
'dry_run',
|
||||
'field_manager',
|
||||
'field_validation',
|
||||
'pretty'
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method create_subject_access_review" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
# verify the required parameter 'body' is set
|
||||
if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
|
||||
local_var_params['body'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `body` when calling `create_subject_access_review`") # noqa: E501
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
|
||||
query_params = []
|
||||
if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
|
||||
query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
|
||||
if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
|
||||
query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
|
||||
if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
|
||||
query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
|
||||
if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
|
||||
query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
if 'body' in local_var_params:
|
||||
body_params = local_var_params['body']
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/apis/authorization.k8s.io/v1/subjectaccessreviews', 'POST',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='V1SubjectAccessReview', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
||||
|
||||
def get_api_resources(self, **kwargs): # noqa: E501
|
||||
"""get_api_resources # noqa: E501
|
||||
|
||||
get available resources # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_resources(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: V1APIResourceList
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.get_api_resources_with_http_info(**kwargs) # noqa: E501
|
||||
|
||||
def get_api_resources_with_http_info(self, **kwargs): # noqa: E501
|
||||
"""get_api_resources # noqa: E501
|
||||
|
||||
get available resources # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_resources_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict))
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method get_api_resources" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
|
||||
query_params = []
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/apis/authorization.k8s.io/v1/', 'GET',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='V1APIResourceList', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
142
kubernetes/client/api/autoscaling_api.py
Normal file
142
kubernetes/client/api/autoscaling_api.py
Normal file
|
@ -0,0 +1,142 @@
|
|||
# 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
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import re # noqa: F401
|
||||
|
||||
# python 2 and python 3 compatibility library
|
||||
import six
|
||||
|
||||
from kubernetes.client.api_client import ApiClient
|
||||
from kubernetes.client.exceptions import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ApiValueError
|
||||
)
|
||||
|
||||
|
||||
class AutoscalingApi(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
def __init__(self, api_client=None):
|
||||
if api_client is None:
|
||||
api_client = ApiClient()
|
||||
self.api_client = api_client
|
||||
|
||||
def get_api_group(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: V1APIGroup
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.get_api_group_with_http_info(**kwargs) # noqa: E501
|
||||
|
||||
def get_api_group_with_http_info(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method get_api_group" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
|
||||
query_params = []
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/apis/autoscaling/', 'GET',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='V1APIGroup', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
1843
kubernetes/client/api/autoscaling_v1_api.py
Normal file
1843
kubernetes/client/api/autoscaling_v1_api.py
Normal file
File diff suppressed because it is too large
Load diff
1843
kubernetes/client/api/autoscaling_v2_api.py
Normal file
1843
kubernetes/client/api/autoscaling_v2_api.py
Normal file
File diff suppressed because it is too large
Load diff
142
kubernetes/client/api/batch_api.py
Normal file
142
kubernetes/client/api/batch_api.py
Normal file
|
@ -0,0 +1,142 @@
|
|||
# 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
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import re # noqa: F401
|
||||
|
||||
# python 2 and python 3 compatibility library
|
||||
import six
|
||||
|
||||
from kubernetes.client.api_client import ApiClient
|
||||
from kubernetes.client.exceptions import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ApiValueError
|
||||
)
|
||||
|
||||
|
||||
class BatchApi(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
def __init__(self, api_client=None):
|
||||
if api_client is None:
|
||||
api_client = ApiClient()
|
||||
self.api_client = api_client
|
||||
|
||||
def get_api_group(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: V1APIGroup
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.get_api_group_with_http_info(**kwargs) # noqa: E501
|
||||
|
||||
def get_api_group_with_http_info(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method get_api_group" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
|
||||
query_params = []
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/apis/batch/', 'GET',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='V1APIGroup', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
3544
kubernetes/client/api/batch_v1_api.py
Normal file
3544
kubernetes/client/api/batch_v1_api.py
Normal file
File diff suppressed because it is too large
Load diff
142
kubernetes/client/api/certificates_api.py
Normal file
142
kubernetes/client/api/certificates_api.py
Normal file
|
@ -0,0 +1,142 @@
|
|||
# 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
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import re # noqa: F401
|
||||
|
||||
# python 2 and python 3 compatibility library
|
||||
import six
|
||||
|
||||
from kubernetes.client.api_client import ApiClient
|
||||
from kubernetes.client.exceptions import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ApiValueError
|
||||
)
|
||||
|
||||
|
||||
class CertificatesApi(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
def __init__(self, api_client=None):
|
||||
if api_client is None:
|
||||
api_client = ApiClient()
|
||||
self.api_client = api_client
|
||||
|
||||
def get_api_group(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: V1APIGroup
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.get_api_group_with_http_info(**kwargs) # noqa: E501
|
||||
|
||||
def get_api_group_with_http_info(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method get_api_group" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
|
||||
query_params = []
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/apis/certificates.k8s.io/', 'GET',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='V1APIGroup', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
2007
kubernetes/client/api/certificates_v1_api.py
Normal file
2007
kubernetes/client/api/certificates_v1_api.py
Normal file
File diff suppressed because it is too large
Load diff
1179
kubernetes/client/api/certificates_v1alpha1_api.py
Normal file
1179
kubernetes/client/api/certificates_v1alpha1_api.py
Normal file
File diff suppressed because it is too large
Load diff
142
kubernetes/client/api/coordination_api.py
Normal file
142
kubernetes/client/api/coordination_api.py
Normal file
|
@ -0,0 +1,142 @@
|
|||
# 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
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import re # noqa: F401
|
||||
|
||||
# python 2 and python 3 compatibility library
|
||||
import six
|
||||
|
||||
from kubernetes.client.api_client import ApiClient
|
||||
from kubernetes.client.exceptions import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ApiValueError
|
||||
)
|
||||
|
||||
|
||||
class CoordinationApi(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
def __init__(self, api_client=None):
|
||||
if api_client is None:
|
||||
api_client = ApiClient()
|
||||
self.api_client = api_client
|
||||
|
||||
def get_api_group(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: V1APIGroup
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.get_api_group_with_http_info(**kwargs) # noqa: E501
|
||||
|
||||
def get_api_group_with_http_info(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method get_api_group" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
|
||||
query_params = []
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/apis/coordination.k8s.io/', 'GET',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='V1APIGroup', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
1402
kubernetes/client/api/coordination_v1_api.py
Normal file
1402
kubernetes/client/api/coordination_v1_api.py
Normal file
File diff suppressed because it is too large
Load diff
1402
kubernetes/client/api/coordination_v1alpha2_api.py
Normal file
1402
kubernetes/client/api/coordination_v1alpha2_api.py
Normal file
File diff suppressed because it is too large
Load diff
142
kubernetes/client/api/core_api.py
Normal file
142
kubernetes/client/api/core_api.py
Normal file
|
@ -0,0 +1,142 @@
|
|||
# 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
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import re # noqa: F401
|
||||
|
||||
# python 2 and python 3 compatibility library
|
||||
import six
|
||||
|
||||
from kubernetes.client.api_client import ApiClient
|
||||
from kubernetes.client.exceptions import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ApiValueError
|
||||
)
|
||||
|
||||
|
||||
class CoreApi(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
def __init__(self, api_client=None):
|
||||
if api_client is None:
|
||||
api_client = ApiClient()
|
||||
self.api_client = api_client
|
||||
|
||||
def get_api_versions(self, **kwargs): # noqa: E501
|
||||
"""get_api_versions # noqa: E501
|
||||
|
||||
get available API versions # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_versions(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: V1APIVersions
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.get_api_versions_with_http_info(**kwargs) # noqa: E501
|
||||
|
||||
def get_api_versions_with_http_info(self, **kwargs): # noqa: E501
|
||||
"""get_api_versions # noqa: E501
|
||||
|
||||
get available API versions # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_versions_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: tuple(V1APIVersions, status_code(int), headers(HTTPHeaderDict))
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method get_api_versions" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
|
||||
query_params = []
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/api/', 'GET',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='V1APIVersions', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
30454
kubernetes/client/api/core_v1_api.py
Normal file
30454
kubernetes/client/api/core_v1_api.py
Normal file
File diff suppressed because it is too large
Load diff
4696
kubernetes/client/api/custom_objects_api.py
Normal file
4696
kubernetes/client/api/custom_objects_api.py
Normal file
File diff suppressed because it is too large
Load diff
142
kubernetes/client/api/discovery_api.py
Normal file
142
kubernetes/client/api/discovery_api.py
Normal file
|
@ -0,0 +1,142 @@
|
|||
# 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
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import re # noqa: F401
|
||||
|
||||
# python 2 and python 3 compatibility library
|
||||
import six
|
||||
|
||||
from kubernetes.client.api_client import ApiClient
|
||||
from kubernetes.client.exceptions import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ApiValueError
|
||||
)
|
||||
|
||||
|
||||
class DiscoveryApi(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
def __init__(self, api_client=None):
|
||||
if api_client is None:
|
||||
api_client = ApiClient()
|
||||
self.api_client = api_client
|
||||
|
||||
def get_api_group(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: V1APIGroup
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.get_api_group_with_http_info(**kwargs) # noqa: E501
|
||||
|
||||
def get_api_group_with_http_info(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method get_api_group" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
|
||||
query_params = []
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/apis/discovery.k8s.io/', 'GET',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='V1APIGroup', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
1402
kubernetes/client/api/discovery_v1_api.py
Normal file
1402
kubernetes/client/api/discovery_v1_api.py
Normal file
File diff suppressed because it is too large
Load diff
142
kubernetes/client/api/events_api.py
Normal file
142
kubernetes/client/api/events_api.py
Normal file
|
@ -0,0 +1,142 @@
|
|||
# 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
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import re # noqa: F401
|
||||
|
||||
# python 2 and python 3 compatibility library
|
||||
import six
|
||||
|
||||
from kubernetes.client.api_client import ApiClient
|
||||
from kubernetes.client.exceptions import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ApiValueError
|
||||
)
|
||||
|
||||
|
||||
class EventsApi(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
def __init__(self, api_client=None):
|
||||
if api_client is None:
|
||||
api_client = ApiClient()
|
||||
self.api_client = api_client
|
||||
|
||||
def get_api_group(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: V1APIGroup
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.get_api_group_with_http_info(**kwargs) # noqa: E501
|
||||
|
||||
def get_api_group_with_http_info(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method get_api_group" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
|
||||
query_params = []
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/apis/events.k8s.io/', 'GET',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='V1APIGroup', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
1402
kubernetes/client/api/events_v1_api.py
Normal file
1402
kubernetes/client/api/events_v1_api.py
Normal file
File diff suppressed because it is too large
Load diff
142
kubernetes/client/api/flowcontrol_apiserver_api.py
Normal file
142
kubernetes/client/api/flowcontrol_apiserver_api.py
Normal file
|
@ -0,0 +1,142 @@
|
|||
# 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
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import re # noqa: F401
|
||||
|
||||
# python 2 and python 3 compatibility library
|
||||
import six
|
||||
|
||||
from kubernetes.client.api_client import ApiClient
|
||||
from kubernetes.client.exceptions import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ApiValueError
|
||||
)
|
||||
|
||||
|
||||
class FlowcontrolApiserverApi(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
def __init__(self, api_client=None):
|
||||
if api_client is None:
|
||||
api_client = ApiClient()
|
||||
self.api_client = api_client
|
||||
|
||||
def get_api_group(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: V1APIGroup
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.get_api_group_with_http_info(**kwargs) # noqa: E501
|
||||
|
||||
def get_api_group_with_http_info(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method get_api_group" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
|
||||
query_params = []
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/apis/flowcontrol.apiserver.k8s.io/', 'GET',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='V1APIGroup', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
3044
kubernetes/client/api/flowcontrol_apiserver_v1_api.py
Normal file
3044
kubernetes/client/api/flowcontrol_apiserver_v1_api.py
Normal file
File diff suppressed because it is too large
Load diff
142
kubernetes/client/api/internal_apiserver_api.py
Normal file
142
kubernetes/client/api/internal_apiserver_api.py
Normal file
|
@ -0,0 +1,142 @@
|
|||
# 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
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import re # noqa: F401
|
||||
|
||||
# python 2 and python 3 compatibility library
|
||||
import six
|
||||
|
||||
from kubernetes.client.api_client import ApiClient
|
||||
from kubernetes.client.exceptions import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ApiValueError
|
||||
)
|
||||
|
||||
|
||||
class InternalApiserverApi(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
def __init__(self, api_client=None):
|
||||
if api_client is None:
|
||||
api_client = ApiClient()
|
||||
self.api_client = api_client
|
||||
|
||||
def get_api_group(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: V1APIGroup
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.get_api_group_with_http_info(**kwargs) # noqa: E501
|
||||
|
||||
def get_api_group_with_http_info(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method get_api_group" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
|
||||
query_params = []
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/apis/internal.apiserver.k8s.io/', 'GET',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='V1APIGroup', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
1593
kubernetes/client/api/internal_apiserver_v1alpha1_api.py
Normal file
1593
kubernetes/client/api/internal_apiserver_v1alpha1_api.py
Normal file
File diff suppressed because it is too large
Load diff
244
kubernetes/client/api/logs_api.py
Normal file
244
kubernetes/client/api/logs_api.py
Normal file
|
@ -0,0 +1,244 @@
|
|||
# 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
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import re # noqa: F401
|
||||
|
||||
# python 2 and python 3 compatibility library
|
||||
import six
|
||||
|
||||
from kubernetes.client.api_client import ApiClient
|
||||
from kubernetes.client.exceptions import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ApiValueError
|
||||
)
|
||||
|
||||
|
||||
class LogsApi(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
def __init__(self, api_client=None):
|
||||
if api_client is None:
|
||||
api_client = ApiClient()
|
||||
self.api_client = api_client
|
||||
|
||||
def log_file_handler(self, logpath, **kwargs): # noqa: E501
|
||||
"""log_file_handler # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.log_file_handler(logpath, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param str logpath: path to the log (required)
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: None
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.log_file_handler_with_http_info(logpath, **kwargs) # noqa: E501
|
||||
|
||||
def log_file_handler_with_http_info(self, logpath, **kwargs): # noqa: E501
|
||||
"""log_file_handler # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.log_file_handler_with_http_info(logpath, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param str logpath: path to the log (required)
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: None
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
'logpath'
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method log_file_handler" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
# verify the required parameter 'logpath' is set
|
||||
if self.api_client.client_side_validation and ('logpath' not in local_var_params or # noqa: E501
|
||||
local_var_params['logpath'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `logpath` when calling `log_file_handler`") # noqa: E501
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
if 'logpath' in local_var_params:
|
||||
path_params['logpath'] = local_var_params['logpath'] # noqa: E501
|
||||
|
||||
query_params = []
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/logs/{logpath}', 'GET',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
||||
|
||||
def log_file_list_handler(self, **kwargs): # noqa: E501
|
||||
"""log_file_list_handler # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.log_file_list_handler(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: None
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.log_file_list_handler_with_http_info(**kwargs) # noqa: E501
|
||||
|
||||
def log_file_list_handler_with_http_info(self, **kwargs): # noqa: E501
|
||||
"""log_file_list_handler # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.log_file_list_handler_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: None
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method log_file_list_handler" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
|
||||
query_params = []
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/logs/', 'GET',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
142
kubernetes/client/api/networking_api.py
Normal file
142
kubernetes/client/api/networking_api.py
Normal file
|
@ -0,0 +1,142 @@
|
|||
# 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
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import re # noqa: F401
|
||||
|
||||
# python 2 and python 3 compatibility library
|
||||
import six
|
||||
|
||||
from kubernetes.client.api_client import ApiClient
|
||||
from kubernetes.client.exceptions import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ApiValueError
|
||||
)
|
||||
|
||||
|
||||
class NetworkingApi(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
def __init__(self, api_client=None):
|
||||
if api_client is None:
|
||||
api_client = ApiClient()
|
||||
self.api_client = api_client
|
||||
|
||||
def get_api_group(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: V1APIGroup
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.get_api_group_with_http_info(**kwargs) # noqa: E501
|
||||
|
||||
def get_api_group_with_http_info(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method get_api_group" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
|
||||
query_params = []
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/apis/networking.k8s.io/', 'GET',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='V1APIGroup', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
4140
kubernetes/client/api/networking_v1_api.py
Normal file
4140
kubernetes/client/api/networking_v1_api.py
Normal file
File diff suppressed because it is too large
Load diff
2630
kubernetes/client/api/networking_v1beta1_api.py
Normal file
2630
kubernetes/client/api/networking_v1beta1_api.py
Normal file
File diff suppressed because it is too large
Load diff
142
kubernetes/client/api/node_api.py
Normal file
142
kubernetes/client/api/node_api.py
Normal file
|
@ -0,0 +1,142 @@
|
|||
# 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
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import re # noqa: F401
|
||||
|
||||
# python 2 and python 3 compatibility library
|
||||
import six
|
||||
|
||||
from kubernetes.client.api_client import ApiClient
|
||||
from kubernetes.client.exceptions import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ApiValueError
|
||||
)
|
||||
|
||||
|
||||
class NodeApi(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
def __init__(self, api_client=None):
|
||||
if api_client is None:
|
||||
api_client = ApiClient()
|
||||
self.api_client = api_client
|
||||
|
||||
def get_api_group(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: V1APIGroup
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.get_api_group_with_http_info(**kwargs) # noqa: E501
|
||||
|
||||
def get_api_group_with_http_info(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method get_api_group" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
|
||||
query_params = []
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/apis/node.k8s.io/', 'GET',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='V1APIGroup', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
1179
kubernetes/client/api/node_v1_api.py
Normal file
1179
kubernetes/client/api/node_v1_api.py
Normal file
File diff suppressed because it is too large
Load diff
142
kubernetes/client/api/openid_api.py
Normal file
142
kubernetes/client/api/openid_api.py
Normal file
|
@ -0,0 +1,142 @@
|
|||
# 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
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import re # noqa: F401
|
||||
|
||||
# python 2 and python 3 compatibility library
|
||||
import six
|
||||
|
||||
from kubernetes.client.api_client import ApiClient
|
||||
from kubernetes.client.exceptions import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ApiValueError
|
||||
)
|
||||
|
||||
|
||||
class OpenidApi(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
def __init__(self, api_client=None):
|
||||
if api_client is None:
|
||||
api_client = ApiClient()
|
||||
self.api_client = api_client
|
||||
|
||||
def get_service_account_issuer_open_id_keyset(self, **kwargs): # noqa: E501
|
||||
"""get_service_account_issuer_open_id_keyset # noqa: E501
|
||||
|
||||
get service account issuer OpenID JSON Web Key Set (contains public token verification keys) # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_service_account_issuer_open_id_keyset(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: str
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.get_service_account_issuer_open_id_keyset_with_http_info(**kwargs) # noqa: E501
|
||||
|
||||
def get_service_account_issuer_open_id_keyset_with_http_info(self, **kwargs): # noqa: E501
|
||||
"""get_service_account_issuer_open_id_keyset # noqa: E501
|
||||
|
||||
get service account issuer OpenID JSON Web Key Set (contains public token verification keys) # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_service_account_issuer_open_id_keyset_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: tuple(str, status_code(int), headers(HTTPHeaderDict))
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method get_service_account_issuer_open_id_keyset" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
|
||||
query_params = []
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/jwk-set+json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/openid/v1/jwks', 'GET',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='str', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
142
kubernetes/client/api/policy_api.py
Normal file
142
kubernetes/client/api/policy_api.py
Normal file
|
@ -0,0 +1,142 @@
|
|||
# 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
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import re # noqa: F401
|
||||
|
||||
# python 2 and python 3 compatibility library
|
||||
import six
|
||||
|
||||
from kubernetes.client.api_client import ApiClient
|
||||
from kubernetes.client.exceptions import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ApiValueError
|
||||
)
|
||||
|
||||
|
||||
class PolicyApi(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
def __init__(self, api_client=None):
|
||||
if api_client is None:
|
||||
api_client = ApiClient()
|
||||
self.api_client = api_client
|
||||
|
||||
def get_api_group(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: V1APIGroup
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.get_api_group_with_http_info(**kwargs) # noqa: E501
|
||||
|
||||
def get_api_group_with_http_info(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method get_api_group" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
|
||||
query_params = []
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/apis/policy/', 'GET',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='V1APIGroup', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
1843
kubernetes/client/api/policy_v1_api.py
Normal file
1843
kubernetes/client/api/policy_v1_api.py
Normal file
File diff suppressed because it is too large
Load diff
142
kubernetes/client/api/rbac_authorization_api.py
Normal file
142
kubernetes/client/api/rbac_authorization_api.py
Normal file
|
@ -0,0 +1,142 @@
|
|||
# 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
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import re # noqa: F401
|
||||
|
||||
# python 2 and python 3 compatibility library
|
||||
import six
|
||||
|
||||
from kubernetes.client.api_client import ApiClient
|
||||
from kubernetes.client.exceptions import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ApiValueError
|
||||
)
|
||||
|
||||
|
||||
class RbacAuthorizationApi(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
def __init__(self, api_client=None):
|
||||
if api_client is None:
|
||||
api_client = ApiClient()
|
||||
self.api_client = api_client
|
||||
|
||||
def get_api_group(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: V1APIGroup
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.get_api_group_with_http_info(**kwargs) # noqa: E501
|
||||
|
||||
def get_api_group_with_http_info(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method get_api_group" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
|
||||
query_params = []
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/apis/rbac.authorization.k8s.io/', 'GET',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='V1APIGroup', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
4736
kubernetes/client/api/rbac_authorization_v1_api.py
Normal file
4736
kubernetes/client/api/rbac_authorization_v1_api.py
Normal file
File diff suppressed because it is too large
Load diff
142
kubernetes/client/api/resource_api.py
Normal file
142
kubernetes/client/api/resource_api.py
Normal file
|
@ -0,0 +1,142 @@
|
|||
# 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
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import re # noqa: F401
|
||||
|
||||
# python 2 and python 3 compatibility library
|
||||
import six
|
||||
|
||||
from kubernetes.client.api_client import ApiClient
|
||||
from kubernetes.client.exceptions import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ApiValueError
|
||||
)
|
||||
|
||||
|
||||
class ResourceApi(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
def __init__(self, api_client=None):
|
||||
if api_client is None:
|
||||
api_client = ApiClient()
|
||||
self.api_client = api_client
|
||||
|
||||
def get_api_group(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: V1APIGroup
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.get_api_group_with_http_info(**kwargs) # noqa: E501
|
||||
|
||||
def get_api_group_with_http_info(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method get_api_group" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
|
||||
query_params = []
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/apis/resource.k8s.io/', 'GET',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='V1APIGroup', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
5177
kubernetes/client/api/resource_v1alpha3_api.py
Normal file
5177
kubernetes/client/api/resource_v1alpha3_api.py
Normal file
File diff suppressed because it is too large
Load diff
5177
kubernetes/client/api/resource_v1beta1_api.py
Normal file
5177
kubernetes/client/api/resource_v1beta1_api.py
Normal file
File diff suppressed because it is too large
Load diff
142
kubernetes/client/api/scheduling_api.py
Normal file
142
kubernetes/client/api/scheduling_api.py
Normal file
|
@ -0,0 +1,142 @@
|
|||
# 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
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import re # noqa: F401
|
||||
|
||||
# python 2 and python 3 compatibility library
|
||||
import six
|
||||
|
||||
from kubernetes.client.api_client import ApiClient
|
||||
from kubernetes.client.exceptions import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ApiValueError
|
||||
)
|
||||
|
||||
|
||||
class SchedulingApi(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
def __init__(self, api_client=None):
|
||||
if api_client is None:
|
||||
api_client = ApiClient()
|
||||
self.api_client = api_client
|
||||
|
||||
def get_api_group(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: V1APIGroup
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.get_api_group_with_http_info(**kwargs) # noqa: E501
|
||||
|
||||
def get_api_group_with_http_info(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method get_api_group" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
|
||||
query_params = []
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/apis/scheduling.k8s.io/', 'GET',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='V1APIGroup', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
1179
kubernetes/client/api/scheduling_v1_api.py
Normal file
1179
kubernetes/client/api/scheduling_v1_api.py
Normal file
File diff suppressed because it is too large
Load diff
142
kubernetes/client/api/storage_api.py
Normal file
142
kubernetes/client/api/storage_api.py
Normal file
|
@ -0,0 +1,142 @@
|
|||
# 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
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import re # noqa: F401
|
||||
|
||||
# python 2 and python 3 compatibility library
|
||||
import six
|
||||
|
||||
from kubernetes.client.api_client import ApiClient
|
||||
from kubernetes.client.exceptions import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ApiValueError
|
||||
)
|
||||
|
||||
|
||||
class StorageApi(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
def __init__(self, api_client=None):
|
||||
if api_client is None:
|
||||
api_client = ApiClient()
|
||||
self.api_client = api_client
|
||||
|
||||
def get_api_group(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: V1APIGroup
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.get_api_group_with_http_info(**kwargs) # noqa: E501
|
||||
|
||||
def get_api_group_with_http_info(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method get_api_group" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
|
||||
query_params = []
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/apis/storage.k8s.io/', 'GET',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='V1APIGroup', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
5964
kubernetes/client/api/storage_v1_api.py
Normal file
5964
kubernetes/client/api/storage_v1_api.py
Normal file
File diff suppressed because it is too large
Load diff
1179
kubernetes/client/api/storage_v1alpha1_api.py
Normal file
1179
kubernetes/client/api/storage_v1alpha1_api.py
Normal file
File diff suppressed because it is too large
Load diff
1179
kubernetes/client/api/storage_v1beta1_api.py
Normal file
1179
kubernetes/client/api/storage_v1beta1_api.py
Normal file
File diff suppressed because it is too large
Load diff
142
kubernetes/client/api/storagemigration_api.py
Normal file
142
kubernetes/client/api/storagemigration_api.py
Normal file
|
@ -0,0 +1,142 @@
|
|||
# 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
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import re # noqa: F401
|
||||
|
||||
# python 2 and python 3 compatibility library
|
||||
import six
|
||||
|
||||
from kubernetes.client.api_client import ApiClient
|
||||
from kubernetes.client.exceptions import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ApiValueError
|
||||
)
|
||||
|
||||
|
||||
class StoragemigrationApi(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
def __init__(self, api_client=None):
|
||||
if api_client is None:
|
||||
api_client = ApiClient()
|
||||
self.api_client = api_client
|
||||
|
||||
def get_api_group(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: V1APIGroup
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.get_api_group_with_http_info(**kwargs) # noqa: E501
|
||||
|
||||
def get_api_group_with_http_info(self, **kwargs): # noqa: E501
|
||||
"""get_api_group # noqa: E501
|
||||
|
||||
get information of a group # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_api_group_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method get_api_group" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
|
||||
query_params = []
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/apis/storagemigration.k8s.io/', 'GET',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='V1APIGroup', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
1593
kubernetes/client/api/storagemigration_v1alpha1_api.py
Normal file
1593
kubernetes/client/api/storagemigration_v1alpha1_api.py
Normal file
File diff suppressed because it is too large
Load diff
142
kubernetes/client/api/version_api.py
Normal file
142
kubernetes/client/api/version_api.py
Normal file
|
@ -0,0 +1,142 @@
|
|||
# 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
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import re # noqa: F401
|
||||
|
||||
# python 2 and python 3 compatibility library
|
||||
import six
|
||||
|
||||
from kubernetes.client.api_client import ApiClient
|
||||
from kubernetes.client.exceptions import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ApiValueError
|
||||
)
|
||||
|
||||
|
||||
class VersionApi(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
def __init__(self, api_client=None):
|
||||
if api_client is None:
|
||||
api_client = ApiClient()
|
||||
self.api_client = api_client
|
||||
|
||||
def get_code(self, **kwargs): # noqa: E501
|
||||
"""get_code # noqa: E501
|
||||
|
||||
get the code version # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_code(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: VersionInfo
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.get_code_with_http_info(**kwargs) # noqa: E501
|
||||
|
||||
def get_code_with_http_info(self, **kwargs): # noqa: E501
|
||||
"""get_code # noqa: E501
|
||||
|
||||
get the code version # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_code_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: tuple(VersionInfo, status_code(int), headers(HTTPHeaderDict))
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method get_code" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
|
||||
query_params = []
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/version/', 'GET',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='VersionInfo', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
142
kubernetes/client/api/well_known_api.py
Normal file
142
kubernetes/client/api/well_known_api.py
Normal file
|
@ -0,0 +1,142 @@
|
|||
# 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
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import re # noqa: F401
|
||||
|
||||
# python 2 and python 3 compatibility library
|
||||
import six
|
||||
|
||||
from kubernetes.client.api_client import ApiClient
|
||||
from kubernetes.client.exceptions import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ApiValueError
|
||||
)
|
||||
|
||||
|
||||
class WellKnownApi(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
def __init__(self, api_client=None):
|
||||
if api_client is None:
|
||||
api_client = ApiClient()
|
||||
self.api_client = api_client
|
||||
|
||||
def get_service_account_issuer_open_id_configuration(self, **kwargs): # noqa: E501
|
||||
"""get_service_account_issuer_open_id_configuration # noqa: E501
|
||||
|
||||
get service account issuer OpenID configuration, also known as the 'OIDC discovery doc' # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_service_account_issuer_open_id_configuration(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: str
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
return self.get_service_account_issuer_open_id_configuration_with_http_info(**kwargs) # noqa: E501
|
||||
|
||||
def get_service_account_issuer_open_id_configuration_with_http_info(self, **kwargs): # noqa: E501
|
||||
"""get_service_account_issuer_open_id_configuration # noqa: E501
|
||||
|
||||
get service account issuer OpenID configuration, also known as the 'OIDC discovery doc' # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_service_account_issuer_open_id_configuration_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return: tuple(str, status_code(int), headers(HTTPHeaderDict))
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [
|
||||
]
|
||||
all_params.extend(
|
||||
[
|
||||
'async_req',
|
||||
'_return_http_data_only',
|
||||
'_preload_content',
|
||||
'_request_timeout'
|
||||
]
|
||||
)
|
||||
|
||||
for key, val in six.iteritems(local_var_params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise ApiTypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method get_service_account_issuer_open_id_configuration" % key
|
||||
)
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
|
||||
query_params = []
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/.well-known/openid-configuration', 'GET',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='str', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
647
kubernetes/client/api_client.py
Normal file
647
kubernetes/client/api_client.py
Normal file
|
@ -0,0 +1,647 @@
|
|||
# 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
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import atexit
|
||||
import datetime
|
||||
from dateutil.parser import parse
|
||||
import json
|
||||
import mimetypes
|
||||
from multiprocessing.pool import ThreadPool
|
||||
import os
|
||||
import re
|
||||
import tempfile
|
||||
|
||||
# python 2 and python 3 compatibility library
|
||||
import six
|
||||
from six.moves.urllib.parse import quote
|
||||
|
||||
from kubernetes.client.configuration import Configuration
|
||||
import kubernetes.client.models
|
||||
from kubernetes.client import rest
|
||||
from kubernetes.client.exceptions import ApiValueError
|
||||
|
||||
|
||||
class ApiClient(object):
|
||||
"""Generic API client for OpenAPI client library builds.
|
||||
|
||||
OpenAPI generic API client. This client handles the client-
|
||||
server communication, and is invariant across implementations. Specifics of
|
||||
the methods and models for each application are generated from the OpenAPI
|
||||
templates.
|
||||
|
||||
NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
Do not edit the class manually.
|
||||
|
||||
:param configuration: .Configuration object for this client
|
||||
:param header_name: a header to pass when making calls to the API.
|
||||
:param header_value: a header value to pass when making calls to
|
||||
the API.
|
||||
:param cookie: a cookie to include in the header when making calls
|
||||
to the API
|
||||
:param pool_threads: The number of threads to use for async requests
|
||||
to the API. More threads means more concurrent API requests.
|
||||
"""
|
||||
|
||||
PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types
|
||||
NATIVE_TYPES_MAPPING = {
|
||||
'int': int,
|
||||
'long': int if six.PY3 else long, # noqa: F821
|
||||
'float': float,
|
||||
'str': str,
|
||||
'bool': bool,
|
||||
'date': datetime.date,
|
||||
'datetime': datetime.datetime,
|
||||
'object': object,
|
||||
}
|
||||
_pool = None
|
||||
|
||||
def __init__(self, configuration=None, header_name=None, header_value=None,
|
||||
cookie=None, pool_threads=1):
|
||||
if configuration is None:
|
||||
configuration = Configuration.get_default_copy()
|
||||
self.configuration = configuration
|
||||
self.pool_threads = pool_threads
|
||||
|
||||
self.rest_client = rest.RESTClientObject(configuration)
|
||||
self.default_headers = {}
|
||||
if header_name is not None:
|
||||
self.default_headers[header_name] = header_value
|
||||
self.cookie = cookie
|
||||
# Set default User-Agent.
|
||||
self.user_agent = 'OpenAPI-Generator/32.0.0+snapshot/python'
|
||||
self.client_side_validation = configuration.client_side_validation
|
||||
|
||||
def __enter__(self):
|
||||
return self
|
||||
|
||||
def __exit__(self, exc_type, exc_value, traceback):
|
||||
self.close()
|
||||
|
||||
def close(self):
|
||||
if self._pool:
|
||||
self._pool.close()
|
||||
self._pool.join()
|
||||
self._pool = None
|
||||
if hasattr(atexit, 'unregister'):
|
||||
atexit.unregister(self.close)
|
||||
|
||||
@property
|
||||
def pool(self):
|
||||
"""Create thread pool on first request
|
||||
avoids instantiating unused threadpool for blocking clients.
|
||||
"""
|
||||
if self._pool is None:
|
||||
atexit.register(self.close)
|
||||
self._pool = ThreadPool(self.pool_threads)
|
||||
return self._pool
|
||||
|
||||
@property
|
||||
def user_agent(self):
|
||||
"""User agent for this API client"""
|
||||
return self.default_headers['User-Agent']
|
||||
|
||||
@user_agent.setter
|
||||
def user_agent(self, value):
|
||||
self.default_headers['User-Agent'] = value
|
||||
|
||||
def set_default_header(self, header_name, header_value):
|
||||
self.default_headers[header_name] = header_value
|
||||
|
||||
def __call_api(
|
||||
self, resource_path, method, path_params=None,
|
||||
query_params=None, header_params=None, body=None, post_params=None,
|
||||
files=None, response_type=None, auth_settings=None,
|
||||
_return_http_data_only=None, collection_formats=None,
|
||||
_preload_content=True, _request_timeout=None, _host=None):
|
||||
|
||||
config = self.configuration
|
||||
|
||||
# header parameters
|
||||
header_params = header_params or {}
|
||||
header_params.update(self.default_headers)
|
||||
if self.cookie:
|
||||
header_params['Cookie'] = self.cookie
|
||||
if header_params:
|
||||
header_params = self.sanitize_for_serialization(header_params)
|
||||
header_params = dict(self.parameters_to_tuples(header_params,
|
||||
collection_formats))
|
||||
|
||||
# path parameters
|
||||
if path_params:
|
||||
path_params = self.sanitize_for_serialization(path_params)
|
||||
path_params = self.parameters_to_tuples(path_params,
|
||||
collection_formats)
|
||||
for k, v in path_params:
|
||||
# specified safe chars, encode everything
|
||||
resource_path = resource_path.replace(
|
||||
'{%s}' % k,
|
||||
quote(str(v), safe=config.safe_chars_for_path_param)
|
||||
)
|
||||
|
||||
# query parameters
|
||||
if query_params:
|
||||
query_params = self.sanitize_for_serialization(query_params)
|
||||
query_params = self.parameters_to_tuples(query_params,
|
||||
collection_formats)
|
||||
|
||||
# post parameters
|
||||
if post_params or files:
|
||||
post_params = post_params if post_params else []
|
||||
post_params = self.sanitize_for_serialization(post_params)
|
||||
post_params = self.parameters_to_tuples(post_params,
|
||||
collection_formats)
|
||||
post_params.extend(self.files_parameters(files))
|
||||
|
||||
# auth setting
|
||||
self.update_params_for_auth(header_params, query_params, auth_settings)
|
||||
|
||||
# body
|
||||
if body:
|
||||
body = self.sanitize_for_serialization(body)
|
||||
|
||||
# request url
|
||||
if _host is None:
|
||||
url = self.configuration.host + resource_path
|
||||
else:
|
||||
# use server/host defined in path or operation instead
|
||||
url = _host + resource_path
|
||||
|
||||
# perform request and return response
|
||||
response_data = self.request(
|
||||
method, url, query_params=query_params, headers=header_params,
|
||||
post_params=post_params, body=body,
|
||||
_preload_content=_preload_content,
|
||||
_request_timeout=_request_timeout)
|
||||
|
||||
self.last_response = response_data
|
||||
|
||||
return_data = response_data
|
||||
if _preload_content:
|
||||
# deserialize response data
|
||||
if response_type:
|
||||
return_data = self.deserialize(response_data, response_type)
|
||||
else:
|
||||
return_data = None
|
||||
|
||||
if _return_http_data_only:
|
||||
return (return_data)
|
||||
else:
|
||||
return (return_data, response_data.status,
|
||||
response_data.getheaders())
|
||||
|
||||
def sanitize_for_serialization(self, obj):
|
||||
"""Builds a JSON POST object.
|
||||
|
||||
If obj is None, return None.
|
||||
If obj is str, int, long, float, bool, return directly.
|
||||
If obj is datetime.datetime, datetime.date
|
||||
convert to string in iso8601 format.
|
||||
If obj is list, sanitize each element in the list.
|
||||
If obj is dict, return the dict.
|
||||
If obj is OpenAPI model, return the properties dict.
|
||||
|
||||
:param obj: The data to serialize.
|
||||
:return: The serialized form of data.
|
||||
"""
|
||||
if obj is None:
|
||||
return None
|
||||
elif isinstance(obj, self.PRIMITIVE_TYPES):
|
||||
return obj
|
||||
elif isinstance(obj, list):
|
||||
return [self.sanitize_for_serialization(sub_obj)
|
||||
for sub_obj in obj]
|
||||
elif isinstance(obj, tuple):
|
||||
return tuple(self.sanitize_for_serialization(sub_obj)
|
||||
for sub_obj in obj)
|
||||
elif isinstance(obj, (datetime.datetime, datetime.date)):
|
||||
return obj.isoformat()
|
||||
|
||||
if isinstance(obj, dict):
|
||||
obj_dict = obj
|
||||
else:
|
||||
# Convert model obj to dict except
|
||||
# attributes `openapi_types`, `attribute_map`
|
||||
# and attributes which value is not None.
|
||||
# Convert attribute name to json key in
|
||||
# model definition for request.
|
||||
obj_dict = {obj.attribute_map[attr]: getattr(obj, attr)
|
||||
for attr, _ in six.iteritems(obj.openapi_types)
|
||||
if getattr(obj, attr) is not None}
|
||||
|
||||
return {key: self.sanitize_for_serialization(val)
|
||||
for key, val in six.iteritems(obj_dict)}
|
||||
|
||||
def deserialize(self, response, response_type):
|
||||
"""Deserializes response into an object.
|
||||
|
||||
:param response: RESTResponse object to be deserialized.
|
||||
:param response_type: class literal for
|
||||
deserialized object, or string of class name.
|
||||
|
||||
:return: deserialized object.
|
||||
"""
|
||||
# handle file downloading
|
||||
# save response body into a tmp file and return the instance
|
||||
if response_type == "file":
|
||||
return self.__deserialize_file(response)
|
||||
|
||||
# fetch data from response object
|
||||
try:
|
||||
data = json.loads(response.data)
|
||||
except ValueError:
|
||||
data = response.data
|
||||
|
||||
return self.__deserialize(data, response_type)
|
||||
|
||||
def __deserialize(self, data, klass):
|
||||
"""Deserializes dict, list, str into an object.
|
||||
|
||||
:param data: dict, list or str.
|
||||
:param klass: class literal, or string of class name.
|
||||
|
||||
:return: object.
|
||||
"""
|
||||
if data is None:
|
||||
return None
|
||||
|
||||
if type(klass) == str:
|
||||
if klass.startswith('list['):
|
||||
sub_kls = re.match(r'list\[(.*)\]', klass).group(1)
|
||||
return [self.__deserialize(sub_data, sub_kls)
|
||||
for sub_data in data]
|
||||
|
||||
if klass.startswith('dict('):
|
||||
sub_kls = re.match(r'dict\(([^,]*), (.*)\)', klass).group(2)
|
||||
return {k: self.__deserialize(v, sub_kls)
|
||||
for k, v in six.iteritems(data)}
|
||||
|
||||
# convert str to class
|
||||
if klass in self.NATIVE_TYPES_MAPPING:
|
||||
klass = self.NATIVE_TYPES_MAPPING[klass]
|
||||
else:
|
||||
klass = getattr(kubernetes.client.models, klass)
|
||||
|
||||
if klass in self.PRIMITIVE_TYPES:
|
||||
return self.__deserialize_primitive(data, klass)
|
||||
elif klass == object:
|
||||
return self.__deserialize_object(data)
|
||||
elif klass == datetime.date:
|
||||
return self.__deserialize_date(data)
|
||||
elif klass == datetime.datetime:
|
||||
return self.__deserialize_datetime(data)
|
||||
else:
|
||||
return self.__deserialize_model(data, klass)
|
||||
|
||||
def call_api(self, resource_path, method,
|
||||
path_params=None, query_params=None, header_params=None,
|
||||
body=None, post_params=None, files=None,
|
||||
response_type=None, auth_settings=None, async_req=None,
|
||||
_return_http_data_only=None, collection_formats=None,
|
||||
_preload_content=True, _request_timeout=None, _host=None):
|
||||
"""Makes the HTTP request (synchronous) and returns deserialized data.
|
||||
|
||||
To make an async_req request, set the async_req parameter.
|
||||
|
||||
:param resource_path: Path to method endpoint.
|
||||
:param method: Method to call.
|
||||
:param path_params: Path parameters in the url.
|
||||
:param query_params: Query parameters in the url.
|
||||
:param header_params: Header parameters to be
|
||||
placed in the request header.
|
||||
:param body: Request body.
|
||||
:param post_params dict: Request post form parameters,
|
||||
for `application/x-www-form-urlencoded`, `multipart/form-data`.
|
||||
:param auth_settings list: Auth Settings names for the request.
|
||||
:param response: Response data type.
|
||||
:param files dict: key -> filename, value -> filepath,
|
||||
for `multipart/form-data`.
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param collection_formats: dict of collection formats for path, query,
|
||||
header, and post parameters.
|
||||
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
||||
be returned without reading/decoding response
|
||||
data. Default is True.
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return:
|
||||
If async_req parameter is True,
|
||||
the request will be called asynchronously.
|
||||
The method will return the request thread.
|
||||
If parameter async_req is False or missing,
|
||||
then the method will return the response directly.
|
||||
"""
|
||||
if not async_req:
|
||||
return self.__call_api(resource_path, method,
|
||||
path_params, query_params, header_params,
|
||||
body, post_params, files,
|
||||
response_type, auth_settings,
|
||||
_return_http_data_only, collection_formats,
|
||||
_preload_content, _request_timeout, _host)
|
||||
|
||||
return self.pool.apply_async(self.__call_api, (resource_path,
|
||||
method, path_params,
|
||||
query_params,
|
||||
header_params, body,
|
||||
post_params, files,
|
||||
response_type,
|
||||
auth_settings,
|
||||
_return_http_data_only,
|
||||
collection_formats,
|
||||
_preload_content,
|
||||
_request_timeout,
|
||||
_host))
|
||||
|
||||
def request(self, method, url, query_params=None, headers=None,
|
||||
post_params=None, body=None, _preload_content=True,
|
||||
_request_timeout=None):
|
||||
"""Makes the HTTP request using RESTClient."""
|
||||
if method == "GET":
|
||||
return self.rest_client.GET(url,
|
||||
query_params=query_params,
|
||||
_preload_content=_preload_content,
|
||||
_request_timeout=_request_timeout,
|
||||
headers=headers)
|
||||
elif method == "HEAD":
|
||||
return self.rest_client.HEAD(url,
|
||||
query_params=query_params,
|
||||
_preload_content=_preload_content,
|
||||
_request_timeout=_request_timeout,
|
||||
headers=headers)
|
||||
elif method == "OPTIONS":
|
||||
return self.rest_client.OPTIONS(url,
|
||||
query_params=query_params,
|
||||
headers=headers,
|
||||
_preload_content=_preload_content,
|
||||
_request_timeout=_request_timeout)
|
||||
elif method == "POST":
|
||||
return self.rest_client.POST(url,
|
||||
query_params=query_params,
|
||||
headers=headers,
|
||||
post_params=post_params,
|
||||
_preload_content=_preload_content,
|
||||
_request_timeout=_request_timeout,
|
||||
body=body)
|
||||
elif method == "PUT":
|
||||
return self.rest_client.PUT(url,
|
||||
query_params=query_params,
|
||||
headers=headers,
|
||||
post_params=post_params,
|
||||
_preload_content=_preload_content,
|
||||
_request_timeout=_request_timeout,
|
||||
body=body)
|
||||
elif method == "PATCH":
|
||||
return self.rest_client.PATCH(url,
|
||||
query_params=query_params,
|
||||
headers=headers,
|
||||
post_params=post_params,
|
||||
_preload_content=_preload_content,
|
||||
_request_timeout=_request_timeout,
|
||||
body=body)
|
||||
elif method == "DELETE":
|
||||
return self.rest_client.DELETE(url,
|
||||
query_params=query_params,
|
||||
headers=headers,
|
||||
_preload_content=_preload_content,
|
||||
_request_timeout=_request_timeout,
|
||||
body=body)
|
||||
else:
|
||||
raise ApiValueError(
|
||||
"http method must be `GET`, `HEAD`, `OPTIONS`,"
|
||||
" `POST`, `PATCH`, `PUT` or `DELETE`."
|
||||
)
|
||||
|
||||
def parameters_to_tuples(self, params, collection_formats):
|
||||
"""Get parameters as list of tuples, formatting collections.
|
||||
|
||||
:param params: Parameters as dict or list of two-tuples
|
||||
:param dict collection_formats: Parameter collection formats
|
||||
:return: Parameters as list of tuples, collections formatted
|
||||
"""
|
||||
new_params = []
|
||||
if collection_formats is None:
|
||||
collection_formats = {}
|
||||
for k, v in six.iteritems(params) if isinstance(params, dict) else params: # noqa: E501
|
||||
if k in collection_formats:
|
||||
collection_format = collection_formats[k]
|
||||
if collection_format == 'multi':
|
||||
new_params.extend((k, value) for value in v)
|
||||
else:
|
||||
if collection_format == 'ssv':
|
||||
delimiter = ' '
|
||||
elif collection_format == 'tsv':
|
||||
delimiter = '\t'
|
||||
elif collection_format == 'pipes':
|
||||
delimiter = '|'
|
||||
else: # csv is the default
|
||||
delimiter = ','
|
||||
new_params.append(
|
||||
(k, delimiter.join(str(value) for value in v)))
|
||||
else:
|
||||
new_params.append((k, v))
|
||||
return new_params
|
||||
|
||||
def files_parameters(self, files=None):
|
||||
"""Builds form parameters.
|
||||
|
||||
:param files: File parameters.
|
||||
:return: Form parameters with files.
|
||||
"""
|
||||
params = []
|
||||
|
||||
if files:
|
||||
for k, v in six.iteritems(files):
|
||||
if not v:
|
||||
continue
|
||||
file_names = v if type(v) is list else [v]
|
||||
for n in file_names:
|
||||
with open(n, 'rb') as f:
|
||||
filename = os.path.basename(f.name)
|
||||
filedata = f.read()
|
||||
mimetype = (mimetypes.guess_type(filename)[0] or
|
||||
'application/octet-stream')
|
||||
params.append(
|
||||
tuple([k, tuple([filename, filedata, mimetype])]))
|
||||
|
||||
return params
|
||||
|
||||
def select_header_accept(self, accepts):
|
||||
"""Returns `Accept` based on an array of accepts provided.
|
||||
|
||||
:param accepts: List of headers.
|
||||
:return: Accept (e.g. application/json).
|
||||
"""
|
||||
if not accepts:
|
||||
return
|
||||
|
||||
accepts = [x.lower() for x in accepts]
|
||||
|
||||
if 'application/json' in accepts:
|
||||
return 'application/json'
|
||||
else:
|
||||
return ', '.join(accepts)
|
||||
|
||||
def select_header_content_type(self, content_types):
|
||||
"""Returns `Content-Type` based on an array of content_types provided.
|
||||
|
||||
:param content_types: List of content-types.
|
||||
:return: Content-Type (e.g. application/json).
|
||||
"""
|
||||
if not content_types:
|
||||
return 'application/json'
|
||||
|
||||
content_types = [x.lower() for x in content_types]
|
||||
|
||||
if 'application/json' in content_types or '*/*' in content_types:
|
||||
return 'application/json'
|
||||
else:
|
||||
return content_types[0]
|
||||
|
||||
def update_params_for_auth(self, headers, querys, auth_settings):
|
||||
"""Updates header and query params based on authentication setting.
|
||||
|
||||
:param headers: Header parameters dict to be updated.
|
||||
:param querys: Query parameters tuple list to be updated.
|
||||
:param auth_settings: Authentication setting identifiers list.
|
||||
"""
|
||||
if not auth_settings:
|
||||
return
|
||||
|
||||
for auth in auth_settings:
|
||||
auth_setting = self.configuration.auth_settings().get(auth)
|
||||
if auth_setting:
|
||||
if auth_setting['in'] == 'cookie':
|
||||
headers['Cookie'] = auth_setting['value']
|
||||
elif auth_setting['in'] == 'header':
|
||||
headers[auth_setting['key']] = auth_setting['value']
|
||||
elif auth_setting['in'] == 'query':
|
||||
querys.append((auth_setting['key'], auth_setting['value']))
|
||||
else:
|
||||
raise ApiValueError(
|
||||
'Authentication token must be in `query` or `header`'
|
||||
)
|
||||
|
||||
def __deserialize_file(self, response):
|
||||
"""Deserializes body to file
|
||||
|
||||
Saves response body into a file in a temporary folder,
|
||||
using the filename from the `Content-Disposition` header if provided.
|
||||
|
||||
:param response: RESTResponse.
|
||||
:return: file path.
|
||||
"""
|
||||
fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path)
|
||||
os.close(fd)
|
||||
os.remove(path)
|
||||
|
||||
content_disposition = response.getheader("Content-Disposition")
|
||||
if content_disposition:
|
||||
filename = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?',
|
||||
content_disposition).group(1)
|
||||
path = os.path.join(os.path.dirname(path), filename)
|
||||
|
||||
with open(path, "wb") as f:
|
||||
f.write(response.data)
|
||||
|
||||
return path
|
||||
|
||||
def __deserialize_primitive(self, data, klass):
|
||||
"""Deserializes string to primitive type.
|
||||
|
||||
:param data: str.
|
||||
:param klass: class literal.
|
||||
|
||||
:return: int, long, float, str, bool.
|
||||
"""
|
||||
try:
|
||||
return klass(data)
|
||||
except UnicodeEncodeError:
|
||||
return six.text_type(data)
|
||||
except TypeError:
|
||||
return data
|
||||
|
||||
def __deserialize_object(self, value):
|
||||
"""Return an original value.
|
||||
|
||||
:return: object.
|
||||
"""
|
||||
return value
|
||||
|
||||
def __deserialize_date(self, string):
|
||||
"""Deserializes string to date.
|
||||
|
||||
:param string: str.
|
||||
:return: date.
|
||||
"""
|
||||
try:
|
||||
return parse(string).date()
|
||||
except ImportError:
|
||||
return string
|
||||
except ValueError:
|
||||
raise rest.ApiException(
|
||||
status=0,
|
||||
reason="Failed to parse `{0}` as date object".format(string)
|
||||
)
|
||||
|
||||
def __deserialize_datetime(self, string):
|
||||
"""Deserializes string to datetime.
|
||||
|
||||
The string should be in iso8601 datetime format.
|
||||
|
||||
:param string: str.
|
||||
:return: datetime.
|
||||
"""
|
||||
try:
|
||||
return parse(string)
|
||||
except ImportError:
|
||||
return string
|
||||
except ValueError:
|
||||
raise rest.ApiException(
|
||||
status=0,
|
||||
reason=(
|
||||
"Failed to parse `{0}` as datetime object"
|
||||
.format(string)
|
||||
)
|
||||
)
|
||||
|
||||
def __deserialize_model(self, data, klass):
|
||||
"""Deserializes list or dict to model.
|
||||
|
||||
:param data: dict, list.
|
||||
:param klass: class literal.
|
||||
:return: model object.
|
||||
"""
|
||||
|
||||
if not klass.openapi_types and not hasattr(klass,
|
||||
'get_real_child_model'):
|
||||
return data
|
||||
|
||||
kwargs = {}
|
||||
if (data is not None and
|
||||
klass.openapi_types is not None and
|
||||
isinstance(data, (list, dict))):
|
||||
for attr, attr_type in six.iteritems(klass.openapi_types):
|
||||
if klass.attribute_map[attr] in data:
|
||||
value = data[klass.attribute_map[attr]]
|
||||
kwargs[attr] = self.__deserialize(value, attr_type)
|
||||
|
||||
instance = klass(**kwargs)
|
||||
|
||||
if hasattr(instance, 'get_real_child_model'):
|
||||
klass_name = instance.get_real_child_model(data)
|
||||
if klass_name:
|
||||
instance = self.__deserialize(data, klass_name)
|
||||
return instance
|
13
kubernetes/client/apis/__init__.py
Normal file
13
kubernetes/client/apis/__init__.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
from __future__ import absolute_import
|
||||
import warnings
|
||||
|
||||
# flake8: noqa
|
||||
|
||||
# alias kubernetes.client.api package and print deprecation warning
|
||||
from kubernetes.client.api import *
|
||||
|
||||
warnings.filterwarnings('default', module='kubernetes.client.apis')
|
||||
warnings.warn(
|
||||
"The package kubernetes.client.apis is renamed and deprecated, use kubernetes.client.api instead (please note that the trailing s was removed).",
|
||||
DeprecationWarning
|
||||
)
|
405
kubernetes/client/configuration.py
Normal file
405
kubernetes/client/configuration.py
Normal file
|
@ -0,0 +1,405 @@
|
|||
# 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
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import copy
|
||||
import logging
|
||||
import multiprocessing
|
||||
import sys
|
||||
import urllib3
|
||||
|
||||
import six
|
||||
from six.moves import http_client as httplib
|
||||
|
||||
|
||||
class Configuration(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator
|
||||
|
||||
Ref: https://openapi-generator.tech
|
||||
Do not edit the class manually.
|
||||
|
||||
:param host: Base url
|
||||
:param api_key: Dict to store API key(s).
|
||||
Each entry in the dict specifies an API key.
|
||||
The dict key is the name of the security scheme in the OAS specification.
|
||||
The dict value is the API key secret.
|
||||
:param api_key_prefix: Dict to store API prefix (e.g. Bearer)
|
||||
The dict key is the name of the security scheme in the OAS specification.
|
||||
The dict value is an API key prefix when generating the auth data.
|
||||
:param username: Username for HTTP basic authentication
|
||||
:param password: Password for HTTP basic authentication
|
||||
:param discard_unknown_keys: Boolean value indicating whether to discard
|
||||
unknown properties. A server may send a response that includes additional
|
||||
properties that are not known by the client in the following scenarios:
|
||||
1. The OpenAPI document is incomplete, i.e. it does not match the server
|
||||
implementation.
|
||||
2. The client was generated using an older version of the OpenAPI document
|
||||
and the server has been upgraded since then.
|
||||
If a schema in the OpenAPI document defines the additionalProperties attribute,
|
||||
then all undeclared properties received by the server are injected into the
|
||||
additional properties map. In that case, there are undeclared properties, and
|
||||
nothing to discard.
|
||||
|
||||
:Example:
|
||||
|
||||
API Key Authentication Example.
|
||||
Given the following security scheme in the OpenAPI specification:
|
||||
components:
|
||||
securitySchemes:
|
||||
cookieAuth: # name for the security scheme
|
||||
type: apiKey
|
||||
in: cookie
|
||||
name: JSESSIONID # cookie name
|
||||
|
||||
You can programmatically set the cookie:
|
||||
conf = client.Configuration(
|
||||
api_key={'cookieAuth': 'abc123'}
|
||||
api_key_prefix={'cookieAuth': 'JSESSIONID'}
|
||||
)
|
||||
The following cookie will be added to the HTTP request:
|
||||
Cookie: JSESSIONID abc123
|
||||
"""
|
||||
|
||||
_default = None
|
||||
|
||||
def __init__(self, host="http://localhost",
|
||||
api_key=None, api_key_prefix=None,
|
||||
username=None, password=None,
|
||||
discard_unknown_keys=False,
|
||||
):
|
||||
"""Constructor
|
||||
"""
|
||||
self.host = host
|
||||
"""Default Base url
|
||||
"""
|
||||
self.temp_folder_path = None
|
||||
"""Temp file folder for downloading files
|
||||
"""
|
||||
# Authentication Settings
|
||||
self.api_key = {}
|
||||
if api_key:
|
||||
self.api_key = api_key
|
||||
"""dict to store API key(s)
|
||||
"""
|
||||
self.api_key_prefix = {}
|
||||
if api_key_prefix:
|
||||
self.api_key_prefix = api_key_prefix
|
||||
"""dict to store API prefix (e.g. Bearer)
|
||||
"""
|
||||
self.refresh_api_key_hook = None
|
||||
"""function hook to refresh API key if expired
|
||||
"""
|
||||
self.username = username
|
||||
"""Username for HTTP basic authentication
|
||||
"""
|
||||
self.password = password
|
||||
"""Password for HTTP basic authentication
|
||||
"""
|
||||
self.discard_unknown_keys = discard_unknown_keys
|
||||
self.logger = {}
|
||||
"""Logging Settings
|
||||
"""
|
||||
self.logger["package_logger"] = logging.getLogger("client")
|
||||
self.logger["urllib3_logger"] = logging.getLogger("urllib3")
|
||||
self.logger_format = '%(asctime)s %(levelname)s %(message)s'
|
||||
"""Log format
|
||||
"""
|
||||
self.logger_stream_handler = None
|
||||
"""Log stream handler
|
||||
"""
|
||||
self.logger_file_handler = None
|
||||
"""Log file handler
|
||||
"""
|
||||
self.logger_file = None
|
||||
"""Debug file location
|
||||
"""
|
||||
self.debug = False
|
||||
"""Debug switch
|
||||
"""
|
||||
|
||||
self.verify_ssl = True
|
||||
"""SSL/TLS verification
|
||||
Set this to false to skip verifying SSL certificate when calling API
|
||||
from https server.
|
||||
"""
|
||||
self.ssl_ca_cert = None
|
||||
"""Set this to customize the certificate file to verify the peer.
|
||||
"""
|
||||
self.cert_file = None
|
||||
"""client certificate file
|
||||
"""
|
||||
self.key_file = None
|
||||
"""client key file
|
||||
"""
|
||||
self.assert_hostname = None
|
||||
"""Set this to True/False to enable/disable SSL hostname verification.
|
||||
"""
|
||||
self.tls_server_name = None
|
||||
"""SSL/TLS Server Name Indication (SNI)
|
||||
Set this to the SNI value expected by the server.
|
||||
"""
|
||||
|
||||
self.connection_pool_maxsize = multiprocessing.cpu_count() * 5
|
||||
"""urllib3 connection pool's maximum number of connections saved
|
||||
per pool. urllib3 uses 1 connection as default value, but this is
|
||||
not the best value when you are making a lot of possibly parallel
|
||||
requests to the same host, which is often the case here.
|
||||
cpu_count * 5 is used as default value to increase performance.
|
||||
"""
|
||||
|
||||
self.proxy = None
|
||||
"""Proxy URL
|
||||
"""
|
||||
self.no_proxy = None
|
||||
"""bypass proxy for host in the no_proxy list.
|
||||
"""
|
||||
self.proxy_headers = None
|
||||
"""Proxy headers
|
||||
"""
|
||||
self.safe_chars_for_path_param = ''
|
||||
"""Safe chars for path_param
|
||||
"""
|
||||
self.retries = None
|
||||
"""Adding retries to override urllib3 default value 3
|
||||
"""
|
||||
# Disable client side validation
|
||||
self.client_side_validation = True
|
||||
|
||||
def __deepcopy__(self, memo):
|
||||
cls = self.__class__
|
||||
result = cls.__new__(cls)
|
||||
memo[id(self)] = result
|
||||
for k, v in self.__dict__.items():
|
||||
if k not in ('logger', 'logger_file_handler'):
|
||||
setattr(result, k, copy.deepcopy(v, memo))
|
||||
# shallow copy of loggers
|
||||
result.logger = copy.copy(self.logger)
|
||||
# use setters to configure loggers
|
||||
result.logger_file = self.logger_file
|
||||
result.debug = self.debug
|
||||
return result
|
||||
|
||||
@classmethod
|
||||
def set_default(cls, default):
|
||||
"""Set default instance of configuration.
|
||||
|
||||
It stores default configuration, which can be
|
||||
returned by get_default_copy method.
|
||||
|
||||
:param default: object of Configuration
|
||||
"""
|
||||
cls._default = copy.deepcopy(default)
|
||||
|
||||
@classmethod
|
||||
def get_default_copy(cls):
|
||||
"""Return new instance of configuration.
|
||||
|
||||
This method returns newly created, based on default constructor,
|
||||
object of Configuration class or returns a copy of default
|
||||
configuration passed by the set_default method.
|
||||
|
||||
:return: The configuration object.
|
||||
"""
|
||||
if cls._default is not None:
|
||||
return copy.deepcopy(cls._default)
|
||||
return Configuration()
|
||||
|
||||
@property
|
||||
def logger_file(self):
|
||||
"""The logger file.
|
||||
|
||||
If the logger_file is None, then add stream handler and remove file
|
||||
handler. Otherwise, add file handler and remove stream handler.
|
||||
|
||||
:param value: The logger_file path.
|
||||
:type: str
|
||||
"""
|
||||
return self.__logger_file
|
||||
|
||||
@logger_file.setter
|
||||
def logger_file(self, value):
|
||||
"""The logger file.
|
||||
|
||||
If the logger_file is None, then add stream handler and remove file
|
||||
handler. Otherwise, add file handler and remove stream handler.
|
||||
|
||||
:param value: The logger_file path.
|
||||
:type: str
|
||||
"""
|
||||
self.__logger_file = value
|
||||
if self.__logger_file:
|
||||
# If set logging file,
|
||||
# then add file handler and remove stream handler.
|
||||
self.logger_file_handler = logging.FileHandler(self.__logger_file)
|
||||
self.logger_file_handler.setFormatter(self.logger_formatter)
|
||||
for _, logger in six.iteritems(self.logger):
|
||||
logger.addHandler(self.logger_file_handler)
|
||||
|
||||
@property
|
||||
def debug(self):
|
||||
"""Debug status
|
||||
|
||||
:param value: The debug status, True or False.
|
||||
:type: bool
|
||||
"""
|
||||
return self.__debug
|
||||
|
||||
@debug.setter
|
||||
def debug(self, value):
|
||||
"""Debug status
|
||||
|
||||
:param value: The debug status, True or False.
|
||||
:type: bool
|
||||
"""
|
||||
self.__debug = value
|
||||
if self.__debug:
|
||||
# if debug status is True, turn on debug logging
|
||||
for _, logger in six.iteritems(self.logger):
|
||||
logger.setLevel(logging.DEBUG)
|
||||
# turn on httplib debug
|
||||
httplib.HTTPConnection.debuglevel = 1
|
||||
else:
|
||||
# if debug status is False, turn off debug logging,
|
||||
# setting log level to default `logging.WARNING`
|
||||
for _, logger in six.iteritems(self.logger):
|
||||
logger.setLevel(logging.WARNING)
|
||||
# turn off httplib debug
|
||||
httplib.HTTPConnection.debuglevel = 0
|
||||
|
||||
@property
|
||||
def logger_format(self):
|
||||
"""The logger format.
|
||||
|
||||
The logger_formatter will be updated when sets logger_format.
|
||||
|
||||
:param value: The format string.
|
||||
:type: str
|
||||
"""
|
||||
return self.__logger_format
|
||||
|
||||
@logger_format.setter
|
||||
def logger_format(self, value):
|
||||
"""The logger format.
|
||||
|
||||
The logger_formatter will be updated when sets logger_format.
|
||||
|
||||
:param value: The format string.
|
||||
:type: str
|
||||
"""
|
||||
self.__logger_format = value
|
||||
self.logger_formatter = logging.Formatter(self.__logger_format)
|
||||
|
||||
def get_api_key_with_prefix(self, identifier):
|
||||
"""Gets API key (with prefix if set).
|
||||
|
||||
:param identifier: The identifier of apiKey.
|
||||
:return: The token for api key authentication.
|
||||
"""
|
||||
if self.refresh_api_key_hook is not None:
|
||||
self.refresh_api_key_hook(self)
|
||||
key = self.api_key.get(identifier)
|
||||
if key:
|
||||
prefix = self.api_key_prefix.get(identifier)
|
||||
if prefix:
|
||||
return "%s %s" % (prefix, key)
|
||||
else:
|
||||
return key
|
||||
|
||||
def get_basic_auth_token(self):
|
||||
"""Gets HTTP basic authentication header (string).
|
||||
|
||||
:return: The token for basic HTTP authentication.
|
||||
"""
|
||||
username = ""
|
||||
if self.username is not None:
|
||||
username = self.username
|
||||
password = ""
|
||||
if self.password is not None:
|
||||
password = self.password
|
||||
return urllib3.util.make_headers(
|
||||
basic_auth=username + ':' + password
|
||||
).get('authorization')
|
||||
|
||||
def auth_settings(self):
|
||||
"""Gets Auth Settings dict for api client.
|
||||
|
||||
:return: The Auth Settings information dict.
|
||||
"""
|
||||
auth = {}
|
||||
if 'authorization' in self.api_key:
|
||||
auth['BearerToken'] = {
|
||||
'type': 'api_key',
|
||||
'in': 'header',
|
||||
'key': 'authorization',
|
||||
'value': self.get_api_key_with_prefix('authorization')
|
||||
}
|
||||
return auth
|
||||
|
||||
def to_debug_report(self):
|
||||
"""Gets the essential information for debugging.
|
||||
|
||||
:return: The report for debugging.
|
||||
"""
|
||||
return "Python SDK Debug Report:\n"\
|
||||
"OS: {env}\n"\
|
||||
"Python Version: {pyversion}\n"\
|
||||
"Version of the API: release-1.32\n"\
|
||||
"SDK Package Version: 32.0.0+snapshot".\
|
||||
format(env=sys.platform, pyversion=sys.version)
|
||||
|
||||
def get_host_settings(self):
|
||||
"""Gets an array of host settings
|
||||
|
||||
:return: An array of host settings
|
||||
"""
|
||||
return [
|
||||
{
|
||||
'url': "/",
|
||||
'description': "No description provided",
|
||||
}
|
||||
]
|
||||
|
||||
def get_host_from_settings(self, index, variables=None):
|
||||
"""Gets host URL based on the index and variables
|
||||
:param index: array index of the host settings
|
||||
:param variables: hash of variable and the corresponding value
|
||||
:return: URL based on host settings
|
||||
"""
|
||||
variables = {} if variables is None else variables
|
||||
servers = self.get_host_settings()
|
||||
|
||||
try:
|
||||
server = servers[index]
|
||||
except IndexError:
|
||||
raise ValueError(
|
||||
"Invalid index {0} when selecting the host settings. "
|
||||
"Must be less than {1}".format(index, len(servers)))
|
||||
|
||||
url = server['url']
|
||||
|
||||
# go through variables and replace placeholders
|
||||
for variable_name, variable in server['variables'].items():
|
||||
used_value = variables.get(
|
||||
variable_name, variable['default_value'])
|
||||
|
||||
if 'enum_values' in variable \
|
||||
and used_value not in variable['enum_values']:
|
||||
raise ValueError(
|
||||
"The variable `{0}` in the host URL has invalid value "
|
||||
"{1}. Must be {2}.".format(
|
||||
variable_name, variables[variable_name],
|
||||
variable['enum_values']))
|
||||
|
||||
url = url.replace("{" + variable_name + "}", used_value)
|
||||
|
||||
return url
|
120
kubernetes/client/exceptions.py
Normal file
120
kubernetes/client/exceptions.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 six
|
||||
|
||||
|
||||
class OpenApiException(Exception):
|
||||
"""The base exception class for all OpenAPIExceptions"""
|
||||
|
||||
|
||||
class ApiTypeError(OpenApiException, TypeError):
|
||||
def __init__(self, msg, path_to_item=None, valid_classes=None,
|
||||
key_type=None):
|
||||
""" Raises an exception for TypeErrors
|
||||
|
||||
Args:
|
||||
msg (str): the exception message
|
||||
|
||||
Keyword Args:
|
||||
path_to_item (list): a list of keys an indices to get to the
|
||||
current_item
|
||||
None if unset
|
||||
valid_classes (tuple): the primitive classes that current item
|
||||
should be an instance of
|
||||
None if unset
|
||||
key_type (bool): False if our value is a value in a dict
|
||||
True if it is a key in a dict
|
||||
False if our item is an item in a list
|
||||
None if unset
|
||||
"""
|
||||
self.path_to_item = path_to_item
|
||||
self.valid_classes = valid_classes
|
||||
self.key_type = key_type
|
||||
full_msg = msg
|
||||
if path_to_item:
|
||||
full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
|
||||
super(ApiTypeError, self).__init__(full_msg)
|
||||
|
||||
|
||||
class ApiValueError(OpenApiException, ValueError):
|
||||
def __init__(self, msg, path_to_item=None):
|
||||
"""
|
||||
Args:
|
||||
msg (str): the exception message
|
||||
|
||||
Keyword Args:
|
||||
path_to_item (list) the path to the exception in the
|
||||
received_data dict. None if unset
|
||||
"""
|
||||
|
||||
self.path_to_item = path_to_item
|
||||
full_msg = msg
|
||||
if path_to_item:
|
||||
full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
|
||||
super(ApiValueError, self).__init__(full_msg)
|
||||
|
||||
|
||||
class ApiKeyError(OpenApiException, KeyError):
|
||||
def __init__(self, msg, path_to_item=None):
|
||||
"""
|
||||
Args:
|
||||
msg (str): the exception message
|
||||
|
||||
Keyword Args:
|
||||
path_to_item (None/list) the path to the exception in the
|
||||
received_data dict
|
||||
"""
|
||||
self.path_to_item = path_to_item
|
||||
full_msg = msg
|
||||
if path_to_item:
|
||||
full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
|
||||
super(ApiKeyError, self).__init__(full_msg)
|
||||
|
||||
|
||||
class ApiException(OpenApiException):
|
||||
|
||||
def __init__(self, status=None, reason=None, http_resp=None):
|
||||
if http_resp:
|
||||
self.status = http_resp.status
|
||||
self.reason = http_resp.reason
|
||||
self.body = http_resp.data
|
||||
self.headers = http_resp.getheaders()
|
||||
else:
|
||||
self.status = status
|
||||
self.reason = reason
|
||||
self.body = None
|
||||
self.headers = None
|
||||
|
||||
def __str__(self):
|
||||
"""Custom error messages for exception"""
|
||||
error_message = "({0})\n"\
|
||||
"Reason: {1}\n".format(self.status, self.reason)
|
||||
if self.headers:
|
||||
error_message += "HTTP response headers: {0}\n".format(
|
||||
self.headers)
|
||||
|
||||
if self.body:
|
||||
error_message += "HTTP response body: {0}\n".format(self.body)
|
||||
|
||||
return error_message
|
||||
|
||||
|
||||
def render_path(path_to_item):
|
||||
"""Returns a string representation of a path"""
|
||||
result = ""
|
||||
for pth in path_to_item:
|
||||
if isinstance(pth, six.integer_types):
|
||||
result += "[{0}]".format(pth)
|
||||
else:
|
||||
result += "['{0}']".format(pth)
|
||||
return result
|
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()
|
Some files were not shown because too many files have changed in this diff Show more
Reference in a new issue